public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-aiohttp] rawhide: Use the provisional pyproject declarative buildsystem
@ 2026-08-24 6:41 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-24 6:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-aiohttp
Branch : rawhide
Commit : f3dbbb6c543b097ae127305cac2b53b4dbe25dd7
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-20T11:29:52+01:00
Stats : +19/-26 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-aiohttp/c/f3dbbb6c543b097ae127305cac2b53b4dbe25dd7?branch=rawhide
Log:
Use the provisional pyproject declarative buildsystem
---
diff --git a/python-aiohttp.spec b/python-aiohttp.spec
index 8385ab4..aed273b 100644
--- a/python-aiohttp.spec
+++ b/python-aiohttp.spec
@@ -16,6 +16,20 @@ URL: https://github.com/aio-libs/aiohttp
# present in the PyPI sdist, so we must use the GitHub archive.
Source: %{url}/archive/v%{version}/aiohttp-%{version}.tar.gz
+BuildSystem: pyproject
+BuildOption(generate_buildrequires): %{shrink:
+ requirements/cython.in
+ %{?with_tests:requirements/test.in}
+ }
+BuildOption(install): aiohttp
+%if %{without tests}
+# - aiohttp.worker requires gunicorn (a test dependency)
+# - aiohttp.pytest_plugin requires pytest (a test dependency)
+BuildOption(check): --exclude aiohttp.worker --exclude aiohttp.pytest_plugin
+%elif %{without gunicorn}
+BuildOption(check): --exclude aiohttp.worker
+%endif
+
BuildRequires: gcc
# CVE-2024-27982 requires >= 9.2.1. The actual lower bound is based on the
@@ -40,9 +54,7 @@ Recommends: python3-aiohttp+speedups
%pyproject_extras_subpkg --name python3-aiohttp speedups
-%prep
-%autosetup -n aiohttp-%{version} -p1
-
+%prep -a
# Remove bundled llhttp
rm --recursive --verbose vendor/llhttp
@@ -84,15 +96,11 @@ sed --in-place \
tests/test_circular_imports.py
-%generate_buildrequires
+%generate_buildrequires -p
export AIOHTTP_USE_SYSTEM_DEPS=1
-%{pyproject_buildrequires %{shrink:
- requirements/cython.in
- %{?with_tests:requirements/test.in}
- }}
-%build
+%build -p
export AIOHTTP_USE_SYSTEM_DEPS=1
# Recreate removed Cython files using commands extracted from the Makefile.
# We don't run make directly, as it pip-installs Cython.
@@ -107,25 +115,10 @@ export AIOHTTP_USE_SYSTEM_DEPS=1
aiohttp/_websocket/reader_c.py \
--include-dir aiohttp
# Now we can actually proceed with building the package.
-%pyproject_wheel
-
-
-%install
-%pyproject_install
-%pyproject_save_files --assert-license aiohttp
-%check
-%if %{without tests}
-# - aiohttp.worker requires gunicorn (a test dependency)
-# - aiohttp.pytest_plugin requires pytest (a test dependency)
-%{pyproject_check_import %{shrink:
- --exclude aiohttp.worker
- --exclude aiohttp.pytest_plugin
- }}
-%else
-%{pyproject_check_import %{?!with_gunicorn:--exclude aiohttp.worker}}
-
+%check -a
+%if %{with tests}
# Fixes problems importing compiled extensions from subprocesses.
export PYTHONSAFEPATH=1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-24 6:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-24 6:41 [rpms/python-aiohttp] rawhide: Use the provisional pyproject declarative buildsystem Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox