-
-
Notifications
You must be signed in to change notification settings - Fork 21
Declarative config breaks installs for old setuptools #43
Comments
It breaks our build. Possibly related to pytest-dev/pytest-runner#43.
That's weird to me that Oh! That could be it... if you have a version of setuptools that doesn't support declarative config (30.4 or later I believe), the package name would not be present. I suspect that's the issue. Can you confirm you have an older version of setuptools? |
Given that this is flagged as urgent, and given that the 4.3 release wasn't at all an important release, I'd like to pull it from PyPI. I worry if I pull it from PyPI, I won't have a good path to test to avoid this issue. Perhaps I could re-release it as 5.0 some time after packages that rely on it have had a chance to pin against it. Thoughts? |
Yes, I have I agree, this is breaking a lot of things, and we are currently going through a release cycle, so we desperately need our CI working. I think you should pull it from PyPI, search for all packages using |
Alternatively, I just checked that |
I’ve pulled the 4.3 release . |
I've re-released pytest-runner 4.2 as 4.3.1 to ensure it supersedes the 4.3 release. I've furthermore added a change note in that release that 5.x (or later) will drop support. I do worry that even when releasing a 5.x release, projects are unlikely to have seen the advance notice. |
Now that I think about it, pytest-runner can probably warn if it's launched under a setuptools that can't support declarative config. |
This issue was addressed in 4.4 with a warning that should be emitted. Projects that can't ensure setuptools 30.4 or later need to pin to |
Pytest-runner 5 is releasing today also. Please update your projects. |
Reproduction:
The flake8-mutable project uses
pytest-runner
insetup_requires
(ref), which installs packages viaeasy_install
and not throughpip
(https://pip.readthedocs.io/en/1.4.1/cookbook.html#controlling-setup-requires), which is probably the reason why our CI is currently crashing:The text was updated successfully, but these errors were encountered: