diff --git a/pysnmp-6.2.2.tar.gz b/pysnmp-6.2.2.tar.gz deleted file mode 100644 index a90cf4d..0000000 --- a/pysnmp-6.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:58a94b4c2b717c81ece3cb7061103e05a4b8c2f19044e527481b3ada101962df -size 470689 diff --git a/pysnmp-6.2.4.tar.gz b/pysnmp-6.2.4.tar.gz new file mode 100644 index 0000000..3b13975 --- /dev/null +++ b/pysnmp-6.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b1346f561fdc53f13019c5ec2c108224b4935d5bb6d2c0133ca236bbae77665 +size 413802 diff --git a/python-pysnmp.changes b/python-pysnmp.changes index 2e93fda..c3d8da1 100644 --- a/python-pysnmp.changes +++ b/python-pysnmp.changes @@ -1,9 +1,18 @@ +------------------------------------------------------------------- +Mon Jul 29 08:33:51 UTC 2024 - Daniel Garcia + +- 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 -- Update to version 6.6.2 - * Deleted more obsolete items. - * Removed unused dependencies. +- Update to version 6.2.2 * Cleaned up sync API leftover. * Retired temporary sync API. * Removed package postfix. A helper release to enable migration. diff --git a/python-pysnmp.spec b/python-pysnmp.spec index 0f4e925..229e287 100644 --- a/python-pysnmp.spec +++ b/python-pysnmp.spec @@ -17,15 +17,18 @@ Name: python-pysnmp -Version: 6.2.2 +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 +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 @@ -68,13 +71,16 @@ 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 +# 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' +} %files %{python_files} %license LICENSE.rst -%doc CHANGES.rst README.md THANKS.txt TODO.txt docs examples +%doc README.md docs examples %{python_sitelib}/pysnmp %{python_sitelib}/pysnmp-%{version}.dist-info