public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pyproject-rpm-macros] f44: Refine advice on `%pyproject_verify_license` placement
@ 2026-11-30 23:16 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-30 23:16 UTC (permalink / raw)
  To: git-commits

            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

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

only message in thread, other threads:[~2026-11-30 23:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 23:16 [rpms/pyproject-rpm-macros] f44: Refine advice on `%pyproject_verify_license` placement 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