14
0
forked from pool/python-pysnmp

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysnmp?expand=0&rev=54
This commit is contained in:
2024-07-29 08:45:06 +00:00
committed by Git OBS Bridge
parent 01c88e1bf2
commit fa226e5631
4 changed files with 27 additions and 12 deletions

View File

@@ -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