forked from pool/python-pysnmp
Accepting request 1190192 from devel:languages:python
- Update to version 6.2.4 * Deleted more obsolete items. - Update to version 6.2.3 * Removed unused dependencies. - Enable tests - Get source from pypi, github tag doesn't have the latest version and looks like the releases are not done in the github. - Update to version 6.2.2 * Cleaned up sync API leftover. * Retired temporary sync API. * Removed package postfix. A helper release to enable migration. * Merged changes from 4.4.13. * Fixed more access descriptors. * Initial work to support pysmi-lextudio 1.3.0 and above. * Removed package postfix. A helper release to enable migration. * Restricted pysmi-lextudio version to 1.2.0 to avoid breaking changes. * Fixed walkCmd bug. * Fixed bulkWalkCmd bug. * Added sync oneliner back. * Fix annotations. * Added walkCmd() and bulkWalkCmd() to hlapi. * Improved Slim class to support IPv6. * Added some sync API based on asyncio. * Added custom socket support in openServerMode. * Fixed various bugs in RFC3414 error handling. * Reverted some changes in 6.0.2 on asyncio dispatch. * Deleted asyncore related bits. * Simplified asyncio dispatch. OBS-URL: https://build.opensuse.org/request/show/1190192 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysnmp?expand=0&rev=19
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:404f84ff5d8b737d4b86cf078e5908b899ed22ca0d9d26a28d9b105f289d3476
|
||||
size 458256
|
3
pysnmp-6.2.4.tar.gz
Normal file
3
pysnmp-6.2.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8b1346f561fdc53f13019c5ec2c108224b4935d5bb6d2c0133ca236bbae77665
|
||||
size 413802
|
@@ -1,3 +1,59 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 08:33:51 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Update to version 6.2.4
|
||||
* Deleted more obsolete items.
|
||||
- Update to version 6.2.3
|
||||
* Removed unused dependencies.
|
||||
- Enable tests
|
||||
- Get source from pypi, github tag doesn't have the latest version and
|
||||
looks like the releases are not done in the github.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 20 09:33:35 UTC 2024 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
- Update to version 6.2.2
|
||||
* Cleaned up sync API leftover.
|
||||
* Retired temporary sync API.
|
||||
* Removed package postfix. A helper release to enable migration.
|
||||
* Merged changes from 4.4.13.
|
||||
* Fixed more access descriptors.
|
||||
* Initial work to support pysmi-lextudio 1.3.0 and above.
|
||||
* Removed package postfix. A helper release to enable migration.
|
||||
* Restricted pysmi-lextudio version to 1.2.0 to avoid
|
||||
breaking changes.
|
||||
* Fixed walkCmd bug.
|
||||
* Fixed bulkWalkCmd bug.
|
||||
* Added sync oneliner back.
|
||||
* Fix annotations.
|
||||
* Added walkCmd() and bulkWalkCmd() to hlapi.
|
||||
* Improved Slim class to support IPv6.
|
||||
* Added some sync API based on asyncio.
|
||||
* Added custom socket support in openServerMode.
|
||||
* Fixed various bugs in RFC3414 error handling.
|
||||
* Reverted some changes in 6.0.2 on asyncio dispatch.
|
||||
* Deleted asyncore related bits.
|
||||
* Simplified asyncio dispatch.
|
||||
* Added ignoreNonIncreasingOid option to nextCmd and bulkCmd.
|
||||
* Fixed a dispatch bug related to "Slim.close".
|
||||
* Improved asyncio "runDispatcher" method to support timeout.
|
||||
* Changed internal defaults to asyncio.
|
||||
* Converted asyncore samples to asyncio.
|
||||
- Update to version 5.1.0
|
||||
* Removed package postfix. A helper release to enable migration.
|
||||
- Update to version 5.0.34
|
||||
Changes since 5.0.28
|
||||
* Fixed a v3 authentication issue when wrong user name is used.
|
||||
* Fixed an import error with Python 3.12.
|
||||
* Added timeout and retries to Slim class.
|
||||
* Added experimental Python 3.12 support based on pyasyncore.
|
||||
But all asyncore based API is deprecated and will be removed
|
||||
in the next major release.
|
||||
* Added pyasn1 0.5.1 support.
|
||||
* Fix asyncio hlapi double awaitable returns.
|
||||
- Drop patch:
|
||||
* support-new-pyasn1.patch (not longer needed)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 1 08:12:53 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@@ -17,17 +17,18 @@
|
||||
|
||||
|
||||
Name: python-pysnmp
|
||||
Version: 5.0.28
|
||||
Version: 6.2.4
|
||||
Release: 0
|
||||
Summary: A pure-Python SNMPv1/v2c/v3 library
|
||||
License: BSD-2-Clause
|
||||
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
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pysnmp/pysnmp-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry-core}
|
||||
BuildRequires: %{python_module pyasn1}
|
||||
BuildRequires: %{python_module pysmi}
|
||||
BuildRequires: %{python_module pytest-asyncio}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: net-snmp
|
||||
@@ -70,15 +71,20 @@ find docs -name "\.*" -exec rm -Rf {} +
|
||||
chmod -x docs/net-snmptrapd.conf docs/net-snmpd.conf
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
### Disable checks since those require a running snmpd
|
||||
#%%check
|
||||
#%%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitelib} ./runtests.sh
|
||||
%check
|
||||
donttest="test_addAsn1MibSource"
|
||||
|
||||
# Running tests with python -m to make it work with the import path
|
||||
%{python_expand #
|
||||
# Not running asyncio tests that requires network
|
||||
$python -m pytest -v -m 'not asyncio' -k "not $donttest"
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.rst
|
||||
%doc CHANGES.txt README.md THANKS.txt TODO.txt docs examples
|
||||
%doc README.md docs examples
|
||||
%{python_sitelib}/pysnmp
|
||||
%{python_sitelib}/pysnmp_lextudio-%{version}.dist-info
|
||||
%{python_sitelib}/pysnmp-%{version}.dist-info
|
||||
|
||||
%files -n python-pysnmp-doc
|
||||
%license LICENSE.rst
|
||||
|
@@ -1,41 +0,0 @@
|
||||
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"
|
||||
|
Reference in New Issue
Block a user