We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b9c469 commit d248f1bCopy full SHA for d248f1b
.github/workflows/update_pyproject.py
@@ -0,0 +1,11 @@
1
+#!/usr/bin/env python3
2
+import re
3
+import sys
4
+from pathlib import Path
5
+
6
+if __name__ == '__main__':
7
+ path = Path('pyproject.toml')
8
+ content = path.read_text(encoding='utf-8')
9
+ version = sys.argv[1].removeprefix('v')
10
+ content = re.sub(r'version = "[0-9]+\.[0-9]+\.[0-9]+-dev"', f'version = "{version}-dev"', content)
11
+ path.write_text(content, encoding='utf-8')
0 commit comments