public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-urllib3] f45: Use pyproject long options
@ 2026-09-19  7:27 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-19  7:27 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-urllib3
            Branch : f45
            Commit : 51f4742bcd288ef9f98c729a440651c9e37e005a
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-09-17T20:29:36+01:00
            Stats  : +7/-7 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-urllib3/c/51f4742bcd288ef9f98c729a440651c9e37e005a?branch=f45

            Log:
            Use pyproject long options

[skip changelog]

---
diff --git a/python-urllib3.spec b/python-urllib3.spec
index 3cdc79a..a2e059f 100644
--- a/python-urllib3.spec
+++ b/python-urllib3.spec
@@ -149,7 +149,7 @@ tomcli set pyproject.toml lists replace --type regex_search \
 export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
 # Generate BR’s 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} %{?with_tests:-g dev}
+%pyproject_buildrequires %{?with_extradeps:--extras brotli,zstd,socks,h2} %{?with_tests:--dependency-groups dev}
 
 
 %build
@@ -160,7 +160,7 @@ export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
 %install
 %pyproject_install
 
-%pyproject_save_files -l urllib3
+%pyproject_save_files --assert-license urllib3
 
 
 %check
@@ -170,11 +170,11 @@ export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
 # urllib3.contrib.ntlmpool is deprecated and requires ntlm
 # urllib3.contrib.securetransport is macOS only
 # urllib3.contrib.pyopenssl requires pyOpenSSL
-%{pyproject_check_import %{!?with_extradeps:-e urllib3.contrib.socks -e urllib3.http2*}
-                         -e urllib3.contrib.emscripten*
-                         -e urllib3.contrib.ntlmpool
-                         -e urllib3.contrib.securetransport
-                         -e urllib3.contrib.pyopenssl}
+%{pyproject_check_import %{!?with_extradeps:-e urllib3.contrib.socks --exclude urllib3.http2*}
+                         --exclude urllib3.contrib.emscripten*
+                         --exclude urllib3.contrib.ntlmpool
+                         --exclude urllib3.contrib.securetransport
+                         --exclude urllib3.contrib.pyopenssl}
 
 # Increase the “long timeout” for slower environments; as of this writing, it
 # is increased from 0.1 to 0.5 second.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-19  7:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-19  7:27 [rpms/python-urllib3] f45: Use pyproject long options 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