public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Carl George <carlwgeorge@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-webob] epel9: Port to pyproject macros
Date: Sun, 02 Aug 2026 12:38:12 GMT	[thread overview]
Message-ID: <178567429207.1.14796428626243929375.rpms-python-webob-890c03aa2ef7@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-webob
Branch : epel9
Commit : 890c03aa2ef7643616f6a973bc8e2414695e97ef
Author : Carl George <carlwgeorge@fedoraproject.org>
Date   : 2024-11-11T22:01:05-06:00
Stats  : +21/-21 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-webob/c/890c03aa2ef7643616f6a973bc8e2414695e97ef?branch=epel9

Log:
Port to pyproject macros

---
diff --git a/python-webob.spec b/python-webob.spec
index 925830b..b23e4ec 100644
--- a/python-webob.spec
+++ b/python-webob.spec
@@ -1,4 +1,4 @@
-%global with_tests 1
+%bcond tests 1
 
 %global desc WebOb provides wrappers around the WSGI request environment, and an object to \
 help create WSGI responses. The objects map much of the specified behavior of \
@@ -18,12 +18,7 @@ BuildArch:      noarch
 
 
 BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-# only require legacy-cgi on on systems where it's present
-%if 0%{?fedora} > 40 || 0%{?rhel} > 9
-BuildRequires:  python3dist(legacy-cgi)
-%endif
-%if 0%{?with_tests}
+%if %{with tests}
 BuildRequires:  python3-pytest
 %endif
 
@@ -37,46 +32,51 @@ Summary:        %{summary}
 Provides: python3-webob1.2 = %{version}-%{release}
 Obsoletes: python3-webob1.2 < 1.2.3-7
 
-# only require legacy-cgi on on systems where it's present
-%if 0%{?fedora} > 40 || 0%{?rhel} > 9
-Requires:       python3-cgi
-%endif
-
-%{?python_provide:%python_provide python3-webob}
-
 
 %description -n python3-webob
 %{desc}
 
+
 %prep
 %setup -q -n webob-%{version}
 # Disable performance_test, which requires repoze.profile, which isn't
 # in Fedora.
-%{__rm} -f tests/performance_test.py
+rm -f tests/performance_test.py
 
 # Remove an empty unneeded file that is there for scm purposes.
 rm docs/_static/.empty
 
+
+%generate_buildrequires
+%pyproject_buildrequires
+
+
 %build
-%py3_build
+%pyproject_wheel
+
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files -L webob
+
 
 %check
-%if 0%{?with_tests}
+%if %{with tests}
 %pytest
+%else
+%pyproject_check_import
 %endif
 
-%files -n python3-webob
+
+%files -n python3-webob -f %{pyproject_files}
 %license docs/license.txt
 %doc docs/*
-%{python3_sitelib}/webob/
-%{python3_sitelib}/WebOb-%{version}-py%{python3_version}.egg-info
+
 
 %changelog
 * Tue Nov 12 2024 Carl George <carlwgeorge@fedoraproject.org> - 1.8.9-1
 - Update to version 1.8.9 rhbz#2325373
+- Port to pyproject macros
 
 * Sat Aug 17 2024 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.8.8-2
 - Disable legacy-cgi requires for Fedora 40 and older systems

                 reply	other threads:[~2026-08-02 12:38 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=178567429207.1.14796428626243929375.rpms-python-webob-890c03aa2ef7@fedoraproject.org \
    --to=carlwgeorge@fedoraproject.org \
    --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