diff --git a/pyeapi-0.8.4.tar.gz b/pyeapi-0.8.4.tar.gz deleted file mode 100644 index e0537be..0000000 --- a/pyeapi-0.8.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c33ad1eadd8ebac75f63488df9412081ce0b024c9e1da12a37196a5c60427c54 -size 138140 diff --git a/pyeapi-1.0.2.tar.gz b/pyeapi-1.0.2.tar.gz new file mode 100644 index 0000000..5e0c06d --- /dev/null +++ b/pyeapi-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:563a80bb19451df7dd7b6e9e38489dee67ebeaf2f54de296e8ae0b26cd68a297 +size 146942 diff --git a/python-pyeapi.changes b/python-pyeapi.changes index 4567457..28410b3 100644 --- a/python-pyeapi.changes +++ b/python-pyeapi.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Mon Jan 1 20:15:51 UTC 2024 - Dirk Müller + +- update to 1.0.2: + * Fixed all system tests and provides some enhancements for + unit tests +- update to 1.0.1: + * This is an interim release for EOS integration purpose +- update to 1.0.0: + * This is a Python3 only release (Python2 is no longer + supported) + * The minimum supported python version is 3.7 + * Arista EOS 4.22 or later is required (for on-box use cases + only) + ------------------------------------------------------------------- Wed Apr 6 12:55:49 UTC 2022 - pgajdos@suse.com diff --git a/python-pyeapi.spec b/python-pyeapi.spec index fb199a2..1bb2c00 100644 --- a/python-pyeapi.spec +++ b/python-pyeapi.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyeapi # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2017-2020, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -17,10 +17,9 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-pyeapi -Version: 0.8.4 +Version: 1.0.2 Release: 0 Summary: Python Client for eAPI License: BSD-3-Clause @@ -28,8 +27,9 @@ Group: Development/Languages/Python URL: https://github.com/arista-eosplus/pyeapi Source: https://files.pythonhosted.org/packages/source/p/pyeapi/pyeapi-%{version}.tar.gz BuildRequires: %{python_module netaddr} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-netaddr @@ -52,17 +52,12 @@ developing custom implementations. %prep %setup -q -n pyeapi-%{version} -# Deprecated collections usage since Python 3.3 -sed -i 's/from collections import/from collections.abc import/' pyeapi/api/abstract.py -sed -i 's/collections.Iterable/collections.abc.Iterable/' test/unit/test_utils.py -# https://github.com/arista-eosplus/pyeapi/issues/224 -sed -i 's/from mock/from unittest.mock/' test/*/test*.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %fdupes %{buildroot} %check @@ -73,6 +68,6 @@ sed -i 's/from mock/from unittest.mock/' test/*/test*.py %doc CHANGELOG.md README.md %doc examples %{python_sitelib}/pyeapi -%{python_sitelib}/pyeapi-%{version}*-info +%{python_sitelib}/pyeapi-%{version}.dist-info %changelog