File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 43
43
sys .exit ()
44
44
else :
45
45
print ("*** No flake8 issues detected. Continuing..." )
46
- print ("\n *** Rebuilding distribution packages: ***\n " )
46
+ print ("\n *** Removing existing distribution packages: ***\n " )
47
47
os .system ("rm -f dist/*.egg; rm -f dist/*.tar.gz; rm -f dist/*.whl" )
48
48
os .system ("rm -rf build/bdist.*; rm -rf build/lib" )
49
- os .system ("python setup.py sdist bdist_wheel" ) # Create new tar/wheel
49
+ print ("\n *** Installing build: *** (Required for PyPI uploads)\n " )
50
+ os .system ("python -m pip install --upgrade 'build>=0.7.0'" )
50
51
print ("\n *** Installing twine: *** (Required for PyPI uploads)\n " )
51
- os .system ("python -m pip install --upgrade 'twine>=1.15 .0'" )
52
+ os .system ("python -m pip install --upgrade 'twine>=3.6 .0'" )
52
53
print ("\n *** Installing tqdm: *** (Required for PyPI uploads)\n " )
53
54
os .system ("python -m pip install --upgrade 'tqdm>=4.62.3'" )
55
+ print ("\n *** Rebuilding distribution packages: ***\n " )
56
+ os .system ("python -m build" ) # Create new tar/wheel
54
57
print ("\n *** Publishing The Release to PyPI: ***\n " )
55
58
os .system ("python -m twine upload dist/*" ) # Requires ~/.pypirc Keys
56
59
print ("\n *** The Release was PUBLISHED SUCCESSFULLY to PyPI! :) ***\n " )
You can’t perform that action at this time.
0 commit comments