fpsql-py-package/build.py
2023-04-20 16:39:15 +00:00

13 lines
No EOL
397 B
Python

def build():
from os import system as cmd
from editor import edit
cmd("rm -rf package/dist")
cmd("mkdir package/dist")
cmd("poetry update")
cmd("clear")
useEditor = input("Run Version Editor (Y|*)?").upper()
if useEditor == "Y":
edit()
cmd("clear")
print("Run these commands next: \n cd package\n python3 -m build\n python3 -m twine upload -r pypi dist/*")
cmd("bash")