Merge ~lvoytek/ubuntu/+source/requests:remove-charset-normalizer into ubuntu/+source/requests:ubuntu/devel
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | git-ubuntu bot | ||||
| Approved revision: | not available | ||||
| Merged at revision: | 44faf7c346de59d3f5917aef108d077d7946bcbf | ||||
| Proposed branch: | ~lvoytek/ubuntu/+source/requests:remove-charset-normalizer | ||||
| Merge into: | ubuntu/+source/requests:ubuntu/devel | ||||
| Diff against target: |
120 lines (+99/-0) 3 files modified
debian/changelog (+7/-0) debian/patches/remove-charset-normalizer-dependency.patch (+91/-0) debian/patches/series (+1/-0) |
||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Christian Ehrhardt (community) | Approve | ||
| git-ubuntu bot | Approve | ||
| Bryce Harrington (community) | Approve | ||
| Canonical Server | Pending | ||
|
Review via email:
|
|||
Description of the change
Added charset-normalizer as an alternative dependency to chardet so it won't be included with dh_python3 / ${python3:Depends}. Since charset-normalizer is in universe it was blocking the new version of requests in main. Luckily it is just used as a backup for chardet which is in main, so making it an alternative doesn't break request's functionality.
PPA: ppa:lvoytek/
Tested with:
# lxc launch images:
# lxc exec test-requests bash
# apt update && apt dist-upgrade -y
# apt install python3-requests
# apt install software-
# add-apt-repository ppa:lvoytek/
# apt update && apt upgrade -y

Hi,
an inline suggestion and an idea at an - hopefully easier to maintain, maybe even upstreamable - alternative:
AFAIU this is added by dh_python as it is referenced in the code.
Have you tried adding them explicitly with an or (without any code change).
The assumption (needs to be tested) would be that by being listed already they'd not be re-added.
And by being an alternate dependency starting with the one in universe it should be ok.
like d/control with the only change being: charset- normalizer
Depends: python3-charset | python3-