feat: bump version to 14.3.9 and add publish command to make script
Extract build logic into reusable function and add new "publish" target that runs build then uploads dist artifacts to gitea via twine. Update version in setup.cfg and egg-info metadata from 14.3.7 to 14.3.9.
This commit is contained in:
@@ -9,6 +9,15 @@ args_string = " ".join(args)
|
||||
def install():
|
||||
os.system("./.venv/bin/python -m pip install -e .")
|
||||
|
||||
def build():
|
||||
os.system("./.venv/bin/python -m pip install build")
|
||||
os.system("rm -r dist")
|
||||
os.system("./.venv/bin/python -m build .")
|
||||
os.system("./.venv/bin/python -m pip install black")
|
||||
os.system("./.venv/bin/python -m black .")
|
||||
|
||||
|
||||
|
||||
if not pathlib.Path(".venv").exists():
|
||||
os.system("python3 -m venv .venv")
|
||||
install()
|
||||
@@ -17,10 +26,12 @@ if "install" in args:
|
||||
install()
|
||||
|
||||
if "build" in sys.argv:
|
||||
os.system("./.venv/bin/python -m pip install build")
|
||||
os.system("./.venv/bin/python -m build .")
|
||||
os.system("./.venv/bin/python -m pip install black")
|
||||
os.system("./.venv/bin/python -m black .")
|
||||
build()
|
||||
|
||||
if "publish" in sys.argv:
|
||||
build()
|
||||
os.system("./.venv/bin/python -m pip install twine")
|
||||
os.system("./.venv/bin/python -m twine upload --repository gitea dist/*")
|
||||
|
||||
if "run" in sys.argv:
|
||||
os.system("./.venv/bin/yura " + args_string)
|
||||
|
||||
Reference in New Issue
Block a user