Compare commits

...
Sign in to create a new pull request.

14 commits

Author SHA1 Message Date
Benjamin A. Beasley
cd3e490d53 Update to 2.6.3 (close RHBZ#2427603) 2026-01-07 23:25:01 +00:00
Benjamin A. Beasley
78aa0cc35e Update .rpmlintrc file
[skip changelog]
2026-01-07 23:25:01 +00:00
Benjamin A. Beasley
994f0a13b1 Update to 2.6.2 (close RHBZ#2421420) 2025-12-12 06:59:19 +00:00
Benjamin A. Beasley
5baec5bbec Update to 2.6.1 (close RHBZ#2419408)
- Fixes CVE-2025-66471 / GHSA-2xpw-w6gg-jr37
- Fixes CVE-2025-66418 / GHSA-gm62-xv2j-4w53
2025-12-08 21:41:08 +00:00
Miro Hrončok
9b878192d6 Allow building with setuptools_scm 9 2025-12-08 12:38:54 +01:00
Python Maint
b97cc1ac48 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 14:42:14 +02:00
Python Maint
53699eb070 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:06:11 +02:00
Karolina Surma
e5f7f4eaa8 Update to 2.5.0 (rhbz#2375401) 2025-08-07 16:12:56 +02:00
Fedora Release Engineering
30af009037 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 10:59:26 +00:00
Benjamin A. Beasley
50a131c01c Non-bootstrap build for Python 3.14 2025-06-13 08:13:47 -04:00
Python Maint
da087985d0 Bootstrap for Python 3.14 2025-06-03 09:58:05 +02:00
Miro Hrončok
e2a4d04798 Unpin hatch-vcs version 2025-05-29 11:46:29 +02:00
Benjamin A. Beasley
85033d9c3d Update to 2.4.0 (close RHBZ#2358892) 2025-04-15 09:55:58 -04:00
Benjamin A. Beasley
b8b7567aee In the CI smoke test, do not check for a ‘server’ header
It no longer seems to be present, and this particular header was not the
point of the test.
2025-04-15 07:51:46 -04:00
5 changed files with 44 additions and 51 deletions

6
.gitignore vendored
View file

@ -49,3 +49,9 @@
/urllib3-2.2.2.tar.gz
/urllib3-2.2.3.tar.gz
/urllib3-2.3.0.tar.gz
/urllib3-2.4.0.tar.gz
/urllib3-2.5.0.tar.gz
/urllib3-2.6.0.tar.gz
/urllib3-2.6.1.tar.gz
/urllib3-2.6.2.tar.gz
/urllib3-2.6.3.tar.gz

View file

@ -1,6 +1 @@
# It is normal that extras metapackages should not have documentation, or any
# files at all.
addFilter(r"\+\w+\.\w+: W: no-documentation")
# Not real spelling errors
addFilter(r"spelling-error \('([Mm]etapackage)s?',")
addFilter(r"spelling-error \('(gzip|brotli|zstd)',")

View file

@ -5,7 +5,7 @@
%bcond extradeps %{undefined rhel}
Name: python-urllib3
Version: 2.3.0
Version: 2.6.3
Release: %autorelease
Summary: HTTP library with thread-safe connection pooling, file post, and more
@ -20,9 +20,10 @@ Source0: %{url}/archive/%{version}/urllib3-%{version}.tar.gz
# Upstream would like to get the necessary changes merged into Hypercorn, but
# explained clearly why the forked copy is needed for now.
#
# Note that dev-requirements.txt references the urllib3-changes branch of
# https://github.com/urllib3/hypercorn/, and we should use the latest commit
# from that branch, but we package using a commit hash for reproducibility.
# Note that tool.uv.sources.hypercorn in pyproject.toml references the
# urllib3-changes branch of https://github.com/urllib3/hypercorn/, and we
# should use the latest commit from that branch, but we package using a commit
# hash for reproducibility.
#
# We do not need to treat this as a bundled dependency because it is not
# installed in the buildroot or otherwise included in any of the binary RPMs.
@ -33,46 +34,10 @@ Source1: %{hypercorn_url}/archive/%{hypercorn_commit}/hypercorn-%{hyperco
BuildArch: noarch
BuildRequires: python3-devel
# The conditional is important: we benefit from tomcli for editing dependency
# groups, but we do not want it when bootstrapping or in RHEL.
%if %{with tests}
# Test dependencies are listed only in dev-requirements.txt. Because there are
# linters and coverage tools mixed in, and exact versions are pinned, we resort
# to manual listing.
# h2==4.1.0: also in the h2 extra
BuildRequires: %{py3_dist h2}
# coverage==7.6.4: omitted linter/coverage tool
# PySocks==1.7.1
BuildRequires: %{py3_dist PySocks}
# pytest==8.0.2
BuildRequires: %{py3_dist pytest}
# pytest-timeout==2.1.0
BuildRequires: %{py3_dist pytest-timeout}
# pyOpenSSL==24.2.1
BuildRequires: %{py3_dist pyOpenSSL}
# idna==3.7
BuildRequires: %{py3_dist idna}
# trustme==1.2.0
BuildRequires: %{py3_dist trustme}
# cryptography==43.0.1
BuildRequires: %{py3_dist cryptography}
# towncrier==23.6.0: used for generating a changelog
# pytest-memray==1.5.0;python_version<"3.14" and sys_platform!="win32" and
# implementation_name=="cpython": not packaged, unwanted profiler
# trio==0.26.2
BuildRequires: %{py3_dist trio}
# # https://github.com/pallets/quart/pull/369
# Quart @ git+https://github.com/pallets/quart@67110bf383d8973bce1619e957b4b6ea088ad9f2
BuildRequires: %{py3_dist Quart}
# quart-trio==0.11.1
BuildRequires: %{py3_dist quart-trio}
# # https://github.com/pgjones/hypercorn/issues/62
# # https://github.com/pgjones/hypercorn/issues/168
# # https://github.com/pgjones/hypercorn/issues/169
# hypercorn @ git+https://github.com/urllib3/hypercorn@urllib3-changes
# hypercorn is packaged, but we need the forked/bundled version
# httpx==0.25.2
BuildRequires: %{py3_dist httpx}
# pytest-socket==0.7.0: not packaged, not strictly required
BuildRequires: tomcli
%endif
%global _description %{expand:
@ -138,12 +103,40 @@ Recommends: python3-urllib3+socks
recent_date=$(date --date "7 month ago" +"%Y, %_m, %_d")
sed -i "s/^RECENT_DATE = datetime.date(.*)/RECENT_DATE = datetime.date($recent_date)/" src/urllib3/connection.py
%if %{with tests}
# Possible improvements to dependency groups
# https://github.com/urllib3/urllib3/issues/3594
# Adjust the contents of the "dev" dependency group by removing:
remove_from_dev() {
tomcli set pyproject.toml lists delitem 'dependency-groups.dev' "($1)\b.*"
}
# - Linters, coverage tools, profilers, etc.:
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
remove_from_dev 'coverage|pytest-memray'
# - Dependencies for maintainer tasks
remove_from_dev 'build|towncrier'
# - Dependencies that are not packaged and not strictly required
remove_from_dev 'pytest-socket'
# - Hypercorn, because we have a special forked version we must use for
# testing instead, so we do not want to generate a dependency on the system
# copy. Note that the system copy is still an indirect dependency via quart
# and quart-trio.
remove_from_dev 'hypercorn'
# Remove all version bounds for test dependencies. We must attempt to make do
# with what we have. (This also removes any python version or platform
# constraints, which is currently fine, but could theoretically cause trouble
# in the future. Well cross that bridge if we ever arrive at it.)
tomcli set pyproject.toml lists replace --type regex_search \
'dependency-groups.dev' '[>=]=.*' ''
%endif
%generate_buildrequires
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
# Generate BRs from packaged extras even when tests are disabled, to ensure
# the extras metapackages are installable if the build succeeds.
%pyproject_buildrequires %{?with_extradeps:-x brotli,zstd,socks,h2}
%pyproject_buildrequires %{?with_extradeps:-x brotli,zstd,socks,h2} %{?with_tests:-g dev}
%build

View file

@ -1,2 +1,2 @@
SHA512 (urllib3-2.3.0.tar.gz) = 7b4b8732f4a4cddb8a6f6854d21febcbecba0762bff65d2291d95d1f54a972c3168f8d7ca1786edfb5c0a0c955cf3812ff6fe1b7925973d3fe31077fbfbdc39c
SHA512 (urllib3-2.6.3.tar.gz) = 554cedfd97d411fffa9a8ba46f592eab9e58c5fa8822ecd5a73ab45d6adfc188a6b9c4e238d02a4fbd3a1067a25a1de841a33d398d0641e22a32ea414876b615
SHA512 (hypercorn-d1719f8c1570cbd8e6a3719ffdb14a4d72880abb.tar.gz) = 62d6787d88a2e716f0ac04fc49f6cdc586e473a660ee754ff66961922ae78bcc75d1f78b091e78557dd60f006e8e480114738c7b4ff71beac804e4fc9603240b

View file

@ -3,7 +3,6 @@ import urllib3
http = urllib3.PoolManager()
r = http.request('GET', 'http://example.com/')
print('status = {0}'.format(r.status))
print("headers['server'] = {0}".format(r.headers['server']))
print(r.data)
if r.status != 200 or not r.data:
raise SystemExit(1)