14
0
forked from pool/python-pyeapi

Accepting request 1136014 from devel:languages:python

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

OBS-URL: https://build.opensuse.org/request/show/1136014
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyeapi?expand=0&rev=6
This commit is contained in:
2024-01-03 11:27:58 +00:00
committed by Git OBS Bridge
4 changed files with 26 additions and 16 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c33ad1eadd8ebac75f63488df9412081ce0b024c9e1da12a37196a5c60427c54
size 138140

3
pyeapi-1.0.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:563a80bb19451df7dd7b6e9e38489dee67ebeaf2f54de296e8ae0b26cd68a297
size 146942

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Jan 1 20:15:51 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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

View File

@@ -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 <mardnh@gmx.de>
#
# 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