Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
c774b1630d | |||
8587035d0c |
@@ -1,33 +0,0 @@
|
||||
From d6fe3ef701e25ebb599bbfeec9d30649e37c9940 Mon Sep 17 00:00:00 2001
|
||||
From: Steve Kowalik <steven@wedontsleep.org>
|
||||
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')
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:563a80bb19451df7dd7b6e9e38489dee67ebeaf2f54de296e8ae0b26cd68a297
|
||||
size 146942
|
3
pyeapi-1.0.4.tar.gz
Normal file
3
pyeapi-1.0.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:05920677246823cd3dddf7d4d0f831fbc86fd416f356706a03bc56a291d78f3d
|
||||
size 151406
|
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 4 12:42:13 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- 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 <steven.kowalik@suse.com>
|
||||
|
||||
|
@@ -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 <mardnh@gmx.de>
|
||||
#
|
||||
# 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}
|
||||
|
Reference in New Issue
Block a user