Permalink
Browse files

Add wheel support.

  • Loading branch information...
berkerpeksag committed May 19, 2014
1 parent b7d13f2 commit 685d2ad34e4b38029ea514baa349229ff92773fc
Showing with 15 additions and 1 deletion.
  1. +12 −1 scripts/make-release.py
  2. +3 −0 setup.cfg
View
@@ -16,6 +16,10 @@
from datetime import datetime, date
from subprocess import Popen, PIPE
+try:
+ import wheel
+except ImportError:
+ wheel = None
_date_strip_re = re.compile(r'(?<=\d)(st|nd|rd|th)')
@@ -88,7 +92,10 @@ def set_setup_version(version):
def build_and_upload():
- Popen([sys.executable, 'setup.py', 'release', 'sdist', 'upload']).wait()
+ cmd = [sys.executable, 'setup.py', 'release', 'sdist', 'upload']
+ if wheel is not None:
+ cmd.insert(4, 'bdist_wheel')
+ Popen(cmd).wait()
def fail(message, *args):
@@ -140,6 +147,10 @@ def main():
if not git_is_clean():
fail('You have uncommitted changes in git')
+ if wheel is None:
+ print ('Warning: You need to install the wheel package '
+ 'to upload a wheel distribution.')
+
set_init_version(version)
set_setup_version(version)
make_git_commit('Bump version number to %s', version)
View
@@ -1,3 +1,6 @@
+[wheel]
+universal = 1
+
[egg_info]
tag_build = dev
tag_date = true

0 comments on commit 685d2ad

Please sign in to comment.