Hello community, here is the log from the commit of package python-snimpy for openSUSE:Factory checked in at 2020-11-29 12:26:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-snimpy (Old) and /work/SRC/openSUSE:Factory/.python-snimpy.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-snimpy" Sun Nov 29 12:26:50 2020 rev:2 rq:850755 version:0.8.14 Changes: -------- --- /work/SRC/openSUSE:Factory/python-snimpy/python-snimpy.changes 2020-03-24 22:37:22.497236158 +0100 +++ /work/SRC/openSUSE:Factory/.python-snimpy.new.5913/python-snimpy.changes 2020-11-29 12:26:54.709910152 +0100 @@ -1,0 +2,8 @@ +Wed Jul 29 10:43:00 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- update to version 0.8.14 + * Add ``items()`` in addition to ``iteritems()`` This is an iterator + on Python 3 and return a list of items in Python 2. + * MIB parsing is still done with ``libsmi`` but through CFFI + +------------------------------------------------------------------- Old: ---- snimpy-0.8.13.tar.gz New: ---- snimpy-0.8.14.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-snimpy.spec ++++++ --- /var/tmp/diff_new_pack.IJoOLT/_old 2020-11-29 12:26:55.717911171 +0100 +++ /var/tmp/diff_new_pack.IJoOLT/_new 2020-11-29 12:26:55.717911171 +0100 @@ -1,6 +1,7 @@ # # spec file for package python-snimpy # +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2016-2020, Martin Hauke <mar...@gmx.de> # # All modifications and additions to the file contributed by third parties @@ -12,12 +13,13 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-snimpy -Version: 0.8.13 +Version: 0.8.14 Release: 0 Summary: Interactive SNMP tool License: ISC @@ -35,7 +37,6 @@ # SECTION test requirements BuildRequires: %{python_module cffi >= 1.0.0} BuildRequires: %{python_module mock} -BuildRequires: %{python_module nose} BuildRequires: %{python_module pycryptodomex} BuildRequires: %{python_module pysnmp >= 4} BuildRequires: %{python_module setuptools} @@ -81,7 +82,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_exec setup.py test +%python_exec -m unittest discover tests -v %files %{python_files} %license docs/license.rst ++++++ snimpy-0.8.13.tar.gz -> snimpy-0.8.14.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/.travis.yml new/snimpy-0.8.14/.travis.yml --- old/snimpy-0.8.13/.travis.yml 2018-10-12 08:15:30.000000000 +0200 +++ new/snimpy-0.8.14/.travis.yml 2019-10-21 20:44:15.000000000 +0200 @@ -18,7 +18,8 @@ env: TOX_ENV=py36 - python: "3.7" env: TOX_ENV=py37 - dist: xenial + - python: "3.8" + env: TOX_ENV=py38 - python: "pypy" env: TOX_ENV=pypy - python: "pypy" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/HISTORY.rst new/snimpy-0.8.14/HISTORY.rst --- old/snimpy-0.8.13/HISTORY.rst 2018-10-12 08:57:32.000000000 +0200 +++ new/snimpy-0.8.14/HISTORY.rst 2020-04-26 19:55:59.000000000 +0200 @@ -3,6 +3,12 @@ History ------- +0.8.14 (2020-04-26) ++++++++++++++++++++ + + * Add ``items()`` in addition to ``iteritems()`` This is an iterator + on Python 3 and return a list of items in Python 2. + 0.8.13 (2018-10-12) +++++++++++++++++++ @@ -97,12 +103,11 @@ * Major rewrite. * SNMP support is now provided through PySNMP_. -* MIB parsing is still done with libsmi_ but through CFFI instead of a +* MIB parsing is still done with ``libsmi`` but through CFFI instead of a C module. * More unittests. Many bugfixes. .. _PySNMP: http://pysnmp.sourceforge.net/ -.. _libsmi: http://www.ibr.cs.tu-bs.de/projects/libsmi/ 0.6.4 (2013-03-21) ++++++++++++++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/PKG-INFO new/snimpy-0.8.14/PKG-INFO --- old/snimpy-0.8.13/PKG-INFO 2018-10-13 16:39:47.000000000 +0200 +++ new/snimpy-0.8.14/PKG-INFO 2020-04-26 20:21:28.800819900 +0200 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: snimpy -Version: 0.8.13 +Version: 0.8.14 Summary: interactive SNMP tool Home-page: https://github.com/vincentbernat/snimpy Author: Vincent Bernat @@ -71,6 +71,12 @@ History ------- + 0.8.14 (2020-04-26) + +++++++++++++++++++ + + * Add ``items()`` in addition to ``iteritems()`` This is an iterator + on Python 3 and return a list of items in Python 2. + 0.8.13 (2018-10-12) +++++++++++++++++++ @@ -165,12 +171,11 @@ * Major rewrite. * SNMP support is now provided through PySNMP_. - * MIB parsing is still done with libsmi_ but through CFFI instead of a + * MIB parsing is still done with ``libsmi`` but through CFFI instead of a C module. * More unittests. Many bugfixes. .. _PySNMP: http://pysnmp.sourceforge.net/ - .. _libsmi: http://www.ibr.cs.tu-bs.de/projects/libsmi/ 0.6.4 (2013-03-21) ++++++++++++++++++ @@ -238,3 +243,4 @@ Classifier: Topic :: System :: Networking Classifier: Topic :: Utilities Classifier: Topic :: System :: Monitoring +Description-Content-Type: text/x-rst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/setup.py new/snimpy-0.8.14/setup.py --- old/snimpy-0.8.13/setup.py 2016-11-15 07:58:49.000000000 +0100 +++ new/snimpy-0.8.14/setup.py 2020-04-26 19:52:39.000000000 +0200 @@ -38,6 +38,7 @@ url='https://github.com/vincentbernat/snimpy', description=snimpy.__doc__, long_description=readme + '\n\n' + history, + long_description_content_type='text/x-rst', author=snimpy.__author__, author_email=snimpy.__email__, packages=["snimpy"], @@ -54,7 +55,8 @@ tests_require=list(filter(None, ["cffi >= 1.0.0", "pysnmp >= 4", "nose", - "mock", + sys.version_info < (3, 6) and + "mock < 4" or "mock", sys.version_info < (2, 7) and "unittest2"])), test_suite="nose.collector", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/snimpy/_version.py new/snimpy-0.8.14/snimpy/_version.py --- old/snimpy-0.8.13/snimpy/_version.py 2018-10-13 16:39:46.000000000 +0200 +++ new/snimpy-0.8.14/snimpy/_version.py 2020-04-26 20:21:28.000000000 +0200 @@ -1,5 +1,5 @@ # This file is automatically generated by setup.py. -__version__ = '0.8.13' -__sha__ = 'gf167b07635ef' -__revision__ = 'gf167b07635ef' +__version__ = '0.8.14' +__sha__ = 'g55c10576af05' +__revision__ = 'g55c10576af05' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/snimpy/manager.py new/snimpy-0.8.14/snimpy/manager.py --- old/snimpy-0.8.13/snimpy/manager.py 2018-10-12 08:52:18.000000000 +0200 +++ new/snimpy-0.8.14/snimpy/manager.py 2020-04-26 19:36:25.000000000 +0200 @@ -28,6 +28,7 @@ <String: lo> """ +import sys import inspect from time import time from collections import MutableMapping, Container, Iterable, Sized @@ -429,6 +430,11 @@ def __len__(self): len(list(self.iteritems())) + def items(self, *args, **kwargs): + if sys.version_info >= (3, 0): + return self.iteritems(*args, **kwargs) + return list(self.iteritems(*args, **kwargs)) + def iteritems(self, table_filter=None): count = 0 oid = self.proxy.oid @@ -568,6 +574,11 @@ new_suffix = self._oid_suffix + index return ProxyColumn(self.session, self.proxy, self._loose, new_suffix) + def items(self, *args, **kwargs): + if sys.version_info >= (3, 0): + return self.iteritems(*args, **kwargs) + return list(self.iteritems(*args, **kwargs)) + def iteritems(self, table_filter=None): resulting_filter = self._oid_suffix if table_filter is not None: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/snimpy/mib.py new/snimpy-0.8.14/snimpy/mib.py --- old/snimpy-0.8.13/snimpy/mib.py 2018-10-11 22:02:19.000000000 +0200 +++ new/snimpy-0.8.14/snimpy/mib.py 2019-02-01 13:27:36.000000000 +0100 @@ -462,7 +462,7 @@ """Reset libsmi to its initial state.""" _smi.smiExit() if _smi.smiInit(b"snimpy") < 0: - raise SMIException("unable to init libsmi") + raise SMIException("unable to init libsmi") _smi.smiSetErrorLevel(1) _smi.smiSetErrorHandler(_logError) try: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/snimpy.egg-info/PKG-INFO new/snimpy-0.8.14/snimpy.egg-info/PKG-INFO --- old/snimpy-0.8.13/snimpy.egg-info/PKG-INFO 2018-10-13 16:39:46.000000000 +0200 +++ new/snimpy-0.8.14/snimpy.egg-info/PKG-INFO 2020-04-26 20:21:28.000000000 +0200 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: snimpy -Version: 0.8.13 +Version: 0.8.14 Summary: interactive SNMP tool Home-page: https://github.com/vincentbernat/snimpy Author: Vincent Bernat @@ -71,6 +71,12 @@ History ------- + 0.8.14 (2020-04-26) + +++++++++++++++++++ + + * Add ``items()`` in addition to ``iteritems()`` This is an iterator + on Python 3 and return a list of items in Python 2. + 0.8.13 (2018-10-12) +++++++++++++++++++ @@ -165,12 +171,11 @@ * Major rewrite. * SNMP support is now provided through PySNMP_. - * MIB parsing is still done with libsmi_ but through CFFI instead of a + * MIB parsing is still done with ``libsmi`` but through CFFI instead of a C module. * More unittests. Many bugfixes. .. _PySNMP: http://pysnmp.sourceforge.net/ - .. _libsmi: http://www.ibr.cs.tu-bs.de/projects/libsmi/ 0.6.4 (2013-03-21) ++++++++++++++++++ @@ -238,3 +243,4 @@ Classifier: Topic :: System :: Networking Classifier: Topic :: Utilities Classifier: Topic :: System :: Monitoring +Description-Content-Type: text/x-rst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/tests/test_manager.py new/snimpy-0.8.14/tests/test_manager.py --- old/snimpy-0.8.13/tests/test_manager.py 2018-10-11 22:02:19.000000000 +0200 +++ new/snimpy-0.8.14/tests/test_manager.py 2020-04-26 19:36:25.000000000 +0200 @@ -188,6 +188,9 @@ results = list(self.manager.ifRcvAddressType.iteritems(3)) self.assertEqual(results, [((3, "6d:6e:6f:70:71:72"), 1)]) + results = list(self.manager.ifRcvAddressType.items(3)) + self.assertEqual(results, + [((3, "6d:6e:6f:70:71:72"), 1)]) def testWalkInvalidPartialIndexes(self): """Try to get a table slice with an incorrect index filter""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/tox.ini new/snimpy-0.8.14/tox.ini --- old/snimpy-0.8.13/tox.ini 2018-10-12 08:15:30.000000000 +0200 +++ new/snimpy-0.8.14/tox.ini 2020-04-26 20:05:33.000000000 +0200 @@ -1,5 +1,6 @@ [tox] -envlist = py{26,27,33,34,35,36,37,py},py{27,35,36,37,py}-{pysnmp42,ipython},lint,doc +envlist = py{26,27,33,34,35,36,37,38,py},py{27,35,36,37,38,py}-{pysnmp42,ipython},lint,doc +skip_missing_interpreters = True [testenv] deps = @@ -12,14 +13,18 @@ pypy: with_gmp=no [testenv:lint] -basepython = python -deps = flake8 +basepython = python3 +deps = + flake8 + twine whitelist_externals = make commands = make lint + python setup.py sdist + twine check dist/* [testenv:doc] -basepython = python +basepython = python3 changedir = docs deps = -rrequirements.txt whitelist_externals = make diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snimpy-0.8.13/version.txt new/snimpy-0.8.14/version.txt --- old/snimpy-0.8.13/version.txt 2018-10-13 16:39:46.000000000 +0200 +++ new/snimpy-0.8.14/version.txt 2020-04-26 20:21:28.000000000 +0200 @@ -1 +1 @@ -0.8.13-0-gf167b07635ef \ No newline at end of file +0.8.14-0-g55c10576af05 \ No newline at end of file _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org