14
0
forked from pool/python-pyeapi

Accepting request 946132 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/946132
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyeapi?expand=0&rev=4
This commit is contained in:
2022-01-13 22:21:17 +00:00
committed by Git OBS Bridge
3 changed files with 19 additions and 6 deletions

View File

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

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jan 11 22:08:03 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Fix deprecated collections.abc imports still not fully fixed in
0.8.4 -- gh#arista-eosplus/pyeapi#195
- Use the PyPI archive, because the git source has the wrong
version in its metadata
-------------------------------------------------------------------
Sat Nov 14 13:15:51 UTC 2020 - Martin Hauke <mardnh@gmx.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyeapi
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2017-2020, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
@@ -17,7 +17,8 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-pyeapi
Version: 0.8.4
Release: 0
@@ -25,7 +26,7 @@ Summary: Python Client for eAPI
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/arista-eosplus/pyeapi
Source: https://github.com/arista-eosplus/pyeapi/archive/v%{version}.tar.gz#/pyeapi-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/p/pyeapi/pyeapi-%{version}.tar.gz
BuildRequires: %{python_module mock}
BuildRequires: %{python_module netaddr}
BuildRequires: %{python_module pytest}
@@ -52,6 +53,9 @@ 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
%build
%python_build
@@ -67,6 +71,7 @@ developing custom implementations.
%license LICENSE
%doc CHANGELOG.md README.md
%doc examples
%{python_sitelib}/*
%{python_sitelib}/pyeapi
%{python_sitelib}/pyeapi-%{version}*-info
%changelog