diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2017-07-29 23:23:05 +0300 |
|---|---|---|
| committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2017-07-29 23:23:05 +0300 |
| commit | f5e769886bc2e74ee4af730804e7148e5193ef42 (patch) | |
| tree | a7ad779f36f9eec54d76a3ab59475da13a11cc0d /tests | |
| parent | c8e3fc27eab72eb3e17bb8880134e3e873a24598 (diff) | |
| download | wheel-git-f5e769886bc2e74ee4af730804e7148e5193ef42.tar.gz | |
Added support for specifying a build number
Signed-off-by: Alex Grönholm <alex.gronholm@nextday.fi>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_tagopt.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_tagopt.py b/tests/test_tagopt.py index 6d87b52..6eb8a87 100644 --- a/tests/test_tagopt.py +++ b/tests/test_tagopt.py @@ -48,6 +48,17 @@ def test_default_tag(temp_pkg): assert wheels[0].ext == '.whl' +def test_build_number(temp_pkg): + subprocess.check_call([sys.executable, 'setup.py', 'bdist_wheel', '--build-number=1'], + cwd=str(temp_pkg)) + dist_dir = temp_pkg.join('dist') + assert dist_dir.check(dir=1) + wheels = dist_dir.listdir() + assert len(wheels) == 1 + assert (wheels[0].basename == 'Test-1.0-1-py%s-none-any.whl' % (sys.version[0],)) + assert wheels[0].ext == '.whl' + + def test_explicit_tag(temp_pkg): subprocess.check_call( [sys.executable, 'setup.py', 'bdist_wheel', '--python-tag=py32'], |
