Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948477 - [guru] dev-python/cloudflare-3.1.0: too restrictive dev-python/httpx dependency
Summary: [guru] dev-python/cloudflare-3.1.0: too restrictive dev-python/httpx dependency
Status: RESOLVED INVALID
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Kyle Elbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-21 05:22 UTC by Andrey
Modified: 2025-01-21 08:51 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2025-01-21 05:22:50 UTC
Currently, dev-python/cloudflare-3.1.0-r3 ebuild specifies the following dependency:
`<dev-python/httpx-0.28.0[${PYTHON_USEDEP}]`

However, the Python library itself claims much more lax restrictions on the version of httpx.
From https://github.com/cloudflare/cloudflare-python/blob/v3.1.0/pyproject.toml#L11 :
`"httpx>=0.23.0, <1",`

The problem is that the overly restrictive dependency caused dev-python/cloudflare package to get added to package.mask and slatted for removal https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1a17cf75800e30ff149a69ad871fd135233a4749


So, please, fix the dependency constraint.
An alternative is to bump to cloudflare-4.0.0, of course.

The latter even specifies httpx==0.28.1 in its requirements.lock file: https://github.com/cloudflare/cloudflare-python/blob/v4.0.0/requirements.lock#L28 .

Reproducible: Always
Comment 1 Andrey 2025-01-21 05:31:58 UTC
At the very least, =dev-python/cloudflare-3.1.0-r3 builds just fine with =dev-python/httpx-0.28.1.
Comment 2 Kyle Elbert 2025-01-21 06:03:58 UTC
no, it does not in fact run fine with httpx 0.28.0 discussion upstream: https://github.com/cloudflare/cloudflare-python/discussions/116#discussioncomment-11447614 . I'm adding bumping it to 4.0.0 instead.
Comment 3 Andrey 2025-01-21 06:07:42 UTC
(In reply to Kyle Elbert from comment #2)
> no, it does not in fact run fine with httpx 0.28.0 discussion upstream:
> https://github.com/cloudflare/cloudflare-python/discussions/
> 116#discussioncomment-11447614 .

Ah, got it, thanks!


> I'm adding bumping it to 4.0.0 instead.

This is even better, thank you!
Comment 4 Larry the Git Cow gentoo-dev 2025-01-21 08:51:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cc7b80402e92be374d1d44deb70f3b719b461059

commit cc7b80402e92be374d1d44deb70f3b719b461059
Author:     Kyle Elbert <kcelbert@gmail.com>
AuthorDate: 2025-01-21 06:02:45 +0000
Commit:     Kyle Elbert <kcelbert@gmail.com>
CommitDate: 2025-01-21 06:02:52 +0000

    dev-python/cloudflare: add 4.0.0
    
    Bug: https://bugs.gentoo.org/948477
    
    Signed-off-by: Kyle Elbert <kcelbert@gmail.com>

 dev-python/cloudflare/Manifest                |   2 +
 dev-python/cloudflare/cloudflare-4.0.0.ebuild | 100 ++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)