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:
2024-11-28 02:53:24 +00:00
parent 923bc09c14
commit bcb4bbc197
7 changed files with 17 additions and 6 deletions
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+15 -4
View File
@@ -9,6 +9,15 @@ args_string = " ".join(args)
def install(): def install():
os.system("./.venv/bin/python -m pip install -e .") 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(): if not pathlib.Path(".venv").exists():
os.system("python3 -m venv .venv") os.system("python3 -m venv .venv")
install() install()
@@ -17,10 +26,12 @@ if "install" in args:
install() install()
if "build" in sys.argv: if "build" in sys.argv:
os.system("./.venv/bin/python -m pip install build") build()
os.system("./.venv/bin/python -m build .")
os.system("./.venv/bin/python -m pip install black") if "publish" in sys.argv:
os.system("./.venv/bin/python -m black .") 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: if "run" in sys.argv:
os.system("./.venv/bin/yura " + args_string) os.system("./.venv/bin/yura " + args_string)
+1 -1
View File
@@ -1,6 +1,6 @@
[metadata] [metadata]
name = yura name = yura
version = 14.3.7 version = 14.3.9
description = Yura async AI client description = Yura async AI client
author = retoor author = retoor
author_email = retoor@retoor.io author_email = retoor@retoor.io
+1 -1
View File
@@ -1,6 +1,6 @@
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: yura Name: yura
Version: 14.3.7 Version: 14.3.9
Summary: Yura async AI client Summary: Yura async AI client
Author: retoor Author: retoor
Author-email: retoor@retoor.io Author-email: retoor@retoor.io