public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-varlink] epel10: Update to 32.1.0; Fixes: RHBZ#1697046
@ 2026-11-04 20:15 Davide Cavalca
  0 siblings, 0 replies; only message in thread
From: Davide Cavalca @ 2026-11-04 20:15 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-varlink
Branch : epel10
Commit : a2b2bc44e57353da11d1c8d91cd8673b04d21bc6
Author : Davide Cavalca <dcavalca@fedoraproject.org>
Date   : 2026-11-04T11:43:29-08:00
Stats  : +47/-15 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/python-varlink/c/a2b2bc44e57353da11d1c8d91cd8673b04d21bc6?branch=epel10

Log:
Update to 32.1.0; Fixes: RHBZ#1697046

---
diff --git a/.gitignore b/.gitignore
index bfecd19..e8627fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,3 +27,4 @@
 /python-varlink-30.3.0.tar.gz
 /python-varlink-30.3.1.tar.gz
 /python-varlink-31.0.0.tar.gz
+/python-32.1.0.tar.gz

diff --git a/96.patch b/96.patch
new file mode 100644
index 0000000..0c7feec
--- /dev/null
+++ b/96.patch
@@ -0,0 +1,26 @@
+From 10d29491a84012c134567af7af267172e934b826 Mon Sep 17 00:00:00 2001
+From: Davide Cavalca <dcavalca@fedoraproject.org>
+Date: Wed, 4 Nov 2026 11:32:20 -0800
+Subject: [PATCH] Install interface files for all packages
+
+The test modules need to read the *.varlink interface files at import time, so
+ensure they are installed for all packages.
+
+Signed-off-by: Davide Cavalca <dcavalca@fedoraproject.org>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 763fb96..ff7da5b 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -45,7 +45,7 @@ source = ["varlink"]
+ omit = ["varlink/tests/*"]
+ 
+ [tool.setuptools.package-data]
+-varlink = [
++"*" = [
+     "*.varlink"
+ ]
+ 

diff --git a/python-varlink.spec b/python-varlink.spec
index 99243a8..920f906 100644
--- a/python-varlink.spec
+++ b/python-varlink.spec
@@ -1,11 +1,15 @@
+%global srcname python
+
 Name:           python-varlink
-Version:        31.0.0
+Version:        32.1.0
 Release:        %autorelease
 Summary:        Python implementation of Varlink
 
 License:        Apache-2.0
-URL:            https://github.com/varlink/%{name}
-Source:         %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+URL:            https://github.com/varlink/%{srcname}
+Source:         %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
+# Install interface files for all packages
+Patch:          %{url}/pull/96.patch
 
 BuildArch:      noarch
 BuildRequires:  python3-devel
@@ -21,28 +25,29 @@ Summary:       %summary
 %description -n python3-varlink %_description
 
 %prep
-%autosetup -n varlink-%{version}
-# varlink also supports python-2.7 but python3 is required here
-sed -i -e 's#env python#env python3#' varlink/tests/test_certification.py
-# varlink also supports python-2.7 but python3 is required here
-sed -i -e 's#env python#env python3#' varlink/tests/test_orgexamplemore.py
+%autosetup -n %{srcname}-%{version}
 
-# Drop unused dependency
-sed -i '/setuptools_scm_git_archive/d' pyproject.toml
+# https://github.com/varlink/python/pull/97
+sed -i '1{/^#!/d}' varlink/tests/test_*.py
 
 %generate_buildrequires
-%pyproject_buildrequires
+# https://github.com/varlink/python/issues/81
+export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_VARLINK=%{version}
+%pyproject_buildrequires test-requirements.txt
 
 %build
+# https://github.com/varlink/python/issues/81
+export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_VARLINK=%{version}
 %pyproject_wheel
 
-%check
-CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} check
-
 %install
 %pyproject_install
 %pyproject_save_files -l varlink
 
+%check
+%pyproject_check_import
+%pytest -v
+
 %files -n python3-varlink -f %{pyproject_files}
 %doc README.md
 

diff --git a/sources b/sources
index 7ac4718..49c1f95 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (python-varlink-31.0.0.tar.gz) = 3a99876dd2ec519a877fc4994c5fec0567a8b9348cb19910aedf9e191bd7c2b6275c2340a861f6b86e64523a8c8792116d2565ac7b86e283fbebcfe195469d39
+SHA512 (python-32.1.0.tar.gz) = 87e5d4dc29b1b2f2ed31dd86ac60ba2d18cd41c1004326b55fe02684e72cf1b7118797d5e71e4e8c806ccfece185da80595b7dc9d5eb447d794baaa0930f67f3

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

only message in thread, other threads:[~2026-11-04 20:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 20:15 [rpms/python-varlink] epel10: Update to 32.1.0; Fixes: RHBZ#1697046 Davide Cavalca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox