public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-aiohttp] rawhide: Use the provisional pyproject declarative buildsystem
Date: Mon, 24 Aug 2026 06:41:16 GMT	[thread overview]
Message-ID: <178755367656.1.9289324782823771276.rpms-python-aiohttp-f3dbbb6c543b@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-08-24  6:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178755367656.1.9289324782823771276.rpms-python-aiohttp-f3dbbb6c543b@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox