Skip to content

Commit

Permalink
bump-version
Browse files Browse the repository at this point in the history
  • Loading branch information
Marmaduke Woodman committed Dec 7, 2023
1 parent cf44ef1 commit 84e227d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions vbjax/_version.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
__version__ = 'v0.0.10'
__version__ = 'v0.0.11'

if __name__ == '__main__':
print(__version__)
import os, sys
_, cmd, *args = sys.argv
print(cmd, args)
if cmd == 'tag':
os.system(f'git add vbjax/_version.py')
os.system(f'git commit -m "bump version"')
os.system(f'git tag {__version__}')
os.system(f'git push -u origin main')
os.system(f'git push -u origin {__version__}')
import subprocess
def do(cmd):
print(cmd)
subprocess.check_call(cmd.split(' '))
do(f'/usr/bin/git add vbjax/_version.py')
do(f'/usr/bin/git commit -m bump-version')
do(f'/usr/bin/git push -u origin main')
do(f'/usr/bin/git tag {__version__}')
do(f'/usr/bin/git push -u origin {__version__}')

0 comments on commit 84e227d

Please sign in to comment.