1
0

12 Commits

Author SHA256 Message Date
4a074e60f0 Accepting request 1294927 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1294927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=27
2025-07-22 10:20:51 +00:00
286290c47e - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ncclient?expand=0&rev=25
2025-07-22 05:43:39 +00:00
87ed085c13 Accepting request 1269143 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1269143
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=26
2025-04-14 14:07:57 +00:00
e9e280b553 Enable sle15allpythons to also build for Python 3.11 on Leap
(needed as a dependency in a later SR)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ncclient?expand=0&rev=23
2025-04-14 07:50:37 +00:00
a53addc084 Accepting request 1249609 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1249609
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=25
2025-03-03 15:05:07 +00:00
a3cd5cf26a - Update to version 0.6.19
* fixed broken manifest.

- Update to version 0.6.18
  * Fix connect using ssh using keyfile without password.
- Update to version 0.6.17
  * Remove hardcoded values in example.
  * Use Paramiko's PKey class for loading public keys instead of
    instantiating key subclasses directly.
  * Remove Python2 support.
  * Only import UnixSocketSession if the platform is not Windows.
  * Remove setuptools from runtime requirements; list in build
    requirements.
  * Adding error handling parameters for RPC replies.
  * Drop the pytest-runner dependency.
  * Fix for broken iterator.
- Drop patch
  * python-ncclient-no-python2.patch (included upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ncclient?expand=0&rev=21
2025-03-03 07:32:44 +00:00
d8f8166b45 Accepting request 1238046 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1238046
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=24
2025-01-15 16:45:38 +00:00
8cbf2dd47a - do not require six for build
- added patches
  fix 59ccaac8e0
  + python-ncclient-no-python2.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ncclient?expand=0&rev=19
2025-01-15 12:49:55 +00:00
e500686921 Accepting request 1223349 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1223349
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=23
2024-11-11 13:58:22 +00:00
c21b42f528 - Update to version 0.6.16
* Add Ciena driver.
  * Update session.py.
  * call_home: timeout as argument.
  * Introduce Unix Socket Transport.
  * feat: Add support for Nokia SR OS private candidate mode.
  * Fix support of .ssh/id_ed25519 keys.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ncclient?expand=0&rev=17
2024-11-11 11:38:39 +00:00
fb8d5c7a87 Accepting request 1218489 from devel:languages:python
- Add intersphinx-mapping.patch to allow working with Sphinx >=
  8.* (gh#ncclient/ncclient#604).

OBS-URL: https://build.opensuse.org/request/show/1218489
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=22
2024-10-27 10:25:53 +00:00
76dac892ab - Add intersphinx-mapping.patch to allow working with Sphinx >=
8.* (gh#ncclient/ncclient#604).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ncclient?expand=0&rev=15
2024-10-25 22:38:18 +00:00
5 changed files with 104 additions and 16 deletions

25
intersphinx-mapping.patch Normal file
View File

@@ -0,0 +1,25 @@
---
docs/source/conf.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -12,6 +12,7 @@
# serve to show the default.
import sys, os
+import sphinx
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -196,6 +197,9 @@ latex_logo = "_static/logo.png"
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
+if sphinx.version_info[0] < 8:
+ intersphinx_mapping = {"http://docs.python.org/": None}
+else:
+ intersphinx_mapping = {'python': ('https://docs.python.org/', None)}
autoclass_content = 'both'

View File

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

3
ncclient-0.6.19.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,63 @@
-------------------------------------------------------------------
Tue Jul 22 05:43:18 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Thu Apr 10 14:09:27 UTC 2025 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- Enable sle15allpythons to also build for Python 3.11 on Leap
-------------------------------------------------------------------
Sun Mar 2 22:26:20 UTC 2025 - Martin Hauke <mardnh@gmx.de>
- Update to version 0.6.19
* fixed broken manifest.
-------------------------------------------------------------------
Sat Mar 1 16:26:35 UTC 2025 - Martin Hauke <mardnh@gmx.de>
- Update to version 0.6.18
* Fix connect using ssh using keyfile without password.
- Update to version 0.6.17
* Remove hardcoded values in example.
* Use Paramiko's PKey class for loading public keys instead of
instantiating key subclasses directly.
* Remove Python2 support.
* Only import UnixSocketSession if the platform is not Windows.
* Remove setuptools from runtime requirements; list in build
requirements.
* Adding error handling parameters for RPC replies.
* Drop the pytest-runner dependency.
* Fix for broken iterator.
- Drop patch
* python-ncclient-no-python2.patch (included upstream)
-------------------------------------------------------------------
Tue Jan 14 14:54:22 UTC 2025 - pgajdos@suse.com
- do not require six for build
- added patches
fix https://github.com/ncclient/ncclient/commit/59ccaac8e01e63f776fb4bf3b68a02e33d24bb20
+ python-ncclient-no-python2.patch
-------------------------------------------------------------------
Sun Nov 10 19:50:09 UTC 2024 - Martin Hauke <mardnh@gmx.de>
- Update to version 0.6.16
* Add Ciena driver.
* Update session.py.
* call_home: timeout as argument.
* Introduce Unix Socket Transport.
* feat: Add support for Nokia SR OS private candidate mode.
* Fix support of .ssh/id_ed25519 keys.
-------------------------------------------------------------------
Fri Oct 25 22:17:02 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Add intersphinx-mapping.patch to allow working with Sphinx >=
8.* (gh#ncclient/ncclient#604).
-------------------------------------------------------------------
Wed Feb 28 04:55:02 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-ncclient
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,9 @@
#
%{?sle15allpythons}
Name: python-ncclient
Version: 0.6.15
Version: 0.6.19
Release: 0
Summary: Python library for NETCONF clients
License: Apache-2.0
@@ -26,18 +27,20 @@ Source: https://github.com/ncclient/ncclient/archive/v%{version}.tar.gz#
# PATCH-FIX-OPENSUSE allow_old_sphinx.patch mcepl@suse.com
# Allow build with old Sphinx (< 2.0) on Leap
Patch0: allow_old_sphinx.patch
# PATCH-FIX-UPSTREAM intersphinx-mapping.patch gh#ncclient/ncclient#604 mcepl@suse.com
# use conditionally new form of intersphinx_mapping
Patch1: intersphinx-mapping.patch
BuildRequires: %{python_module lxml >= 3.3.0}
BuildRequires: %{python_module paramiko >= 1.15.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lxml >= 3.3.0
Requires: python-paramiko >= 1.15.0
Requires: python-setuptools > 0.6
Requires: python-six
BuildArch: noarch
BuildRequires: %{python_module lxml >= 3.3.0}
BuildRequires: %{python_module paramiko >= 1.15.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
%python_subpackages
%description
@@ -58,20 +61,20 @@ This package contains documentation files for %{name}.
%prep
%setup -q -n ncclient-%{version}
%if 0%{?suse_version} < 1550
%patch -P 0 -p 1
%patch -p 1 -P 0
%endif
%patch -p 1 -P 1
find examples/ -name "*.py" -exec sed -i 's|#!/usr/bin/env python$|#!/usr/bin/python|g' {} \;
# drop shebang
find ncclient/operations/third_party/ -name "*.py" -exec sed -i '/^#!\//, 1d' {} \;
%build
%python_build
%pyproject_wheel
cd docs && make %{?_smp_mflags} html && rm build/html/.buildinfo
%install
%python_install
%python_expand rm -rf %{buildroot}%{$python_sitelib}/test
%pyproject_install
%fdupes %{buildroot}
%check
@@ -80,7 +83,7 @@ cd docs && make %{?_smp_mflags} html && rm build/html/.buildinfo
%files %{python_files}
%license LICENSE
%{python_sitelib}/ncclient
%{python_sitelib}/ncclient-%{version}*-info
%{python_sitelib}/ncclient-%{version}.dist-info
%files -n python-ncclient-doc
%doc README.md README.rst examples docs/build/html