From 8587035d0c8e5689e8686bd44f20f09886efde481cd5bcb7566455428afca7c3 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 4 Mar 2025 13:27:58 +0000 Subject: [PATCH] Accepting request 1250063 from home:glaubitz:branches:devel:languages:python - Update to 1.0.4 * Fixes documentation build issue for modules section on readthedocs * Some fixes for system test - from version 1.0.3 * Provides a critical bug fix introduced by PR#220 * Fixed all system tests and provides some enhancements for unit tests - Drop no-more-imp.patch, merged upstream OBS-URL: https://build.opensuse.org/request/show/1250063 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyeapi?expand=0&rev=15 --- no-more-imp.patch | 33 --------------------------------- pyeapi-1.0.2.tar.gz | 3 --- pyeapi-1.0.4.tar.gz | 3 +++ python-pyeapi.changes | 11 +++++++++++ python-pyeapi.spec | 6 ++---- 5 files changed, 16 insertions(+), 40 deletions(-) delete mode 100644 no-more-imp.patch delete mode 100644 pyeapi-1.0.2.tar.gz create mode 100644 pyeapi-1.0.4.tar.gz diff --git a/no-more-imp.patch b/no-more-imp.patch deleted file mode 100644 index 4b63b71..0000000 --- a/no-more-imp.patch +++ /dev/null @@ -1,33 +0,0 @@ -From d6fe3ef701e25ebb599bbfeec9d30649e37c9940 Mon Sep 17 00:00:00 2001 -From: Steve Kowalik -Date: Mon, 19 Feb 2024 16:50:47 +1100 -Subject: [PATCH] Switch to importlib for realoading - -Since 3.7, importlib has supported a reload method, and since 3.12 has -removed the imp module entirely, we should switch to using importlib. ---- - test/unit/test_client.py | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/test/unit/test_client.py b/test/unit/test_client.py -index 3472951..0136add 100644 ---- a/test/unit/test_client.py -+++ b/test/unit/test_client.py -@@ -32,7 +32,7 @@ - import sys - import os - import unittest --import imp -+import importlib - - sys.path.append(os.path.join(os.path.dirname(__file__), '../lib')) - -@@ -227,7 +227,7 @@ class TestClient(unittest.TestCase): - def setUp(self): - if 'EAPI_CONF' in os.environ: - del os.environ['EAPI_CONF'] -- imp.reload(pyeapi.client) -+ importlib.reload(pyeapi.client) - - def test_load_config_for_connection_with_filename(self): - conf = get_fixture('eapi.conf') diff --git a/pyeapi-1.0.2.tar.gz b/pyeapi-1.0.2.tar.gz deleted file mode 100644 index 5e0c06d..0000000 --- a/pyeapi-1.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:563a80bb19451df7dd7b6e9e38489dee67ebeaf2f54de296e8ae0b26cd68a297 -size 146942 diff --git a/pyeapi-1.0.4.tar.gz b/pyeapi-1.0.4.tar.gz new file mode 100644 index 0000000..a437ab2 --- /dev/null +++ b/pyeapi-1.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05920677246823cd3dddf7d4d0f831fbc86fd416f356706a03bc56a291d78f3d +size 151406 diff --git a/python-pyeapi.changes b/python-pyeapi.changes index 156d834..d617ce0 100644 --- a/python-pyeapi.changes +++ b/python-pyeapi.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Mar 4 12:42:13 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.0.4 + * Fixes documentation build issue for modules section on readthedocs + * Some fixes for system test +- from version 1.0.3 + * Provides a critical bug fix introduced by PR#220 + * Fixed all system tests and provides some enhancements for unit tests +- Drop no-more-imp.patch, merged upstream + ------------------------------------------------------------------- Mon Feb 19 06:06:04 UTC 2024 - Steve Kowalik diff --git a/python-pyeapi.spec b/python-pyeapi.spec index 009c43d..a889826 100644 --- a/python-pyeapi.spec +++ b/python-pyeapi.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyeapi # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2017-2020, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -19,14 +19,12 @@ %{?sle15_python_module_pythons} Name: python-pyeapi -Version: 1.0.2 +Version: 1.0.4 Release: 0 Summary: Python Client for eAPI License: BSD-3-Clause URL: https://github.com/arista-eosplus/pyeapi Source: https://files.pythonhosted.org/packages/source/p/pyeapi/pyeapi-%{version}.tar.gz -# PATCH-FIX-UPSTREAM gh#arista-eosplus/pyeapi#292 -Patch0: no-more-imp.patch BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module netaddr} BuildRequires: %{python_module pip}