Replies: 3 comments 8 replies
This comment has been hidden.
This comment has been hidden.
-
I wonder if using a fixture like https://github.com/jazzband/pip-tools/blob/d6e1f9f/tests/conftest.py#L215-L225 would be helpful, or maybe a fixture setting We could add a gitignored directory like Alternatively, instead of having an in-tree gitignored location, we could just add a |
Beta Was this translation helpful? Give feedback.
-
It is undesirable that these tests access PyPI. At the very least, there should be an option to skip such tests or for the tests to be automatically skipped when PyPI isn't available. Better would be for the tests to run fully in an isolated environment. I'd like to find a solution that's maximally general and minimally invasive to each test. |
Beta Was this translation helpful? Give feedback.
-
Hello,
in Fedora, we run the tests of setuptools in an environment without internet connection.
We already skip
setuptools/tests/test_integration.py
entirely, but recentlysetuptools/tests/test_distutils_adoption.py
started to fail as well (when upgrading from 53.x to 54.x).I suspect that #2582 re-added pyproject.toml, forcing pip to use build isolation which requires internet access. The tests now try to fetch
wheel
(as a build requirement) from PyPI when installing setuptools to ajaraco.envs
environment.Monkeypatching the
VirtualEnv(jaraco.envs.VirtualEnv)
class to use pip with the--no-build-isolation
flag in theinstall
method workarounds the problem.We see similar attempts to fetch wheel in
TestSphinxUploadDocs.test_sphinx_doc
andtest_pip_upgrade_from_source[None]
, but I have not yet figured out how to workaround those, except torm pyproject.toml
.Is it desirable to make those tests work without access to real PyPI or should we skip them one by one in downstream instead?
Beta Was this translation helpful? Give feedback.
All reactions