* [gentoo-commits] repo/gentoo:master commit in: dev-python/pysmi/files/, dev-python/pysmi/
@ 2024-09-03 9:20 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2024-09-03 9:20 UTC (permalink / raw
To: gentoo-commits
commit: 32ddad21eadb3a3376da5e05db02eac425845952
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 3 08:51:43 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Sep 3 09:20:51 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32ddad21
dev-python/pysmi: Bump to 1.5.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pysmi/Manifest | 1 +
dev-python/pysmi/files/pysmi-1.5.0-py313.patch | 36 +++++++++++++++++++++
dev-python/pysmi/pysmi-1.5.0.ebuild | 44 ++++++++++++++++++++++++++
3 files changed, 81 insertions(+)
diff --git a/dev-python/pysmi/Manifest b/dev-python/pysmi/Manifest
index eede5251ad05..984e774ee43a 100644
--- a/dev-python/pysmi/Manifest
+++ b/dev-python/pysmi/Manifest
@@ -1,2 +1,3 @@
DIST pysmi-0.3.4.tar.gz 93985 BLAKE2B 71b0ed936c196381f895b4f56e8e2e328ac274b08801a77b404b964201e00f8da2cbce2719414da358a4feb7992a3d04e732942f6e7006a0cceea4496f96b758 SHA512 720c8948a590130583d6ea388f0ade5d3bfe9e845821add7ffbf1b5495b5fe00b768ffb94f67b82465c6d86234f5306c6e1a5c2e49f4825bb9c31a0df629f7bd
DIST pysmi-1.4.4.tar.gz 117164 BLAKE2B 2ef1c2fc58ee90ad052fec5f0aa08fc128cc041e24dc74d8942ff81912e7e45b480e5a125e412e0c52818670dafbd9bee310a863f9a5b898c8a67a18492897ae SHA512 9ce5665d1db147cb80fe7ef17981a4231a25a8b25cfafb14784acc0355fbd0296070a7da67a7f6b1e738e0f5f1249f871ee29a72da546e639ad4d2f2e8b00c43
+DIST pysmi-1.5.0.tar.gz 124064 BLAKE2B 763501b0fd575e356944372f0f173857d8a982a1cc7342636807d7147f7b6615d9c9518f099fb3071356957f0775e7bbd6b5f37d2110947ad22585cc44dff461 SHA512 f99fbc186b2fd481b16269e5b3622821b932459ec97023968ce8e0ae5c2d863702122a44fafb26d901b8a0b03c02f97e60c6999bdde0f19d551a61daf4e926b5
diff --git a/dev-python/pysmi/files/pysmi-1.5.0-py313.patch b/dev-python/pysmi/files/pysmi-1.5.0-py313.patch
new file mode 100644
index 000000000000..bebd360593f1
--- /dev/null
+++ b/dev-python/pysmi/files/pysmi-1.5.0-py313.patch
@@ -0,0 +1,36 @@
+From 1e9c2f7a3cc2ee78caa79d0602f3afe2030dcf5e Mon Sep 17 00:00:00 2001
+From: David van Moolenbroek <david.vanmoolenbroek@aimvalley.com>
+Date: Tue, 3 Sep 2024 07:54:12 +0000
+Subject: [PATCH] Fix unit test for Python 3.13
+
+As of Python 3.13, tabs in docstrings are expanded to spaces, thereby
+breaking one of the unit tests. This commit fixes the unit test. Note
+that neither the problem nor this fix affect the main pysmi code.
+---
+ tests/test_moduleidentity_smiv2_pysnmp.py | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test_moduleidentity_smiv2_pysnmp.py b/tests/test_moduleidentity_smiv2_pysnmp.py
+index 8c181a8..eeee0f5 100644
+--- a/tests/test_moduleidentity_smiv2_pysnmp.py
++++ b/tests/test_moduleidentity_smiv2_pysnmp.py
+@@ -157,7 +157,7 @@ class ModuleIdentityTextTestCase(unittest.TestCase):
+ organization"
+ CONTACT-INFO "WG-email:\\n agentx@dorothy.bmc.com\\"
+ DESCRIPTION "
+- A\tdescription with\\n
++ A<TAB>description with\\n
+ various characters: 0~`!@#$%^&*()-_=+[]{}\\|;:'<>,.?/
+ and a very long line that must not be wrapped despite exceeding the threshold of default word wrap filters.
+
+@@ -170,7 +170,9 @@ class ModuleIdentityTextTestCase(unittest.TestCase):
+ """
+
+ def setUp(self):
+- docstring = textwrap.dedent(self.__class__.__doc__)
++ # As of Python 3.13, tabs are expanded in docstrings, so we have to use
++ # a placeholder and replace it with real tab here.
++ docstring = textwrap.dedent(self.__class__.__doc__.replace("<TAB>", "\t"))
+ ast = parserFactory()().parse(docstring)[0]
+ mibInfo, symtable = SymtableCodeGen().genCode(ast, {}, genTexts=True)
+ self.mibInfo, pycode = PySnmpCodeGen().genCode(
diff --git a/dev-python/pysmi/pysmi-1.5.0.ebuild b/dev-python/pysmi/pysmi-1.5.0.ebuild
new file mode 100644
index 000000000000..8a27a701a3fe
--- /dev/null
+++ b/dev-python/pysmi/pysmi-1.5.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2017-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..13} )
+inherit distutils-r1 pypi
+
+DESCRIPTION="Pure-Python implementation of SNMP/SMI MIB parsing and conversion library"
+HOMEPAGE="
+ https://github.com/lextudio/pysmi/
+ https://pypi.org/project/pysmi/
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86"
+
+RDEPEND="
+ >=dev-python/jinja-3.1.3[${PYTHON_USEDEP}]
+ >=dev-python/ply-3.11[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ >=dev-python/pysnmp-5.0.0[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+# TODO: doc
+# distutils_enable_sphinx docs/source dev-python/sphinx-copybutton dev-python/sphinx-sitemap
+
+PATCHES=(
+ # https://github.com/lextudio/pysmi/pull/4
+ "${FILESDIR}/${P}-py313.patch"
+)
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pysmi/files/, dev-python/pysmi/
@ 2024-11-23 10:08 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2024-11-23 10:08 UTC (permalink / raw
To: gentoo-commits
commit: c2488fb56c2cf8d83a3f3c6e7ce591c4ceb1e2fc
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 23 10:04:17 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 10:08:19 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2488fb5
dev-python/pysmi: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pysmi/Manifest | 3 --
dev-python/pysmi/files/pysmi-1.5.0-py313.patch | 36 ---------------------
dev-python/pysmi/pysmi-1.5.0.ebuild | 44 --------------------------
dev-python/pysmi/pysmi-1.5.6.ebuild | 42 ------------------------
dev-python/pysmi/pysmi-1.5.7.ebuild | 42 ------------------------
5 files changed, 167 deletions(-)
diff --git a/dev-python/pysmi/Manifest b/dev-python/pysmi/Manifest
index ee5331b9d625..011b54186afd 100644
--- a/dev-python/pysmi/Manifest
+++ b/dev-python/pysmi/Manifest
@@ -1,4 +1 @@
-DIST pysmi-1.5.0.tar.gz 124064 BLAKE2B 763501b0fd575e356944372f0f173857d8a982a1cc7342636807d7147f7b6615d9c9518f099fb3071356957f0775e7bbd6b5f37d2110947ad22585cc44dff461 SHA512 f99fbc186b2fd481b16269e5b3622821b932459ec97023968ce8e0ae5c2d863702122a44fafb26d901b8a0b03c02f97e60c6999bdde0f19d551a61daf4e926b5
-DIST pysmi-1.5.6.tar.gz 123690 BLAKE2B bd5ca7b8bb5e9eaa3e16f59e4c32eed3cc80a0d17e7834fd0512271ea1b24dfc473d3b63943c4e621d6ba4e469eb5005fe1855387bed831e314e1e349a655d84 SHA512 86522b72726cd6f279a8259ed1037f23b2c03b302c0981e6a89f5a7e93b602a65b2bc8e3a264dea738f10710280a618b93f24563c89e66a30cc0661a90e79549
-DIST pysmi-1.5.7.tar.gz 128727 BLAKE2B b53e5c3992bafe66052550b92a2e835773c1f6549135466ab541d1cbc04b96fdbe240276561f41d88651f7f3debedd3505166129efcbe230c28bb98e79ae95be SHA512 80eab0c3c685da1ab46a8a7945ad7e31df0b2d7b089bb00e0df5445b4df9ab6ba3d244c69878a5e078cfb9f660307c0261e73c09b7e0e1b1acec157cafa6eaf6
DIST pysmi-1.5.9.tar.gz 131529 BLAKE2B d3ef2a848815b1d33f9f545a002c2e7a04ddf97979974c53dad4e6b7372369820c011a3996592ed3ad8625b306cc35bafb5fb9230d6155a64ecc53803e5db973 SHA512 3f580b96d677acd5ca5b107186269ee0ef6673326746cc3f09d8fb5fe549fa1456783f33c5213c288c783190220ae30ef2cfb71e9947804abbee38d5792bfa09
diff --git a/dev-python/pysmi/files/pysmi-1.5.0-py313.patch b/dev-python/pysmi/files/pysmi-1.5.0-py313.patch
deleted file mode 100644
index bebd360593f1..000000000000
--- a/dev-python/pysmi/files/pysmi-1.5.0-py313.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 1e9c2f7a3cc2ee78caa79d0602f3afe2030dcf5e Mon Sep 17 00:00:00 2001
-From: David van Moolenbroek <david.vanmoolenbroek@aimvalley.com>
-Date: Tue, 3 Sep 2024 07:54:12 +0000
-Subject: [PATCH] Fix unit test for Python 3.13
-
-As of Python 3.13, tabs in docstrings are expanded to spaces, thereby
-breaking one of the unit tests. This commit fixes the unit test. Note
-that neither the problem nor this fix affect the main pysmi code.
----
- tests/test_moduleidentity_smiv2_pysnmp.py | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/tests/test_moduleidentity_smiv2_pysnmp.py b/tests/test_moduleidentity_smiv2_pysnmp.py
-index 8c181a8..eeee0f5 100644
---- a/tests/test_moduleidentity_smiv2_pysnmp.py
-+++ b/tests/test_moduleidentity_smiv2_pysnmp.py
-@@ -157,7 +157,7 @@ class ModuleIdentityTextTestCase(unittest.TestCase):
- organization"
- CONTACT-INFO "WG-email:\\n agentx@dorothy.bmc.com\\"
- DESCRIPTION "
-- A\tdescription with\\n
-+ A<TAB>description with\\n
- various characters: 0~`!@#$%^&*()-_=+[]{}\\|;:'<>,.?/
- and a very long line that must not be wrapped despite exceeding the threshold of default word wrap filters.
-
-@@ -170,7 +170,9 @@ class ModuleIdentityTextTestCase(unittest.TestCase):
- """
-
- def setUp(self):
-- docstring = textwrap.dedent(self.__class__.__doc__)
-+ # As of Python 3.13, tabs are expanded in docstrings, so we have to use
-+ # a placeholder and replace it with real tab here.
-+ docstring = textwrap.dedent(self.__class__.__doc__.replace("<TAB>", "\t"))
- ast = parserFactory()().parse(docstring)[0]
- mibInfo, symtable = SymtableCodeGen().genCode(ast, {}, genTexts=True)
- self.mibInfo, pycode = PySnmpCodeGen().genCode(
diff --git a/dev-python/pysmi/pysmi-1.5.0.ebuild b/dev-python/pysmi/pysmi-1.5.0.ebuild
deleted file mode 100644
index 5bb3da00f263..000000000000
--- a/dev-python/pysmi/pysmi-1.5.0.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 2017-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..13} )
-inherit distutils-r1 pypi
-
-DESCRIPTION="Pure-Python implementation of SNMP/SMI MIB parsing and conversion library"
-HOMEPAGE="
- https://github.com/lextudio/pysmi/
- https://pypi.org/project/pysmi/
-"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ppc ~sparc x86"
-
-RDEPEND="
- >=dev-python/jinja2-3.1.3[${PYTHON_USEDEP}]
- >=dev-python/ply-3.11[${PYTHON_USEDEP}]
- >=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- >=dev-python/pysnmp-5.0.0[${PYTHON_USEDEP}]
- )
-"
-
-EPYTEST_XDIST=1
-distutils_enable_tests pytest
-# TODO: doc
-# distutils_enable_sphinx docs/source dev-python/sphinx-copybutton dev-python/sphinx-sitemap
-
-PATCHES=(
- # https://github.com/lextudio/pysmi/pull/4
- "${FILESDIR}/${P}-py313.patch"
-)
-
-python_test() {
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest
-}
diff --git a/dev-python/pysmi/pysmi-1.5.6.ebuild b/dev-python/pysmi/pysmi-1.5.6.ebuild
deleted file mode 100644
index a81946c4bdf1..000000000000
--- a/dev-python/pysmi/pysmi-1.5.6.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 2017-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..13} )
-inherit distutils-r1 pypi
-
-DESCRIPTION="Pure-Python implementation of SNMP/SMI MIB parsing and conversion library"
-HOMEPAGE="
- https://github.com/lextudio/pysmi/
- https://pypi.org/project/pysmi/
-"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86"
-
-RDEPEND="
- >=dev-python/jinja2-3.1.3[${PYTHON_USEDEP}]
- >=dev-python/ply-3.11[${PYTHON_USEDEP}]
- >=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- >=dev-python/pysnmp-6.1.0[${PYTHON_USEDEP}]
- )
-"
-
-EPYTEST_XDIST=1
-distutils_enable_tests pytest
-
-python_test() {
- local EPYTEST_DESELECT=(
- # incompatibility with pysnmp >= 7
- tests/test_objecttype_smiv2_pysnmp.py::ObjectTypeBitsTestCase::testObjectTypeSyntax
- )
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest
-}
diff --git a/dev-python/pysmi/pysmi-1.5.7.ebuild b/dev-python/pysmi/pysmi-1.5.7.ebuild
deleted file mode 100644
index a81946c4bdf1..000000000000
--- a/dev-python/pysmi/pysmi-1.5.7.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 2017-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..13} )
-inherit distutils-r1 pypi
-
-DESCRIPTION="Pure-Python implementation of SNMP/SMI MIB parsing and conversion library"
-HOMEPAGE="
- https://github.com/lextudio/pysmi/
- https://pypi.org/project/pysmi/
-"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86"
-
-RDEPEND="
- >=dev-python/jinja2-3.1.3[${PYTHON_USEDEP}]
- >=dev-python/ply-3.11[${PYTHON_USEDEP}]
- >=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- >=dev-python/pysnmp-6.1.0[${PYTHON_USEDEP}]
- )
-"
-
-EPYTEST_XDIST=1
-distutils_enable_tests pytest
-
-python_test() {
- local EPYTEST_DESELECT=(
- # incompatibility with pysnmp >= 7
- tests/test_objecttype_smiv2_pysnmp.py::ObjectTypeBitsTestCase::testObjectTypeSyntax
- )
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest
-}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-23 10:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-23 10:08 [gentoo-commits] repo/gentoo:master commit in: dev-python/pysmi/files/, dev-python/pysmi/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2024-09-03 9:20 Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox