-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] vendor package typeguard
installed to entrypoints
#4480
Comments
typeguard
installed to entrypoints
I think I'm seeing another aspect of the same problem where this line
fails with ...
File "/Users/clm/dev/astropy-project/astropy-compatbility-checks/numpy-dev/.venv/lib/python3.12/site-packages/setuptools/_vendor/typeguard/__init__.py", line 21, in <module>
from ._importhook import ImportHookManager as ImportHookManager
File "/Users/clm/dev/astropy-project/astropy-compatbility-checks/numpy-dev/.venv/lib/python3.12/site-packages/setuptools/_vendor/typeguard/_importhook.py", line 35, in <module>
OPTIMIZATION = "typeguard" + "".join(version("typeguard").split(".")[:3])
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split' But I'm only seeing this in the context of launching pytest in a complicated setup and I haven't found how to reproduce this simply yet. |
Indeed, when I list the files in the wheel, I see that only the I can repro the issue pretty simply:
|
I've yanked 71.0.1, as it's worse than 71.0.0. |
crashes our test runner script "obspy-runtests" see pypa/setuptools#4480
Aha! The issue is that the metadata is not included in the sdist. Here's what's happened:
Probably, making sure all vendored metadata is in the sdist will correct the issue. |
This issue would not have occurred if setuptools was using setuptools_scm for source code discovery. I've confirmed that the failing test now passes when including all files from the vendored dependencies. |
Confirming that the latest patch |
pypa/setuptools#4480 (comment) pypa/setuptools#4482 Authored by: bashonly
Thanks a lot for the fix :D |
Currently, when the venv is installed or updated, we attempt to automatically update pip and setuptools within the venv. Unfortunately, the setuptools package is installed or updated without adhering to the constraints file, which restricts the setuptools version due to pypa/setuptools#4480. Resolve this issue by applying the constraints file to the installation and update of both pip and setuptools. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
Currently, when the venv is installed or updated, we attempt to automatically update pip and setuptools within the venv. Unfortunately, the setuptools package is installed or updated without adhering to the constraints file, which restricts the setuptools version due to pypa/setuptools#4480. Resolve this issue by applying the constraints file to the installation and update of both pip and setuptools. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
Currently, when the venv is installed or updated, we attempt to automatically update pip and setuptools within the venv. Unfortunately, the setuptools package is installed or updated without adhering to the constraints file, which restricts the setuptools version due to pypa/setuptools#4480. Resolve this issue by applying the constraints file to the installation and update of both pip and setuptools. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
Currently, when the venv is installed or updated, we attempt to automatically update pip and setuptools within the venv. Unfortunately, the setuptools package is installed or updated without adhering to the constraints file, which restricts the setuptools version due to pypa/setuptools#4480. Resolve this issue by applying the constraints file to the installation and update of both pip and setuptools. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
Currently, when the venv is installed or updated, we attempt to automatically update pip and setuptools within the venv. Unfortunately, the setuptools package is installed or updated without adhering to the constraints file, which restricts the setuptools version due to pypa/setuptools#4480. Resolve this issue by applying the constraints file to the installation and update of both pip and setuptools. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
setuptools version
setuptools==71.0.1
Python version
python 3.8
OS
arch linux
Additional environment information
No response
Description
bug introduced by https://github.com/pypa/setuptools/compare/v71.0.1..v71.0.0#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711R181-R183
pytest would search the plugins by the entrypoint
pytest11
. thevendor/typeguard
got installed to the entrypoint, but without a correct metadata. Got error messagesucceeded with version 71.0.0
Expected behavior
run successfully
How to Reproduce
as description
Output
as description
The text was updated successfully, but these errors were encountered: