mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 03:27:34 +00:00
22 lines
605 B
Python
22 lines
605 B
Python
def main():
|
|
import subprocess
|
|
import sys
|
|
|
|
try:
|
|
# Bump version
|
|
print("Bumping version...")
|
|
subprocess.run([sys.executable, '-m', 'renamer.bump'], check=True)
|
|
|
|
# Sync dependencies
|
|
print("Syncing dependencies...")
|
|
subprocess.run(['uv', 'sync'], check=True)
|
|
|
|
# Build package
|
|
print("Building package...")
|
|
subprocess.run(['uv', 'build'], check=True)
|
|
|
|
print("Release process completed successfully!")
|
|
|
|
except subprocess.CalledProcessError as e:
|
|
print(f"Error during release process: {e}")
|
|
sys.exit(1) |