public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-nh3] f44: Update to 0.3.6 (close RHBZ#2491252)
@ 2026-06-30 10:32 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-30 10:32 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-nh3
Branch : f44
Commit : 19c6e96cc52e80746ff68baa58d468d3d3ea6b53
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-06-30T11:11:08+01:00
Stats : +28/-12 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/python-nh3/c/19c6e96cc52e80746ff68baa58d468d3d3ea6b53?branch=f44
Log:
Update to 0.3.6 (close RHBZ#2491252)
- Update `License` expression
---
diff --git a/.gitignore b/.gitignore
index 9866da3..b5c59d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/nh3-0.3.2.tar.gz
/nh3-0.3.4.tar.gz
/nh3-0.3.5.tar.gz
+/nh3-0.3.6.tar.gz
diff --git a/generate-import-lib-dep.patch b/generate-import-lib-dep.patch
index 301549c..f6fe4fa 100644
--- a/generate-import-lib-dep.patch
+++ b/generate-import-lib-dep.patch
@@ -1,10 +1,24 @@
-diff -U 3 -dHrN a/Cargo.toml b/Cargo.toml
---- a/Cargo.toml 2006-07-24 03:21:28.000000000 +0200
-+++ b/Cargo.toml 2026-04-26 16:16:17.476513513 +0200
-@@ -15,5 +15,5 @@
+From 92cdb185d3664a868cea9caf5f9739e8cc0cf4e0 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Tue, 30 Jun 2026 11:05:21 +0100
+Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20depend=20on=20deprecated=20pyo3?=
+ =?UTF-8?q?/generate-import-lib=20feature?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+---
+ Cargo.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Cargo.toml b/Cargo.toml
+index a98d0a5..24b785d 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -15,5 +15,5 @@ crate-type = ["cdylib"]
[dependencies]
ammonia = "4.1.2"
--pyo3 = { version = "0.28.3", features = ["abi3-py38", "generate-import-lib"] }
-+pyo3 = { version = "0.28.3", features = ["abi3-py38"] }
+-pyo3 = { version = "0.29.0", features = ["abi3-py38", "generate-import-lib"] }
++pyo3 = { version = "0.29.0", features = ["abi3-py38"] }
ouroboros = "0.18"
diff --git a/python-nh3.spec b/python-nh3.spec
index ac14d37..65cfd74 100644
--- a/python-nh3.spec
+++ b/python-nh3.spec
@@ -1,14 +1,14 @@
Name: python-nh3
-Version: 0.3.5
+Version: 0.3.6
Release: %autorelease
Summary: Python binding to Ammonia HTML sanitizer Rust crate
License: MIT
URL: https://github.com/messense/nh3
Source: %{pypi_source nh3}
-# Omit the generate-import-lib feature of the pyo3 dependency, since it is
-# specific to Windows, and we do not package it.
-Patch: generate-import-lib-dep.patch
+# Don’t depend on deprecated pyo3/generate-import-lib feature
+# https://github.com/messense/nh3/pull/136
+Patch: %{url}/pull/136.patch#/generate-import-lib-dep.patch
BuildRequires: cargo-rpm-macros
BuildRequires: python3-devel
@@ -31,8 +31,9 @@ Summary: %{summary}
# Apache-2.0 OR MIT
# MIT
# MIT OR Apache-2.0
+# MPL-2.0
# Unicode-3.0
-License: %{license} AND (Apache-2.0 OR MIT) AND Unicode-3.0
+License: %{license} AND (Apache-2.0 OR MIT) AND MPL-2.0 AND Unicode-3.0
%description -n python3-nh3 %_description
diff --git a/sources b/sources
index af6d475..31caaa3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (nh3-0.3.5.tar.gz) = 8be7773050fd72545c11ee78d9d85e282feeb363d30d8ea0db6a9f3e8f01d4711bd7679af024a96651a5808463c6fea3becbf3f96682117c8efd0c29e4d1c7d6
+SHA512 (nh3-0.3.6.tar.gz) = a6527724b56fd88ea582b7f64d76727ea3aa2bac2ad53c9539a501439c6955b5e588141522e4d74b49fd862a4cfa7e022a966d3a667d3c77c81a57677bdfd03e
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-30 10:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-30 10:32 [rpms/python-nh3] f44: Update to 0.3.6 (close RHBZ#2491252) 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