-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
conda package dependency regression on urllib3 #1280
Comments
@jakob-keller you added this in https://github.com/aio-libs/aiobotocore/pull/1246/files. Again, the only reason we use this library is because we need to match what botocore does. We should not list these types of dependencies explicitly, they should be removed and tracked instead perhaps via a unittest. |
At the moment, we use aiobotocore/aiobotocore/endpoint.py Line 16 in f13f103
I will check if we can change the import into an indirect one (from botocore). That should work in this case and make the direct |
BTW: This issue is about 2.16.1 which does not include #1246: Line 32 in a14bdb4
IMO, the result of the conda environment must be influenced by some other factor. I am pretty sure, this is not an issue at all, in particular not with @michaelaye: Could you please elaborate why you believe there is an issue at all? |
I checked and am convinced that everything is as it should be with regards to that dependency: #1281 Again, this is unrelated to this issue which refers to 2.16.1. |
did you see my reproduce section? This issue is about upgrading from 2.16.1 to anything newer. Since 2.18 the requirement of
is explicitly set in the conda package:
botocore offers builds with and without urllib3=2 allowed, don't know why, but aiobotocore strictly forbids urllib3=2.x since aiobotocore version 2.18, which is the issue. |
Sorry, I did not. My bad!
That is certainly not intended. We ship to PyPI only and don't face that issue outside of conda. I will need to understand how conda packages are built and why they contain incorrect dependency metadata. |
ah, it's already being discussed here, the feedstock repo is for creating the conda packages on the conda-forge channel. conda-forge/aiobotocore-feedstock#101 maybe you could help with the arguments there due to your insight? for example, they are arguing if the direct setting could be left away and just let botocore decide on the requirements? I cannot judge if that's okay. |
Sure, hope this helps: conda-forge/aiobotocore-feedstock#101 (comment) |
@jakob-keller I think we're in the clear as our urllib3 deps: https://github.com/aio-libs/aiobotocore/blob/master/pyproject.toml#L39-L40 match that of the corresponding botocore: https://github.com/boto/botocore/blob/1.36.0/setup.cfg#L8-L9 so this is ok. However, can we put some comments saying when bumping botocore deps these now need to be kept in sync as well? |
Yes, that could be useful. Probably just reword the existing comment: Line 35 in f13f103
|
yep! specifically which modules to take into account |
Describe the bug
Updating from
on osx-arm64
forces downgrade of urllib3 from 2.x to 1.x
reproduce
Checklist
pip check
passes without errorspip freeze
resultspip freeze results
Environment:
The text was updated successfully, but these errors were encountered: