Skip to content
Myr

Merge pull request #336 from berkerpeksag/wheel-support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add wheel support.

authored by Armin Ronacher · committed by Armin Ronacher · parents e1e5c0f, 685d2ad · Browse files · 2 files+15 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+15 added−1 removed

  • other:+15 added−1 removed

2 files+15 added−1 removed

modified:scripts/make-release.py+12 added-1 removed
14 unmodified lines
15import re16from datetime import datetime, date17from subprocess import Popen, PIPE1819try:20 import wheel21except ImportError:22 wheel = None2324_date_strip_re = re.compile(r'(?<=\d)(st|nd|rd|th)')2526
64 unmodified lines
91 set_filename_version('setup.py', version, 'version')929394def build_and_upload():91 Popen([sys.executable, 'setup.py', 'release', 'sdist', 'upload']).wait()95 cmd = [sys.executable, 'setup.py', 'release', 'sdist', 'upload']96 if wheel is not None:97 cmd.insert(4, 'bdist_wheel')98 Popen(cmd).wait()99100101def fail(message, *args):102 print >> sys.stderr, 'Error:', message % args
43 unmodified lines
146147 if not git_is_clean():148 fail('You have uncommitted changes in git')149150 if wheel is None:151 print ('Warning: You need to install the wheel package '152 'to upload a wheel distribution.')153154 set_init_version(version)155 set_setup_version(version)156 make_git_commit('Bump version number to %s', version)157 make_git_tag(version)
7 unmodified lines
modified:setup.cfg+3 added
1[wheel]2universal = 134[egg_info]5tag_build = dev6tag_date = true7
2 unmodified lines