Skip to content

Commit

Permalink
improve upload command
Browse files Browse the repository at this point in the history
  • Loading branch information
willforde committed Apr 27, 2018
1 parent 0b05213 commit 604065e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mkvstrip.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright: (c) 2013 William Forde (willforde@gmail.com)
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ def run(self):
pass

self.status("Building Source and Wheel (universal) distribution...")
os.system("{0} setup.py sdist bdist_wheel --universal".format(sys.executable))
command = "{0} setup.py bdist_wheel".format(sys.executable)
if "2.7" in REQUIRES_PYTHON and "3." in REQUIRES_PYTHON:
command += " --universal"
os.system(command)

self.status("Uploading the package to PyPi via Twine...")
os.system("twine upload dist/*")
Expand Down

0 comments on commit 604065e

Please sign in to comment.