We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b6709f commit 01f3139Copy full SHA for 01f3139
requirements.txt
@@ -4,5 +4,3 @@ flake8==3.8.3
4
pytest==6.0.2
5
pytest-cov==2.10.1
6
freezegun==1.0.0
7
-twine==3.2.0
8
-wheel==0.35.1
setup.py
@@ -23,6 +23,11 @@ def read(fname):
23
history = read("HISTORY.rst").replace(".. :changelog:", "")
24
25
if sys.argv[-1] == "publish":
26
+ try:
27
+ import wheel
28
+ import twine
29
+ except (ImportError, ModuleNotFoundError):
30
+ raise ModuleNotFoundError('Run "pip install wheel twine"')
31
os.system("python setup.py sdist bdist_wheel")
32
os.system("twine upload dist/*")
33
os.system("git tag -a %s -m 'version %s'" % (__version__, __version__))
0 commit comments