Skip to content

Commit

Permalink
Add check if wheel and twine are present
Browse files Browse the repository at this point in the history
  • Loading branch information
jieter committed Dec 5, 2023
1 parent 8885e32 commit ba8c80a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
VERSION = str(re.search('__version__ = "(.+?)"', f.read().decode()).group(1))

if sys.argv[-1] == "publish":
try:
import twine # noqa
import wheel # noqa
except ImportError:
print("Required to publish: pip install wheel twine")
os.system("python setup.py clean --all")
os.system("python setup.py sdist bdist_wheel --universal")
os.system(
Expand Down

0 comments on commit ba8c80a

Please sign in to comment.