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/python-fast-simplification] rawhide: Update to 0.2.0 upstream release
Date: Sun, 16 Aug 2026 21:39:41 GMT [thread overview]
Message-ID: <178691638109.1.9349968435287602118.rpms-python-fast-simplification-3852d7cfe590@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-fast-simplification
Branch : rawhide
Commit : 3852d7cfe5901b510e2dc33407cdfc575a8350bc
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-16T22:11:26+01:00
Stats : +72/-21 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/python-fast-simplification/c/3852d7cfe5901b510e2dc33407cdfc575a8350bc?branch=rawhide
Log:
Update to 0.2.0 upstream release
- Resolves: rhbz#2514974
Upstream tag: v0.2.0
Upstream commit: cc6f2466
Commit co-authored by Packit automation (https://packit.dev/)
---
diff --git a/.gitignore b/.gitignore
index ffdfb5c..a450c90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/fast-simplification-0.1.11.tar.gz
/fast-simplification-0.1.12.tar.gz
/fast-simplification-0.1.13.tar.gz
+/fast-simplification-0.2.0.tar.gz
diff --git a/0001-Downstream-only-do-not-override-system-compiler-flag.patch b/0001-Downstream-only-do-not-override-system-compiler-flag.patch
index e4f6b12..c842a0a 100644
--- a/0001-Downstream-only-do-not-override-system-compiler-flag.patch
+++ b/0001-Downstream-only-do-not-override-system-compiler-flag.patch
@@ -1,4 +1,4 @@
-From cb4ce675a549165e3b014948f4ef2ab79f2fe285 Mon Sep 17 00:00:00 2001
+From 9b540f26cfe15f60a3b184ec1682724ff5b84c55 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Mon, 2 Sep 2024 09:22:20 -0400
Subject: [PATCH] Downstream-only: do not override system compiler flags
@@ -9,22 +9,22 @@ Content-Transfer-Encoding: 8bit
Don’t compile with -O3 unless we can point to benchmarks that justify it.
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_compiler_flags
---
- setup.py | 2 +-
+ CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-diff --git a/setup.py b/setup.py
-index 16bebfa..6587a1c 100644
---- a/setup.py
-+++ b/setup.py
-@@ -16,7 +16,7 @@ if os.name == "nt": # windows
- extra_compile_args = ["/openmp", "/O2", "/w", "/GS"]
- elif os.name == "posix": # linux org mac os
- if sys.platform == "linux":
-- extra_compile_args = ["-std=gnu++11", "-O3", "-w"]
-+ extra_compile_args = ["-std=gnu++11", "-w"]
- else: # probably mac os
- extra_compile_args = ["-std=c++11", "-O3", "-w"]
- else:
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8599a28..0e4a2a4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -36,7 +36,7 @@ function(add_fs_module name source)
+ if(MSVC)
+ target_compile_options(${name} PRIVATE /O2 /w)
+ else()
+- target_compile_options(${name} PRIVATE -O3 -w)
++ target_compile_options(${name} PRIVATE -w)
+ endif()
+
+ install(TARGETS ${name} LIBRARY DESTINATION fast_simplification)
--
-2.47.1
+2.55.0
diff --git a/99.patch b/99.patch
new file mode 100644
index 0000000..81675df
--- /dev/null
+++ b/99.patch
@@ -0,0 +1,24 @@
+From cf891664139e7dadf49727ba04b47b60f9062f48 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Sun, 16 Aug 2026 22:00:51 +0100
+Subject: [PATCH] Exclude C++ sources and headers from built wheels
+
+These files are not very useful to wheel users, and omitting them saves
+about 10% of the compressed size of the wheel: not earthshaking, but not
+nothing.
+---
+ pyproject.toml | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 0ae8493..2c38aea 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -77,6 +77,7 @@ build-dir = "build/{wheel_tag}"
+ minimum-version = "0.10"
+ metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
+ sdist.exclude = [".github", "*.png", "tests", ".mypy_cache", ".pre-commit-config.yaml", "*_cache", "CONTRIBUTING.md", ".gitignore"]
++wheel.exclude = ["**.cpp", "**.h"]
+
+ [tool.setuptools_scm]
+ fallback_version = "0.0.0"
diff --git a/README.packit b/README.packit
index 9bb65f0..68a092a 100644
--- a/README.packit
+++ b/README.packit
@@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
-The file was generated using packit 1.13.0.post1.dev2+g84134016c.
+The file was generated using packit 1.16.2.post1.dev8+g69d783e81.
diff --git a/python-fast-simplification.spec b/python-fast-simplification.spec
index f227090..d002ec6 100644
--- a/python-fast-simplification.spec
+++ b/python-fast-simplification.spec
@@ -5,11 +5,18 @@
%bcond tests 1
Name: python-fast-simplification
-Version: 0.1.13
+Version: 0.2.0
Release: %autorelease
Summary: Wrapper around the Fast-Quadric-Mesh-Simplification library
-License: MIT
+# The entire source is (SPDX) MIT. While the python3-nanobind package is not a
+# header-only library, it functions rather like one, in that it ships C++
+# sources that are compiled into extensions that use it. Furthermore, it brings
+# in an indirect dependency on the header-only robin-map library.
+# - python3-nanobind is BSD-3-Clause
+# - robin-map-static is MIT
+License: MIT AND BSD-3-Clause
+SourceLicense: MIT
URL: https://github.com/pyvista/fast-simplification
# The GitHub archive contains many ancillary files, like the README, the
# examples, and the list of test requirements, that the PyPI sdist lacks.
@@ -21,11 +28,21 @@ Source: %{url}/archive/v%{version}/fast-simplification-%{version}.tar.gz
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_compiler_flags
Patch: 0001-Downstream-only-do-not-override-system-compiler-flag.patch
+# Exclude C++ sources and headers from built wheels
+# https://github.com/pyvista/fast-simplification/pull/99
+Patch: %{url}/pull/99.patch
+
BuildSystem: pyproject
%if %{with tests}
BuildOption(generate_buildrequires): requirements_test.txt
%endif
-BuildOption(install): --assert-license fast_simplification
+# https://scikit-build-core.readthedocs.io/en/latest/configuration/index.html
+BuildOption(build): %{shrink:
+ --config-settings logging.level=INFO
+ --config-settings build.verbose=true
+ --config-settings cmake.build-type="RelWithDebInfo"
+ }
+BuildOption(install): --no-assert-license fast_simplification
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
@@ -79,6 +96,14 @@ Provides: bundled(Fast-Quadric-Mesh-Simplification) = 0^20201008git4aeffce
%endif
+%generate_buildrequires -p
+export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
+
+
+%build -p
+export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
+
+
%check -a
%if %{with tests}
%pytest --verbose -rs
@@ -86,6 +111,7 @@ Provides: bundled(Fast-Quadric-Mesh-Simplification) = 0^20201008git4aeffce
%files -n python3-fast-simplification -f %{pyproject_files}
+%license LICENSE
%doc README.rst
diff --git a/sources b/sources
index 7576427..77983be 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (fast-simplification-0.1.13.tar.gz) = a8b3b244ec40ee46168a88ba37578b57a09b76803426ce876c2b1c7d00950d11e0bf86d105ced29403ffcd4cde7e7aded0e98e4725e4d187c60629b5ccd48cc2
+SHA512 (fast-simplification-0.2.0.tar.gz) = 5af1782c7a9c36ee0dd3f77ea04b3543b44c75d63c1fcde112f103a53f19bdd5872ff58e2c0daaa4b5be98a525655ada7a31e5ee3988f5ecd6a407ccb5a5a9cd
reply other threads:[~2026-08-16 21:39 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=178691638109.1.9349968435287602118.rpms-python-fast-simplification-3852d7cfe590@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