diff --git a/.travis.yml b/.travis.yml index f1fd555fec1..d90668cb446 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ language: python services: - docker install: - - pip install pylint flake8 requests -q + - pip install pylint flake8 requests wheel==0.30.0 -q jobs: include: - stage: verify diff --git a/scripts/ci/test_index.py b/scripts/ci/test_index.py index 04dcc965fd7..3b58a264132 100755 --- a/scripts/ci/test_index.py +++ b/scripts/ci/test_index.py @@ -126,6 +126,15 @@ def test_metadata(self): "Metadata for {} in index doesn't match the expected of: \n" "{}".format(item['filename'], json.dumps(metadata, indent=2, sort_keys=True, separators=(',', ': ')))) + # Due to https://github.com/pypa/wheel/issues/195 we prevent whls built with 0.31.0 or greater. + # 0.29.0, 0.30.0 are the two previous versions before that release. + supported_generators = ['bdist_wheel (0.29.0)', 'bdist_wheel (0.30.0)'] + self.assertIn(metadata.get('generator'), supported_generators, + "{}: 'generator' should be one of {}. " + "Build the extension with a different version of the 'wheel' package " + "(e.g. `pip install wheel==0.30.0`). " + "This is due to https://github.com/pypa/wheel/issues/195".format(ext_name, + supported_generators)) run_requires = metadata.get('run_requires') if run_requires and ext_name not in SKIP_DEP_CHECK: deps = run_requires[0]['requires']