Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pysnmp for openSUSE:Factory 
checked in at 2023-08-01 15:38:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pysnmp (Old)
 and      /work/SRC/openSUSE:Factory/.python-pysnmp.new.32662 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pysnmp"

Tue Aug  1 15:38:12 2023 rev:17 rq:1101627 version:5.0.28

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pysnmp/python-pysnmp.changes      
2020-03-16 10:18:51.807600070 +0100
+++ /work/SRC/openSUSE:Factory/.python-pysnmp.new.32662/python-pysnmp.changes   
2023-08-01 15:38:13.681708159 +0200
@@ -1,0 +2,20 @@
+Tue Aug  1 06:20:01 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Switch to lextudio releases, and upgrade to 5.0.28:
+  * Fixed SNMP engine ID generation on Windows.
+  * SNMPv3 crypto operations that require external dependencies
+    made dependent on the optional external
+    package -- pysnmpcrypto.
+  * Added Slim class and simplified some examples.
+  * Fixed a #SNMP demo compatibility issue.
+  * Fixed passwordToKeySHA.
+  * Enabled Python 3.11 support.
+  * Switched to pyasn1/pyasn1 package.
+  * Removed legacy paddings in v3 packets.
+  * Changed web site to pysnmp.com.
+  * Inherited all changes made by Splunk team.
+- Switch to pyproject macros.
+- Add patch support-new-pyasn1.patch:
+  * Support pyasn1 0.5.0.
+
+-------------------------------------------------------------------

Old:
----
  pysnmp-4.4.12.tar.gz

New:
----
  pysnmp-5.0.28.tar.gz
  support-new-pyasn1.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pysnmp.spec ++++++
--- /var/tmp/diff_new_pack.NQfdSQ/_old  2023-08-01 15:38:14.693714425 +0200
+++ /var/tmp/diff_new_pack.NQfdSQ/_new  2023-08-01 15:38:14.697714450 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pysnmp
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,25 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pysnmp
-Version:        4.4.12
+Version:        5.0.28
 Release:        0
 Summary:        A pure-Python SNMPv1/v2c/v3 library
 License:        BSD-2-Clause
-Group:          Development/Languages/Python
-URL:            https://github.com/etingof/pysnmp
-Source:         
https://github.com/etingof/pysnmp/archive/v%{version}.tar.gz#/pysnmp-%{version}.tar.gz
-BuildRequires:  %{python_module pyasn1 >= 0.2.3}
-BuildRequires:  %{python_module pycryptodome}
+URL:            https://github.com/lextudio/pysnmp
+Source:         
https://github.com/lextudio/pysnmp/archive/refs/tags/v%{version}.tar.gz#/pysnmp-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM ish? Sourced from gh#pyasn1/pyasn1/issues/28
+Patch0:         support-new-pyasn1.patch
+BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module poetry}
 BuildRequires:  %{python_module pysmi}
-BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
+BuildRequires:  net-snmp
 BuildRequires:  python-rpm-macros
-Requires:       python-pyasn1 >= 0.2.3
-Requires:       python-pycryptodome
+Requires:       python-pyasn1 >= 0.4.8
 Requires:       python-pysmi
+Requires:       python-pysnmpcrypto
 BuildArch:      noarch
 %python_subpackages
 
@@ -51,34 +52,33 @@
 
 %package -n python-pysnmp-doc
 Summary:        PySNMP documentation
-Group:          Documentation/HTML
 Provides:       %{python_module pysnmp-doc = %{version}}
 
 %description -n python-pysnmp-doc
 PySNMP documentation and examples.
 
 %prep
-%setup -q -n pysnmp-%{version}
+%autosetup -p1 -n pysnmp-%{version}
 # Remove uneeded files
 find docs -name "\.*" -exec rm -Rf {} +
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 chmod -x docs/net-snmptrapd.conf docs/net-snmpd.conf
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-### Disable checks since those require network access to demo.snmplabs.com
+### Disable checks since those require a running snmpd
 #%%check
 #%%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitelib} ./runtests.sh
 
 %files %{python_files}
 %license LICENSE.rst
 %doc CHANGES.txt README.md THANKS.txt TODO.txt docs examples
-%{python_sitelib}/pysnmp/
-%{python_sitelib}/pysnmp-%{version}-py%{python_version}.egg-info
+%{python_sitelib}/pysnmp
+%{python_sitelib}/pysnmp_lextudio-%{version}.dist-info
 
 %files -n python-pysnmp-doc
 %license LICENSE.rst

++++++ pysnmp-4.4.12.tar.gz -> pysnmp-5.0.28.tar.gz ++++++
++++ 25955 lines of diff (skipped)

++++++ support-new-pyasn1.patch ++++++
Index: pysnmp-5.0.28/pysnmp/proto/api/verdec.py
===================================================================
--- pysnmp-5.0.28.orig/pysnmp/proto/api/verdec.py
+++ pysnmp-5.0.28/pysnmp/proto/api/verdec.py
@@ -6,19 +6,20 @@
 #
 from pyasn1.type import univ
 from pyasn1.codec.ber import decoder, eoo
+from pyasn1.codec.streaming import readFromStream
 from pyasn1.error import PyAsn1Error
 from pysnmp.proto.error import ProtocolError
 
 
 def decodeMessageVersion(wholeMsg):
     try:
-        seq, wholeMsg = decoder.decode(
+        wholeMsg, seq = decoder.decode(
             wholeMsg, asn1Spec=univ.Sequence(),
-            recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
+            recursiveFlag=False, substrateFun=lambda a, b, c, d: 
readFromStream(b, c)
         )
         ver, wholeMsg = decoder.decode(
             wholeMsg, asn1Spec=univ.Integer(),
-            recursiveFlag=False, substrateFun=lambda a, b, c: (a, b[:c])
+            recursiveFlag=False, substrateFun=lambda a, b, c, d: 
readFromStream(b, c)
         )
         if eoo.endOfOctets.isSameTypeWith(ver):
             raise ProtocolError('EOO at SNMP version component')
Index: pysnmp-5.0.28/pyproject.toml
===================================================================
--- pysnmp-5.0.28.orig/pyproject.toml
+++ pysnmp-5.0.28/pyproject.toml
@@ -27,7 +27,7 @@ include = ["docs", "tests", "examples"]
 
 [tool.poetry.dependencies]
 python = "^3.7"
-pyasn1 = ">=0.4.8, <0.5.0"
+pyasn1 = "^0.5.0"
 pysnmpcrypto = "^0.0.4"
 pysmi-lextudio = "^1.0.4"
 

Reply via email to