Compare commits

26 Commits

Author SHA256 Message Date
dbc8c0294a Accepting request 1295854 from devel:languages:python
- Skipping failing tests (gh#lextudio/pysnmp#198)
- Redownload tarball from GitHub (missing tests, gh#lextudio/pysnmp#197)
- update to 1.6.2:
  * Fixed debugging flag bug.
  * Upgraded to match pysnmp 7.1.16 and above.
- Update to 1.5.10
  * Improved DEFVAL handling.
- update to 1.5.9:
  * Exposed reference property in MIB objects.
  * Fixed fixed-length OCTET STRING handling.
  * Various improvements in MIB parsing, including better DEFVAL
    handling, symbol name generation, and more.
  * Improved DISPLAY-HINT support.

OBS-URL: https://build.opensuse.org/request/show/1295854
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=12
2025-07-26 11:42:29 +00:00
ded5091e85 Accepting request 1212248 from devel:languages:python
- update to 1.5.4:
  * Fixed a runtime error in pysnmp.
  * Fixed a runtime error in pysnmp.
  * Fixed a few runtime errors.
  * Removed Python 3.8 support.
  * Added Python 3.13 support.
  * Renamed many items to meet PEP 8 requirements.
    Compatibility layer is added, but will be removed in the
    next release.
  * Fixed a bug that Windows version and user name were not
    correctly detected.
- drop support-new-pyasn1.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/1212248
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=11
2024-10-21 14:25:47 +00:00
ce3c88bf83 - update to 1.5.4:
* Fixed a runtime error in pysnmp.
  * Fixed a runtime error in pysnmp.
  * Fixed a few runtime errors.
  * Removed Python 3.8 support.
  * Added Python 3.13 support.
  * Renamed many items to meet PEP 8 requirements.
    Compatibility layer is added, but will be removed in the
    next release.
  * Fixed a bug that Windows version and user name were not
    correctly detected.
- drop support-new-pyasn1.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=28
2024-10-20 18:59:25 +00:00
05566c48db Accepting request 1206438 from devel:languages:python
- Update to 1.5.0:
  * Better formatting of texts in MIB documents.
  * Reworked on reserved Python keywords handling.
  * Fixed TEXTUAL-CONVENTION handling.
  * Fixed DEFVAL handling.
  * Added cyclic dependency detection.
  * Other fixes and improvements for real-world MIBs.
  * Implemented a better strict mode.
  * Fixed old Python version support.
  * Fixed mibdump crash.
  * Fixed a JSON output bug.
  * Updated MIB URLs.
  * Migrated to new asn1 repo.
  * Bumped minimal Python version to 3.7.
  * Introduced Jinja2 templates for code generation.
  * Introduced SNMP agent code hooks generation template.
- Switch to autosetup macros.
- Add patch support-new-pyasn1.patch:
  * Support new pyasn1 changes.

OBS-URL: https://build.opensuse.org/request/show/1206438
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=10
2024-10-09 20:12:57 +00:00
b0cdbcf443 - Update to 1.5.0:
* Better formatting of texts in MIB documents.
  * Reworked on reserved Python keywords handling.
  * Fixed TEXTUAL-CONVENTION handling.
  * Fixed DEFVAL handling.
  * Added cyclic dependency detection.
  * Other fixes and improvements for real-world MIBs.
  * Implemented a better strict mode.
  * Fixed old Python version support.
  * Fixed mibdump crash.
  * Fixed a JSON output bug.
  * Updated MIB URLs.
  * Migrated to new asn1 repo.
  * Bumped minimal Python version to 3.7.
  * Introduced Jinja2 templates for code generation.
  * Introduced SNMP agent code hooks generation template.
- Switch to autosetup macros.
- Add patch support-new-pyasn1.patch:
  * Support new pyasn1 changes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=26
2024-10-09 06:31:49 +00:00
8a7846804e Accepting request 1147483 from devel:languages:python
- Switch to pyproject macros.
- Use pytest for the testsuite.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1147483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=9
2024-02-20 20:12:59 +00:00
f601ea61a9 - Switch to pyproject macros.
- Use pytest for the testsuite.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=24
2024-02-19 04:46:05 +00:00
49a2435c6a Accepting request 925025 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/925025
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=8
2021-10-26 18:13:33 +00:00
ee9800c4fa - Add multibuild to separate test phase from the build one.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=23
2021-10-06 07:51:06 +00:00
f0489d5456 Accepting request 923301 from home:schubi2
- Added BuildRequires:  alts

OBS-URL: https://build.opensuse.org/request/show/923301
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=22
2021-10-06 07:36:49 +00:00
8c4dea129f Accepting request 922618 from home:schubi2
- Use libalternatives instead of update-alternatives.

OBS-URL: https://build.opensuse.org/request/show/922618
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=21
2021-10-03 14:53:56 +00:00
b44a00205c Accepting request 920168 from devel:languages:python
revert

OBS-URL: https://build.opensuse.org/request/show/920168
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=20
2021-09-19 17:25:22 +00:00
96269f907c Accepting request 919825 from home:schubi2
- Fixed mibcopy installation with alternatives.
- Use libalternatives instead of update-alternatives.

OBS-URL: https://build.opensuse.org/request/show/919825
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=19
2021-09-17 20:45:22 +00:00
244c089206 Accepting request 738380 from devel:languages:python
Replace %fdupes -s with plain %fdupes; hardlinks are better.

OBS-URL: https://build.opensuse.org/request/show/738380
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=7
2019-10-16 07:15:20 +00:00
88978b5c62 - Replace %fdupes -s with plain %fdupes; hardlinks are better.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=17
2019-10-14 14:17:18 +00:00
1d779b859f Accepting request 701110 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/701110
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=6
2019-05-07 21:18:37 +00:00
Tomáš Chvátal
efd14845bf Accepting request 701108 from home:pgajdos
- version update to 0.3.4
  - Rebased MIB importing code onto `importlib` because `imp` is long
    deprecated
  - Fixed Py file borrower to become functional

OBS-URL: https://build.opensuse.org/request/show/701108
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=15
2019-05-06 13:57:38 +00:00
4687a911aa Accepting request 664308 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/664308
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=5
2019-01-21 09:48:50 +00:00
Tomáš Chvátal
188f7d3da5 Accepting request 664289 from home:mnhauke
- Update to version 0.3.3
  * Exit code indication of the command-line tools aligned with
    sysexits.h to report more useful termination status
- Update to version 0.3.2
  * Fixed compiler crash when building comments at a platform
    which has broken users/groups databases

OBS-URL: https://build.opensuse.org/request/show/664289
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=13
2019-01-10 09:39:20 +00:00
bd24cac60e Accepting request 659603 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659603
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=4
2018-12-24 10:42:21 +00:00
e6f6687785 Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=11
2018-12-04 17:20:01 +00:00
7f5d852c0e Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=10
2018-12-04 13:54:40 +00:00
782ebebd0e Accepting request 516764 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/516764
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=3
2017-08-24 16:52:05 +00:00
f160c25ed0 Accepting request 516199 from home:tbechtold:branches:devel:languages:python
- update to 0.3.1:
  * INET-ADDRESS-MIB configured as pre-built at pysnmp codegen
  * JSON codegen produces "nodetype" element for OBJECT-TYPE
  * Fix to mibdump.py --destination-directory option
  * Fix to pysnmp and JSON code generators to properly refer to MIB module
  defining particular MIB object
  * The @mib@ magic in reader's URL template made optional. If it is not present,
  MIB module name is just appended to URL template
  * Send User-Agent containing pysmi and Python versions as well as platform name.
  * Fixed missing STATUS/DISPLAY-HINT/REFERENCE/etc fields generation at pysnmp
  backend when running in the non-full-text mode
  * Fixed broken `ordereddict` dependency on Python 2.6-
  * Generate REFERENCE and STATUS fields at various SMI objects
  * Generate DESCRIPTION field followed REVISION field at MODULE-IDENTITY objects
  * Generate PRODUCT-RELEASE field at AGENT-CAPABILITIES objects
  * Generated Python source aligned with PEP8
  * MIB texts cleaned up by default, --keep-texts-layout preserves original formatting
  * Fix to the `ordereddict` conditional dependency
  * Missing test module recovered
  * Failing tests fixed
  * JSON code generating backend implemented
  * Experimental JSON OID->MIB indices generation implemented
  * Package structure flattened for easier use
  * Minor refactoring to the test suite
  * Source code statically analyzed, hardened and PEP8-ized
  * Files closed explicitly to mute ResourceWarnings
  * Fixed to Python 2.4 (and aged ply) compatibility
  * Added a workaround to avoid generating pysnmp TextualConvention classes
  inheriting from TextualConvention (when MIB defines a TEXTUAL-CONVENTION
  based on another TEXTUAL-CONVENTION as SYNTAX)

OBS-URL: https://build.opensuse.org/request/show/516199
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysmi?expand=0&rev=8
2017-08-14 07:58:20 +00:00
f8e396d603 Accepting request 417354 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/417354
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=2
2016-08-10 17:55:40 +00:00
b064a72596 Accepting request 346344 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/346344
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysmi?expand=0&rev=1
2015-12-03 12:30:16 +00:00
4 changed files with 0 additions and 78 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd15a15020aee8376cab5be264c26330824a8b8164ed0195bd402dd59e4e8f7c
size 93985

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e42bcd3961de71d58186f7a7fa6adac133701ae74cd19e6376289d89593b0af2
size 124064

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cffc1d018325d1810ad4554589ad113575dd2ae071409feb1fe1e1f0b56cd236
size 122568

View File

@@ -1,69 +0,0 @@
From 01d0774948da432f39c5a89622d676e91b8c47af Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Wed, 9 Oct 2024 17:20:45 +1100
Subject: [PATCH] Remove use of str2octs from pyasn1
pyasn1 has been removing all Python 2 code from its codebase, and the
octets module has been removed from 0.6.1 onwards. Since we only support
Python 3.8, we can remove it and just encode to bytes.
---
tests/test_objecttype_smiv2_pysnmp.py | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/tests/test_objecttype_smiv2_pysnmp.py b/tests/test_objecttype_smiv2_pysnmp.py
index fdec37e..b374332 100644
--- a/tests/test_objecttype_smiv2_pysnmp.py
+++ b/tests/test_objecttype_smiv2_pysnmp.py
@@ -13,7 +13,6 @@
except ImportError:
import unittest
-from pyasn1.compat.octets import str2octs
from pysmi.parser.smi import parserFactory
from pysmi.codegen.pysnmp import PySnmpCodeGen
from pysmi.codegen.symtable import SymtableCodeGen
@@ -75,7 +74,7 @@ def testObjectTypeStatus(self):
# TODO:revisit
# def testObjectTypeReference(self):
# self.assertEqual(
- # self.ctx['testObjectType'].getReference(), str2octs('ABC'),
+ # self.ctx['testObjectType'].getReference(), 'ABC'.encode('iso-8859-1'),
# 'bad REFERENCE'
# )
@@ -335,7 +334,7 @@ def setUp(self):
# TODO: pyasn1 does not like OctetString.defaultValue
def testObjectTypeSyntax(self):
self.assertEqual(
- self.ctx["testObjectType"].getSyntax(), str2octs("test value"), "bad DEFVAL"
+ self.ctx["testObjectType"].getSyntax(), "test value".encode('iso-8859-1'), "bad DEFVAL"
)
@@ -374,7 +373,7 @@ def setUp(self):
def testObjectTypeSyntax(self):
self.assertEqual(
self.ctx["testObjectType"].getSyntax(),
- str2octs("\\ntest\nvalue\\"),
+ "\\ntest\nvalue\\".encode('iso-8859-1'),
"bad DEFVAL",
)
@@ -488,7 +487,7 @@ def setUp(self):
def testObjectTypeSyntax(self):
self.assertEqual(
self.ctx["testObjectType"].getSyntax().clone(""),
- str2octs(""),
+ "".encode('iso-8859-1'),
"bad size constrained SYNTAX",
)
@@ -526,7 +525,7 @@ def setUp(self):
def testObjectTypeSyntax(self):
self.assertEqual(
self.ctx["testObjectType"].getSyntax().clone(("set",)),
- str2octs("@"),
+ "@".encode('iso-8859-1'),
"bad BITS SYNTAX",
)