Keep ArchiveBox version sources aligned

This commit is contained in:
Nick Sweeting 2026-07-29 06:59:04 -07:00
parent 90e726b75e
commit c8c4a66144
No known key found for this signature in database
2 changed files with 10 additions and 1 deletions

View File

@ -32,6 +32,15 @@ if parse(version) <= parse(match.group(1)):
updated, count = re.subn(r'^version = "[^"]+"$', f'version = "{version}"', text, count=1, flags=re.MULTILINE)
if count != 1:
raise SystemExit('Failed to update version in pyproject.toml')
updated, count = re.subn(
r'^current_version = "v[^"]+"$',
f'current_version = "v{version}"',
updated,
count=1,
flags=re.MULTILINE,
)
if count != 1:
raise SystemExit('Failed to update tool.bumpver.current_version in pyproject.toml')
pyproject.write_text(updated)
package_path = Path('etc/package.json')

View File

@ -1,6 +1,6 @@
{
"name": "archivebox",
"version": "0.9.35rc170",
"version": "0.9.35rc175",
"repository": "github:ArchiveBox/ArchiveBox",
"license": "MIT",
"dependencies": {