1
0

23 Commits

Author SHA256 Message Date
cc48895e3f Accepting request 1320332 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1320332
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=12
2025-11-27 14:21:43 +00:00
057e417469 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=21
2025-11-27 11:41:21 +00:00
c7ac55a45f Accepting request 1194809 from devel:languages:python
- Add patch migrate-to-setup-method.patch:
  * Migrate to using setup_method().

OBS-URL: https://build.opensuse.org/request/show/1194809
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=11
2024-08-20 14:14:20 +00:00
4064e40b50 Accepting request 1140763 from devel:languages:python
- Skip a broken test.
- Switch to autosetup and pyproject macros.
- Stop using greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1140763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=10
2024-01-23 21:56:14 +00:00
a00b67b634 - Skip a broken test.
- Switch to autosetup and pyproject macros.
- Stop using greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=17
2024-01-23 06:26:49 +00:00
33ebb2db0c Accepting request 1007072 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1007072
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=9
2022-09-30 15:57:53 +00:00
3d401892e5 Accepting request 1006985 from home:yarunachalam:branches:devel:languages:python
- Update to version 3.2.1
  * Fix non ASCII API word encoding

OBS-URL: https://build.opensuse.org/request/show/1006985
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=15
2022-09-29 19:02:30 +00:00
7707ec2cd2 Accepting request 964377 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/964377
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=8
2022-03-24 21:57:32 +00:00
72e2c78b70 Accepting request 964307 from home:pgajdos:python
- python-mock is not required for build

OBS-URL: https://build.opensuse.org/request/show/964307
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=13
2022-03-23 21:23:03 +00:00
5dacaceb29 Accepting request 951999 from devel:languages:python
- Remove BuildRequires on chainmap, it's a builtin now.

OBS-URL: https://build.opensuse.org/request/show/951999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=7
2022-02-07 22:38:01 +00:00
32c05ee9a9 - Remove BuildRequires on chainmap, it's a builtin now.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=12
2022-02-07 03:38:39 +00:00
e06f9285b1 Accepting request 932352 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/932352
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=6
2021-11-20 01:39:02 +00:00
90a3701196 Accepting request 932343 from home:mnhauke:network:automation
- Update to version 3.2.0
  * Ignore character decoding errors

OBS-URL: https://build.opensuse.org/request/show/932343
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=11
2021-11-18 21:15:23 +00:00
1fa8196598 Accepting request 857037 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/857037
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=5
2020-12-21 09:23:55 +00:00
d05ea99e30 Accepting request 856928 from home:mnhauke:network:automation
- Update to version 3.1.0
  * Add In operator

OBS-URL: https://build.opensuse.org/request/show/856928
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=9
2020-12-19 20:55:24 +00:00
84cfc6b476 Accepting request 822013 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/822013
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=4
2020-07-21 13:49:00 +00:00
Tomáš Chvátal
c4b829e1a2 Accepting request 821985 from home:mnhauke:network:automation
- Update to version 3.0.2
  * Fix generator yielding

OBS-URL: https://build.opensuse.org/request/show/821985
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=7
2020-07-21 07:09:31 +00:00
4282e2b421 Accepting request 795930 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/795930
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=3
2020-04-21 11:13:03 +00:00
Tomáš Chvátal
81f629218e Accepting request 795890 from home:mnhauke:network:automation
- Update to version 3.0.1
  * Add typing annotations

OBS-URL: https://build.opensuse.org/request/show/795890
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=5
2020-04-21 05:51:04 +00:00
dfd006cab1 Accepting request 746479 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/746479
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=2
2019-11-08 14:27:18 +00:00
Tomáš Chvátal
9d62b4f16f Accepting request 746393 from home:mnhauke:network:automation
- Update to version 3.0.0
  * Introduce query support.
  * Path object for easy query and common operations.
  * yield each item instead of returning tuple of items. Greatly
    reduces memory usage.
  * Drop pre python 3.6 support.
  * Replace pylava with pylint.
  * Add yapf formatter.
  * Replace py.path with builtin pathlib.
  * connect() accepts only one login_method parameter.
  * Drop socker exceptions wrapping.
  * Remove ConnectionError exception.
  * Renamed LibError to LibRouterosError.
  * Changed exceptions inheritance.
  * Removed joinPath()
- Do not longer build against python2 (upstream dropped support)

OBS-URL: https://build.opensuse.org/request/show/746393
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=3
2019-11-08 06:35:59 +00:00
7880da50fc Accepting request 738169 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/738169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-librouteros?expand=0&rev=1
2019-10-28 15:55:18 +00:00
Tomáš Chvátal
6bcb97deee Accepting request 737644 from home:mnhauke:network:automation
Initial package for python-librouteros

OBS-URL: https://build.opensuse.org/request/show/737644
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-librouteros?expand=0&rev=1
2019-10-14 06:42:55 +00:00
5 changed files with 25 additions and 113 deletions

View File

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

3
librouteros-3.4.1.tar.gz Normal file
View File

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

View File

@@ -1,106 +0,0 @@
From a9349dfdc1d8e7a915567766e0d18b07544323dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Kostka?= <lukasz.g.kostka@gmail.com>
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', (

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu Nov 27 11:06:31 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <steven.kowalik@suse.com>

View File

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