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-yarl] rawhide: Reduce unnecessary macro indirection in the spec file
Date: Wed, 23 Sep 2026 06:29:25 GMT [thread overview]
Message-ID: <179014496569.1.16727153012330573622.rpms-python-yarl-87e55b7d1e86@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-yarl
Branch : rawhide
Commit : 87e55b7d1e86e5c5f23d8d7a82c4d3d94838df50
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-16T12:16:35+01:00
Stats : +7/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-yarl/c/87e55b7d1e86e5c5f23d8d7a82c4d3d94838df50?branch=rawhide
Log:
Reduce unnecessary macro indirection in the spec file
---
diff --git a/python-yarl.spec b/python-yarl.spec
index 4853b2f..c75554d 100644
--- a/python-yarl.spec
+++ b/python-yarl.spec
@@ -1,14 +1,13 @@
%global debug_package %{nil}
-%global pypi_name yarl
-Name: python-%{pypi_name}
+Name: python-yarl
Version: 1.22.0
Release: 5%{?dist}
Summary: Python module to handle URLs
License: Apache-2.0
URL: https://yarl.readthedocs.io
-Source: https://github.com/aio-libs/yarl/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
+Source: https://github.com/aio-libs/yarl/archive/v%{version}/yarl-%{version}.tar.gz
# Compatibility with Python 3.15
# Adapted from: https://github.com/aio-libs/yarl/pull/1642
Patch: Fix-pickling-with-Python-3.15.patch
@@ -23,14 +22,14 @@ BuildRequires: python3dist(pytest-xdist)
%description
The module provides handy URL class for URL parsing and changing.
-%package -n python3-%{pypi_name}
+%package -n python3-yarl
Summary: %{summary}
-%description -n python3-%{pypi_name}
+%description -n python3-yarl
The module provides handy URL class for URL parsing and changing.
%prep
-%autosetup -n %{pypi_name}-%{version} -p1
+%autosetup -n yarl-%{version} -p1
# Disable coverage
sed --regexp-extended --in-place 's/(-.*cov.*$)/#\1/g' pytest.ini
@@ -42,7 +41,7 @@ sed --regexp-extended --in-place 's/(-.*cov.*$)/#\1/g' pytest.ini
%install
%pyproject_install
-%pyproject_save_files --assert-license %{pypi_name}
+%pyproject_save_files --assert-license yarl
%check
# Ignore the benchmark tests which require pytest_codspeed which is not
@@ -51,7 +50,7 @@ ignore="${ignore-} --ignore tests/test_quoting_benchmarks.py"
ignore="${ignore-} --ignore tests/test_url_benchmarks.py"
%pytest ${ignore-} --verbose tests
-%files -n python3-%{pypi_name} -f %{pyproject_files}
+%files -n python3-yarl -f %{pyproject_files}
%doc CHANGES.rst README.rst
%changelog
reply other threads:[~2026-09-23 6:29 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=179014496569.1.16727153012330573622.rpms-python-yarl-87e55b7d1e86@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