Skip to content

Add futures and backport to Python 2.7 test requirements#1572

Merged
pganssle merged 2 commits into
pypa:masterfrom
pganssle:import_futures_test_reqs
Nov 4, 2018
Merged

Add futures and backport to Python 2.7 test requirements#1572
pganssle merged 2 commits into
pypa:masterfrom
pganssle:import_futures_test_reqs

Conversation

@pganssle

@pganssle pganssle commented Nov 3, 2018

Copy link
Copy Markdown
Member

setuptools.tests.test_build_meta relies on the Python 3 feature concurrent.futures to run, and as a result has been silently skipped in Python 2.7. This adds the futures backport to the 2.7 test requirements and turns the pytest.importorskip invocations in test_build_meta into standard import statements.

Pull Request Checklist

  • Changes have tests
  • News fragment added in changelog.d. See documentation for details

pganssle added a commit to pganssle/setuptools that referenced this pull request Nov 3, 2018
`setuptools.tests.test_build_meta` relies on the Python 3 feature
`concurrent.futures` to run, and as a result has been silently skipped
in Python 2.7. This adds the `futures` backport to the 2.7 test
requirements and turns the `pytest.importorskip` invocations in test_build_meta
into standard import statements.
@pganssle pganssle force-pushed the import_futures_test_reqs branch from bfbd607 to b2cbe86 Compare November 3, 2018 00:53
@pganssle pganssle changed the title Add futures and importlib backports to test reqs Add futures and backport to Python 2.7 test requirements Nov 3, 2018
@pganssle pganssle merged commit b0c7466 into pypa:master Nov 4, 2018
@djhoese

djhoese commented Nov 7, 2018

Copy link
Copy Markdown

Any idea if this fixes the python 2 backport of futures being installed on a python 3 environment? I'm planning on filing a bug report for it, but am still testing what is going on and what may fix it. Looks like with setuptools 40.5, it is installing futures on python 3 environments.

https://travis-ci.org/pytroll/satpy/jobs/451521185#L947

@pganssle

pganssle commented Nov 7, 2018

Copy link
Copy Markdown
Member Author

This PR only affects the setuptools tests, so it shouldn't change anything for users of setuptools.

@pganssle pganssle deleted the import_futures_test_reqs branch February 7, 2019 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants