Skip to content

Commit d248f1b

Browse files
add missing script
1 parent 4b9c469 commit d248f1b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)