[packages/python3-yarl] Up to 1.25.1
arekm
arekm at pld-linux.org
Thu Nov 12 10:22:04 CET 2026
commit 1d37d82016a0db4f3be7a1977a4320e5db9dba6b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 12 01:42:01 2026 +0100
Up to 1.25.1
python3-yarl-no-strip.patch | 18 ++++++++++++++++++
python3-yarl.spec | 20 +++++++++++---------
2 files changed, 29 insertions(+), 9 deletions(-)
---
diff --git a/python3-yarl.spec b/python3-yarl.spec
index 8c30425..b455c54 100644
--- a/python3-yarl.spec
+++ b/python3-yarl.spec
@@ -6,17 +6,18 @@
Summary: Yet another URL library
Summary(pl.UTF-8): Yet another URL library - jeszcze jedna biblioteka do URL-i
Name: python3-yarl
-Version: 1.20.1
+Version: 1.25.1
Release: 1
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/yarl/
Source0: https://files.pythonhosted.org/packages/source/y/yarl/yarl-%{version}.tar.gz
-# Source0-md5: 23352fbc2b165825d4a33682c91788bc
+# Source0-md5: e79fd328e8d575b8c7a1766fc7fede31
+Patch0: %{name}-no-strip.patch
URL: https://pypi.org/project/yarl/
BuildRequires: python3-Cython >= 3.1.2
BuildRequires: python3-build
-BuildRequires: python3-devel >= 1:3.9
+BuildRequires: python3-devel >= 1:3.10
BuildRequires: python3-expandvars
BuildRequires: python3-installer
BuildRequires: python3-setuptools >= 1:47
@@ -29,6 +30,7 @@ BuildRequires: python3-hypothesis >= 6.0
BuildRequires: python3-idna >= 3.10
BuildRequires: python3-multidict >= 6.4.4
BuildRequires: python3-propcache >= 0.3.1
+BuildRequires: python3-pydantic
BuildRequires: python3-pytest >= 8.3.0
#BuildRequires: python3-pytest-benchmark
BuildRequires: python3-pytest-cov >= 2.3.1
@@ -43,11 +45,11 @@ BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
%if %{with doc}
BuildRequires: python3-alabaster
-BuildRequires: python3-myst_parser >= 0.10.0
+BuildRequires: python3-myst_parser >= 5.1.0
BuildRequires: python3-sphinxcontrib-towncrier
BuildRequires: sphinx-pdg-3 >= 8.2.3
%endif
-Requires: python3-modules >= 1:3.9
+Requires: python3-modules >= 1:3.10
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -70,11 +72,11 @@ Dokumentacja API modułu Pythona yarl.
%prep
%setup -q -n yarl-%{version}
-
-# keep *.c files so debuginfo will pick it up
-sed -i -e 's#build_inplace: bool = False,#build_inplace: bool = True,#g' -e 's#build_inplace=False#build_inplace=True#g' packaging/pep517_backend/_backend.py
+%patch -P0 -p1
%build
+# in-tree build keeps the cythonized *.c files for debuginfo
+export YARL_BUILD_INPLACE=1
%py3_build_pyproject
%if %{with tests}
@@ -85,7 +87,7 @@ sed -i -e 's#build_inplace: bool = False,#build_inplace: bool = True,#g' -e 's#b
# benchark tests are skipped automatically only if pytest_codspeed is not found, so here must be skipped explicitly
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTEST_PLUGINS="xdist" \
-%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests --ignore tests/test_quoting_benchmarks.py --ignore tests/test_url_benchmarks.py
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests --ignore tests/test_query_benchmarks.py --ignore tests/test_quoting_benchmarks.py --ignore tests/test_url_benchmarks.py
%endif
%if %{with doc}
diff --git a/python3-yarl-no-strip.patch b/python3-yarl-no-strip.patch
new file mode 100644
index 0000000..428c4f8
--- /dev/null
+++ b/python3-yarl-no-strip.patch
@@ -0,0 +1,18 @@
+Don't link the extension with -s: it leaves nothing for -debuginfo/-debugsource.
+https://github.com/aio-libs/yarl/issues/1592
+
+--- yarl-1.25.1.orig/packaging/pep517_backend/_cython_configuration.py 2026-09-15 20:33:08.587139100 +0200
++++ yarl-1.25.1/packaging/pep517_backend/_cython_configuration.py 2026-11-12 01:35:28.826454266 +0100
+@@ -251,10 +251,8 @@
+ '--coverage',
+ )
+ if cython_line_tracing_requested
+- # Release mode:
+- else (
+- '-s', # remove all symbol table and relocation information
+- )
++ # Release mode: no '-s', rpm strips into -debuginfo itself
++ else ()
+ ),
+ # Finally, append the user-set env var, ensuring its top priority:
+ orig_env.get('LDFLAGS', ''),
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-yarl.git/commitdiff/1d37d82016a0db4f3be7a1977a4320e5db9dba6b
More information about the pld-cvs-commit
mailing list