public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pysnmp] epel9: Bump to 7.1.16
@ 2026-07-08  3:12 Federico Pellegrin
  0 siblings, 0 replies; only message in thread
From: Federico Pellegrin @ 2026-07-08  3:12 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/pysnmp
            Branch : epel9
            Commit : 3508c6616736af1ed4b91e278323b5976b99bb56
            Author : Federico Pellegrin <fede@evolware.org>
            Date   : 2025-01-22T09:00:01+01:00
            Stats  : +20/-11 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/pysnmp/c/3508c6616736af1ed4b91e278323b5976b99bb56?branch=epel9

            Log:
            Bump to 7.1.16

- Previous versions were not working with Python 3.12 (so Fedora >=40)
- Use modern Python macros for toml setup
- Add import test to have at least a basic verification of package

---
diff --git a/.gitignore b/.gitignore
index 523181e..6a55d7f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,3 +24,4 @@ pysnmp-4.1.12a.tar.gz
 /pysnmp-4.4.10.tar.gz
 /pysnmp-4.4.11.tar.gz
 /pysnmp-4.4.12.tar.gz
+/pysnmp-7.1.16.tar.gz

diff --git a/pysnmp.spec b/pysnmp.spec
index f18319c..8b20e7a 100644
--- a/pysnmp.spec
+++ b/pysnmp.spec
@@ -1,13 +1,13 @@
 Name:           pysnmp
-Version:        4.4.12
-Release:        19%{?dist}
+Version:        7.1.16
+Release:        1%{?dist}
 
 Summary:        An SNMP engine written in Python
 
 # Automatically converted from old format: BSD - review is highly recommended.
 License:        LicenseRef-Callaway-BSD
-URL:            http://pysnmp.sourceforge.net/
-Source0:        https://github.com/etingof/pysnmp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+URL:            https://pysnmp.com/
+Source0:        https://github.com/lextudio/pysnmp/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildArch:      noarch
 
 Requires:       net-snmp
@@ -36,19 +36,27 @@ networking.
 %prep
 %autosetup -n %{name}-%{version}
 
+%generate_buildrequires
+%pyproject_buildrequires
+
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files pysnmp
+
+%check
+%pyproject_check_import -e '*.smi.mibs.*'
 
-%files -n python3-%{name}
-%doc CHANGES.txt README.md THANKS.txt TODO.txt examples/ docs/
+%files -n python3-%{name} -f  %{pyproject_files}
+%doc CHANGES.rst README.md THANKS.txt TODO.txt examples/ docs/
 %license LICENSE.rst
-%{python3_sitelib}/%{name}/
-%{python3_sitelib}/%{name}*.egg-info
 
 %changelog
+* Wed Jan 22 2025 Federico Pellegrin <fede@evolware.org> - 7.1.16-1
+- Bump to 7.1.16, previous versions were not working with Python 3.12 (so Fedora >=40)
+
 * Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.12-19
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
 

diff --git a/sources b/sources
index ec7e532..5e3d4e3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pysnmp-4.4.12.tar.gz) = 48481e219098369b09cc2ffea6cd51974b64bed0131671cc7a2213ee5eb432c62e0ff5c3700b6be515bd3e90951927e41845c98ae7a339d551f0f4ec19c5e3b1
+SHA512 (pysnmp-7.1.16.tar.gz) = 24cf0f0008c2d7c4015f7e102006754d31e173247655d24ba814865b9170254f3c27b25fef8035034652cf78283182910f9f0a55864b1755fa9d7c96fc4ac193

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

only message in thread, other threads:[~2026-07-08  3:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-08  3:12 [rpms/pysnmp] epel9: Bump to 7.1.16 Federico Pellegrin

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