2021-11-21 22:19:25 +00:00
|
|
|
def build():
|
2023-04-20 11:33:12 +00:00
|
|
|
from os import system as cmd
|
2022-03-03 15:29:03 +00:00
|
|
|
from editor import edit
|
2023-04-20 11:33:12 +00:00
|
|
|
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")
|
2021-11-21 22:19:25 +00:00
|
|
|
print("Run these commands next: \n cd package\n python3 -m build\n python3 -m twine upload -r pypi dist/*")
|
2023-04-20 11:33:12 +00:00
|
|
|
cmd("bash")
|