diff options
| author | Alex Grönholm <alex.gronholm@nextday.fi> | 2018-10-04 22:48:17 +0300 |
|---|---|---|
| committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2018-10-04 22:48:17 +0300 |
| commit | fbf3e3ada64d36ca7bb9c1422f5a1ccdba7e4dcf (patch) | |
| tree | d51e11fd44fec9f4d3fd47ce9775d005dfcf44e1 /tests | |
| parent | e284ddf676adffa22f6d6a7b02be7328acfe23c4 (diff) | |
| download | wheel-git-fbf3e3ada64d36ca7bb9c1422f5a1ccdba7e4dcf.tar.gz | |
Fixed build number appearing in the .dist-info directory name
Adding a build number caused two different .dist-info directories to be added to the wheel, making pip (rightfully) reject it.
We now construct the dist-info directory name without the build number in all cases.
Fixes #263.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_bdist_wheel.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_bdist_wheel.py b/tests/test_bdist_wheel.py index 2e87bb3..1ad34af 100644 --- a/tests/test_bdist_wheel.py +++ b/tests/test_bdist_wheel.py @@ -88,3 +88,14 @@ def test_licenses_disabled(dummy_dist, monkeypatch, tmpdir): '--universal']) with WheelFile('dist/dummy_dist-1.0-py2.py3-none-any.whl') as wf: assert set(wf.namelist()) == DEFAULT_FILES + + +def test_build_number(dummy_dist, monkeypatch, tmpdir): + monkeypatch.chdir(dummy_dist) + subprocess.check_call([sys.executable, 'setup.py', 'bdist_wheel', '-b', str(tmpdir), + '--universal', '--build-number=2']) + with WheelFile('dist/dummy_dist-1.0-2-py2.py3-none-any.whl') as wf: + filenames = set(wf.namelist()) + assert 'dummy_dist-1.0.dist-info/RECORD' in filenames + assert 'dummy_dist-1.0.dist-info/METADATA' in filenames + |
