public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-trimesh] rawhide: More completely adopt the pyproject declarative buildsystem
@ 2026-08-02  9:41 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-02  9:41 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-trimesh
Branch : rawhide
Commit : 261447f02b50fcdeaac14fc8b0ae50f04d63b771
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-08-02T10:37:55+01:00
Stats  : +12/-15 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-trimesh/c/261447f02b50fcdeaac14fc8b0ae50f04d63b771?branch=rawhide

Log:
More completely adopt the pyproject declarative buildsystem

---
diff --git a/python-trimesh.spec b/python-trimesh.spec
index ddd423f..90b1146 100644
--- a/python-trimesh.spec
+++ b/python-trimesh.spec
@@ -29,9 +29,18 @@ Source0:        https://github.com/mikedh/trimesh/archive/%{version}/trimesh-%{v
 # output and on the docstring of trimesh.__main__.main
 Source1:        trimesh.1
 
-BuildSystem:            pyproject
+BuildSystem:    pyproject
 # With v4, [all] = [easy,recommend,test,test_more,deprecated].
 BuildOption(generate_buildrequires): --extras easy,recommend,test,test_more
+BuildOption(install): --assert-license trimesh
+# Some dependencies are unavailable; see the %%prep section.
+# - trimesh.viewer.widget requires glooey
+# - trimesh.viewer.windowed requires pyglet
+BuildOption(check): %{shrink:
+    %{?!arch_has_embree:--exclude trimesh.ray.ray_pyembree}
+    --exclude trimesh.viewer.widget
+    --exclude trimesh.viewer.windowed
+    }
 
 # The combination of an arched package with a noarch binary packages makes it
 # easier for us to detect arch-dependent test failures, since the tests will
@@ -268,24 +277,12 @@ EOF
 %endif
 
 
-%install
-%pyproject_install
-%pyproject_save_files --assert-license trimesh
-
+%install -a
 install -D --target='%{buildroot}%{_mandir}/man1' \
     --preserve-timestamps --mode=0644 '%{SOURCE1}'
 
 
-%check
-# Some dependencies are unavailable; see the prep section above.
-# trimesh.viewer.widget requires glooey.
-# trimesh.viewer.windowed requires pyglet.
-%{pyproject_check_import %{shrink:
-    %{?!arch_has_embree:--exclude trimesh.ray.ray_pyembree}
-    --exclude trimesh.viewer.widget
-    --exclude trimesh.viewer.windowed
-    }}
-
+%check -a
 # Hangs flakily since 4.10.0; cannot reproduce in a git checkout
 deselect="${deselect-} --deselect=tests/test_primitives.py::test_primitives"
 # This has been observed failing on at least x86_64, ppc64le, and s390x.

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

only message in thread, other threads:[~2026-08-02  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-02  9:41 [rpms/python-trimesh] rawhide: More completely adopt 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