diff --git a/librouteros-3.2.1.tar.gz b/librouteros-3.2.1.tar.gz deleted file mode 100644 index cfdaa18..0000000 --- a/librouteros-3.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aec31ae8b7c88f5c248a18a5624b74d72c3e1f65e0cbaab0cee9151a9de5d393 -size 34545 diff --git a/librouteros-3.4.1.tar.gz b/librouteros-3.4.1.tar.gz new file mode 100644 index 0000000..b776ae8 --- /dev/null +++ b/librouteros-3.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efd79f5cf7fa2a8d8017c2a92bb4b512a43a5d1fafc9d757ba232e7a5240e846 +size 39005 diff --git a/migrate-to-setup-method.patch b/migrate-to-setup-method.patch deleted file mode 100644 index 478b723..0000000 --- a/migrate-to-setup-method.patch +++ /dev/null @@ -1,106 +0,0 @@ -From a9349dfdc1d8e7a915567766e0d18b07544323dc Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?=C5=81ukasz=20Kostka?= -Date: Thu, 22 Jun 2023 14:55:54 +0200 -Subject: [PATCH] Migrate to setup_method - -https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose ---- - tests/unit/test_api.py | 2 +- - tests/unit/test_connections.py | 2 +- - tests/unit/test_path.py | 2 +- - tests/unit/test_protocol.py | 6 +++--- - tests/unit/test_query.py | 4 ++-- - 5 files changed, 8 insertions(+), 8 deletions(-) - -Index: librouteros-3.2.1/tests/unit/test_api.py -=================================================================== ---- librouteros-3.2.1.orig/tests/unit/test_api.py -+++ librouteros-3.2.1/tests/unit/test_api.py -@@ -37,7 +37,7 @@ def test_compose_word(word_pair): - - class Test_Api: - -- def setup(self): -+ def setup_method(self): - self.api = Api(protocol=MagicMock()) - - @patch.object(Api, 'readResponse') -Index: librouteros-3.2.1/tests/unit/test_connections.py -=================================================================== ---- librouteros-3.2.1.orig/tests/unit/test_connections.py -+++ librouteros-3.2.1/tests/unit/test_connections.py -@@ -14,7 +14,7 @@ from librouteros.exceptions import ( - - class Test_SocketTransport: - -- def setup(self): -+ def setup_method(self): - self.transport = SocketTransport(sock=MagicMock(spec=socket)) - - def test_calls_socket_close(self): -Index: librouteros-3.2.1/tests/unit/test_path.py -=================================================================== ---- librouteros-3.2.1.orig/tests/unit/test_path.py -+++ librouteros-3.2.1/tests/unit/test_path.py -@@ -19,7 +19,7 @@ def test_api_path_returns_Path(): - - class Test_Path: - -- def setup(self): -+ def setup_method(self): - self.path = Path( - path='/interface', - api=MagicMock(), -Index: librouteros-3.2.1/tests/unit/test_protocol.py -=================================================================== ---- librouteros-3.2.1.orig/tests/unit/test_protocol.py -+++ librouteros-3.2.1/tests/unit/test_protocol.py -@@ -18,7 +18,7 @@ from librouteros.exceptions import ( - - class Test_Decoder: - -- def setup(self): -+ def setup_method(self): - self.decoder = Decoder() - self.decoder.encoding = 'ASCII' - -@@ -51,7 +51,7 @@ class Test_Decoder: - - class Test_Encoder: - -- def setup(self): -+ def setup_method(self): - self.encoder = Encoder() - self.encoder.encoding = 'ASCII' - -@@ -98,7 +98,7 @@ class Test_Encoder: - - class Test_ApiProtocol: - -- def setup(self): -+ def setup_method(self): - self.protocol = ApiProtocol( - transport=MagicMock(spec=SocketTransport), - encoding='utf-8', -Index: librouteros-3.2.1/tests/unit/test_query.py -=================================================================== ---- librouteros-3.2.1.orig/tests/unit/test_query.py -+++ librouteros-3.2.1/tests/unit/test_query.py -@@ -11,7 +11,7 @@ from librouteros.query import ( - - class Test_Query: - -- def setup(self): -+ def setup_method(self): - self.query = Query( - path=MagicMock(), - api=MagicMock(), -@@ -43,7 +43,7 @@ class Test_Query: - - class Test_Key: - -- def setup(self): -+ def setup_method(self): - self.key = Key(name='key_name', ) - - @pytest.mark.parametrize('param, expected', ( diff --git a/python-librouteros.changes b/python-librouteros.changes index cce0bdc..a28971f 100644 --- a/python-librouteros.changes +++ b/python-librouteros.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Thu Nov 27 11:06:31 UTC 2025 - John Paul Adrian Glaubitz + +- Update to version 3.4.1 + * Revert `SYNC_DEFAULTS` to `DEFAULTS` +- from version 3.4.0 + * Add async support +- from version 3.3.1 + * Fix empty `select()` `=.proplist=` argument +- from version 3.3.0 + * Allow empty `select()` + * Drop python 3.7 support (end of life) + * Drop python 3.6 support (end of life) +- Drop migrate-to-setup-method.patch, merged upstream +- Update BuildRequires and Requires from pyproject.toml +- Use Python 3.11 on SLE-15 by default + ------------------------------------------------------------------- Tue Aug 20 04:27:52 UTC 2024 - Steve Kowalik diff --git a/python-librouteros.spec b/python-librouteros.spec index c09529a..da60b09 100644 --- a/python-librouteros.spec +++ b/python-librouteros.spec @@ -16,17 +16,16 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # - +%{?sle15_python_module_pythons} Name: python-librouteros -Version: 3.2.1 +Version: 3.4.1 Release: 0 Summary: Python implementation of MikroTik RouterOS API License: GPL-2.0-or-later URL: https://github.com/luqasz/librouteros Source: https://github.com/luqasz/librouteros/archive/%{version}.tar.gz#/librouteros-%{version}.tar.gz -# PATCH-FIX-UPSTREAM gh#luqasz/librouteros#a9349dfdc1d8e7a915567766e0d18b07544323dc -Patch0: migrate-to-setup-method.patch BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes @@ -34,7 +33,9 @@ BuildRequires: python-rpm-macros BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-asyncio} # /SECTION +Requires: python-toml %python_subpackages %description