public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-trx-python] f43: Use the pyproject declarative buildsystem
@ 2026-09-20 7:31 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-20 7:31 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-trx-python
Branch : f43
Commit : 63d6e0fcdfbc7addc99420aafe33c297b25f5cc4
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-14T11:00:57+01:00
Stats : +8/-15 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-trx-python/c/63d6e0fcdfbc7addc99420aafe33c297b25f5cc4?branch=f43
Log:
Use the pyproject declarative buildsystem
---
diff --git a/python-trx-python.spec b/python-trx-python.spec
index 3954c96..15f3b11 100644
--- a/python-trx-python.spec
+++ b/python-trx-python.spec
@@ -24,6 +24,10 @@ Source4: %{test_data_base_url}/gold_standard.zip
BuildArch: noarch
+BuildSystem: pyproject
+BuildOption(generate_buildrequires): --extras=test
+BuildOption(install): --assert-license trx
+
# This would enable more tests, but it was orphaned and retired.
# BuildRequires: %%{py3_dist dipy}
@@ -42,31 +46,20 @@ Summary: %{summary}
%description -n python3-trx-python %{common_description}
-%prep
-%autosetup -C -p1
-
+%prep -a
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
%pyproject_patch_dependency pytest-cov:ignore
-%generate_buildrequires
+%generate_buildrequires -p
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
-%pyproject_buildrequires --extras test
-%build
+%build -p
export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
-%pyproject_wheel
-
-
-%install
-%pyproject_install
-%pyproject_save_files --assert-license trx
-
-%check
-%pyproject_check_import
+%check -a
export TRX_HOME="${PWD}/_home"
mkdir --parents "${TRX_HOME}"
ln '%{SOURCE1}' '%{SOURCE2}' '%{SOURCE3}' '%{SOURCE4}' "${TRX_HOME}"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-20 7:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-20 7:31 [rpms/python-trx-python] f43: Use the 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