updates build script to remove old builds before uploading
This commit is contained in:
2
build.py
2
build.py
@@ -22,7 +22,7 @@ def main():
|
|||||||
)
|
)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
subprocess.call(['rm', 'dist/*'])
|
||||||
subprocess.call(['python3', 'setup.py', 'sdist', 'bdist_wheel'])
|
subprocess.call(['python3', 'setup.py', 'sdist', 'bdist_wheel'])
|
||||||
if args.test:
|
if args.test:
|
||||||
subprocess.call(['twine', 'upload', '--config-file', '.pypirc', '--repository', 'testpypi', 'dist/*'])
|
subprocess.call(['twine', 'upload', '--config-file', '.pypirc', '--repository', 'testpypi', 'dist/*'])
|
||||||
|
|||||||
Reference in New Issue
Block a user