From 9aa0a011acde07706221c0a1b01553dd5cbe1098 Mon Sep 17 00:00:00 2001 From: bw2 Date: Tue, 27 Jun 2023 16:28:10 -0400 Subject: [PATCH] fixed 'publish' step --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fcc785f..09454c0 100644 --- a/setup.py +++ b/setup.py @@ -50,8 +50,9 @@ def launch_http_server(directory): command = sys.argv[-1] if command == 'publish': os.system('rm -rf dist') - os.system('python setup.py sdist') + os.system('python3 setup.py sdist') os.system('python3 setup.py bdist_wheel') + os.system('twine check dist/*') # check for formatting or other issues that would cause twine upload to error out os.system('twine upload dist/*whl dist/*gz') sys.exit() elif command == "coverage":