Created
September 22, 2023 18:23
-
-
Save FLAK-ZOSO/6c52d8c56dcf77ec9b1806152fde830f to your computer and use it in GitHub Desktop.
Uploader.py - The customizable script for uploading to PyPI and GitHub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!\usr\bin\env python3 | |
if __name__ == '__main__': | |
import sys, os | |
version = sys.argv[1] | |
os.system(f"python3 setup.py sdist") | |
os.system(f"python3 -m twine upload dist/* --verbose") | |
os.system(f"python3 -m pip install classeviva.py=={version}") | |
os.system(f"python3 -m pip install classeviva.py=={version}") | |
os.system(f"git add .") | |
os.system(f"git commit -m 'v{version}'") | |
os.system(f"git tag -a v{version} -m 'v{version}'") | |
os.system(f"git push origin v{version}") | |
os.system(f"git show v{version}") | |
os.system("rm -rf dist") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!\usr\bin\env python3 | |
if __name__ == '__main__': | |
import sys, os | |
version = sys.argv[1] | |
os.system(f"python setup.py sdist") | |
os.system(f"python -m twine upload dist/* --verbose") | |
os.system(f"pip install classeviva.py=={version}") | |
os.system(f"pip install classeviva.py=={version}") | |
os.system(f"git add .") | |
os.system(f"git commit -m 'v{version}'") | |
os.system(f"git tag -a v{version} -m 'v{version}'") | |
os.system(f"git push origin v{version}") | |
os.system(f"git show v{version}") | |
os.system("rd /s dist") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment