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/bids-schema] f43: Use the provisional pyproject declarative buildsystem
Date: Fri, 26 Jun 2026 18:17:32 GMT	[thread overview]
Message-ID: <178249785215.1.10496251432010365931.rpms-bids-schema-93cd9d49f534@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/bids-schema
Branch : f43
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=f43

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]"

                 reply	other threads:[~2026-06-26 18:17 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=178249785215.1.10496251432010365931.rpms-bids-schema-93cd9d49f534@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