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/pyproject-rpm-macros] f44: Refine advice on `%pyproject_verify_license` placement
Date: Mon, 30 Nov 2026 23:16:46 GMT [thread overview]
Message-ID: <179608060672.1.653399058775142702.rpms-pyproject-rpm-macros-707827f19982@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pyproject-rpm-macros
Branch : f44
Commit : 707827f199827ff5f1a2bdffedcc15635b757550
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-11-10T11:02:25+00:00
Stats : +7/-13 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/pyproject-rpm-macros/c/707827f199827ff5f1a2bdffedcc15635b757550?branch=f44
Log:
Refine advice on `%pyproject_verify_license` placement
Promote `%check` as a default, semantically reasonable choice.
Continue to mention that earlier placement is possible, but don’t
promote it so strongly, and discuss it a bit less verbosely.
---
diff --git a/README.md b/README.md
index 599b4cc..9779d28 100644
--- a/README.md
+++ b/README.md
@@ -439,10 +439,8 @@ The is useful to notice upstream changed their license declaration and
the License: tag needs to be updated accordingly.
It only needs `pyproject.toml` to be present, so it can be run at any point once the sources
are unpacked.
-Put it as early as the constraints below allow, so that a license mismatch fails the build
-before any expensive work (the test suite, the build, or the `%generate_buildrequires` rounds).
-* **At the start of `%check`**, before the test suite runs:
+Semantically, `%check` is a reasonable place to put this macro:
```
%check
@@ -450,17 +448,13 @@ before any expensive work (the test suite, the build, or the `%generate_buildreq
# ... tests follow
```
-* **At the start of `%build` (or `%conf`)**, before the potentially long build runs:
+You may choose to put it earlier, at the beginning of `%build` or `%conf`,
+so that less expensive work happens before a license mismatch fails the build.
-```
-%build
-%pyproject_verify_license
-# ... build follows
-```
-
-* **In `%prep`**, before any expensive `%generate_buildrequires` rounds. However, if you
-do that, you need to explicitly declare BuildRequires for `pyproject-rpm-macros`,
-`python3-devel` and, if your Python 3 version is lower than 3.11, also `python3-tomli`:
+You may even put it in `%prep`, before any `%generate_buildrequires` rounds,
+but you will need explicit `BuildRequires`
+for `pyproject-rpm-macros`, `python3-devel`,
+and, if your Python 3 version is lower than 3.11, also `python3-tomli`:
```
BuildRequires: pyproject-rpm-macros
reply other threads:[~2026-11-30 23:16 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=179608060672.1.653399058775142702.rpms-pyproject-rpm-macros-707827f19982@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