updates build script to remove old builds before uploading

This commit is contained in:
Asger Geel Weirsøe
2020-09-05 12:39:58 +02:00
parent f4ec4385b2
commit 4ae10eb8dd

View File

@@ -22,7 +22,7 @@ def main():
)
args = parser.parse_args()
subprocess.call(['rm', 'dist/*'])
subprocess.call(['python3', 'setup.py', 'sdist', 'bdist_wheel'])
if args.test:
subprocess.call(['twine', 'upload', '--config-file', '.pypirc', '--repository', 'testpypi', 'dist/*'])