mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-13 07:55:05 +02:00
Store version in project metadata
This commit is contained in:
parent
21a266e302
commit
f600d682e7
11 changed files with 45 additions and 22 deletions
|
|
@ -41,12 +41,12 @@ def extract_changes(lines):
|
|||
|
||||
|
||||
def update_version(version):
|
||||
with open("PFERD/version.py") as f:
|
||||
with open("pyproject.toml") as f:
|
||||
text = f.read()
|
||||
|
||||
text = re.sub(r'VERSION = ".*"', f'VERSION = "{version}"', text)
|
||||
text = re.sub(r'version = ".*"', f'version = "{version}"', text)
|
||||
|
||||
with open("PFERD/version.py", "w") as f:
|
||||
with open("pyproject.toml", "w") as f:
|
||||
f.write(text)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue