Skip to content

Commit 01f3139

Browse files
committed
Remove twine and wheel from the testing requirements
1 parent 9b6709f commit 01f3139

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ flake8==3.8.3
44
pytest==6.0.2
55
pytest-cov==2.10.1
66
freezegun==1.0.0
7-
twine==3.2.0
8-
wheel==0.35.1

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ def read(fname):
2323
history = read("HISTORY.rst").replace(".. :changelog:", "")
2424

2525
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"')
2631
os.system("python setup.py sdist bdist_wheel")
2732
os.system("twine upload dist/*")
2833
os.system("git tag -a %s -m 'version %s'" % (__version__, __version__))

0 commit comments

Comments
 (0)