Update setup.py
This commit is contained in:
parent
d9468cbedf
commit
0d644aa097
6
setup.py
6
setup.py
@ -61,15 +61,15 @@ class PublishCommand(Command):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
self.status('Removing previous builds...')
|
self.status('Removing previous builds…')
|
||||||
rmtree(os.sep.join(('.', 'dist')))
|
rmtree(os.sep.join(('.', 'dist')))
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
self.status('Building Source and Wheel (universal) distribution...')
|
self.status('Building Source and Wheel (universal) distribution…')
|
||||||
os.system('{0} setup.py sdist bdist_wheel --universal '.format(sys.executable))
|
os.system('{0} setup.py sdist bdist_wheel --universal '.format(sys.executable))
|
||||||
|
|
||||||
self.status('Uploading the package to PyPi via Twine...')
|
self.status('Uploading the package to PyPi via Twine…')
|
||||||
os.system('twine upload dist/*')
|
os.system('twine upload dist/*')
|
||||||
|
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user