public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bids-schema] f44: Use the provisional pyproject declarative buildsystem
@ 2026-06-26 16:11 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-26 16:11 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/bids-schema
Branch : f44
Commit : 93cd9d49f53438f77df3ade1a5a4bccbb052025a
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-04-14T12:38:07+01:00
Stats  : +11/-15 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/bids-schema/c/93cd9d49f53438f77df3ade1a5a4bccbb052025a?branch=f44

Log:
Use the provisional pyproject declarative buildsystem

---
diff --git a/bids-schema.spec b/bids-schema.spec
index 3f2f998..5decb69 100644
--- a/bids-schema.spec
+++ b/bids-schema.spec
@@ -86,10 +86,17 @@ Source13:       bst-pre-receive-hook.1
 # https://bugzilla.redhat.com/show_bug.cgi?id=2307781.
 Patch:          0001-Downstream-only-allow-pyparsing-3.1.2-for-now.patch
 
+BuildSystem:            pyproject
+BuildOption(generate_buildrequires): %{shrink:
+    -d tools/schemacode
+    -x expressions,render,validation,all
+}
+BuildOption(build):     -d tools/schemacode
+BuildOption(install):   -L bidsschematools
+
 BuildArch:      noarch
 
 BuildRequires:  symlinks
-BuildRequires:  python3-devel
 # The tests extra includes mostly linting/coverage tools; considering
 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters,
 # it is easier to enumerate test dependencies by hand.
@@ -148,15 +155,7 @@ Features:
 rm -rf src/js/ src/css/
 
 
-%generate_buildrequires
-%pyproject_buildrequires -d tools/schemacode -x expressions,render,validation,all
-
-
-%build
-%pyproject_wheel -d tools/schemacode
-
-
-%install
+%install -p
 # Imitate the structure of https://github.com/bids-standard/bids-schema/ in
 # case we start packaging from that in the future.
 install -d '%{buildroot}%{_datadir}/bids-schema/versions/%{bidsversion}'
@@ -169,9 +168,8 @@ cp -rvp src/schema \
 install -t '%{buildroot}%{_datadir}/bids-schema/versions/%{bidsversion}' \
     -p -m 0644 src/metaschema.json
 
-%pyproject_install
-%pyproject_save_files -L bidsschematools
 
+%install -a
 # Include a copy of the “exported” JSON version of the schema in the base
 # package to imitate the structure of
 # https://github.com/bids-standard/bids-schema. See readthedocs.yml.
@@ -219,13 +217,11 @@ install -t '%{buildroot}%{_docdir}/python3-bidsschematools' -D -p -m 0644 \
     tools/schemacode/README.md
 
 
-%check
+%check -a
 # Sanity check
 verfile='%{_datadir}/bids-schema/versions/%{bidsversion}/schema/SCHEMA_VERSION'
 [ '%{srcversion}' = "$(cat "%{buildroot}${verfile}")" ]
 
-%pyproject_check_import
-
 # These tests require example files that were filtered out for license reasons.
 k="${k-}${k+ and }not test_bids_datasets[hcp_example_bids]"
 k="${k-}${k+ and }not test_bids_datasets[qmri_vfa]"

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-26 16:11 [rpms/bids-schema] f44: Use the provisional pyproject declarative buildsystem 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