diff --git a/ncclient-0.6.4.tar.gz b/ncclient-0.6.4.tar.gz deleted file mode 100644 index cb48527..0000000 --- a/ncclient-0.6.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:47d5af7398f16d609eebd02be2ecbd997b364032b5dc6d4927c810ea24f39080 -size 88691 diff --git a/ncclient-0.6.6.tar.gz b/ncclient-0.6.6.tar.gz new file mode 100644 index 0000000..a655983 --- /dev/null +++ b/ncclient-0.6.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2392c25df3a6c41cea0c51316607b61ce2fb1d5a00d798631ce0bd63cce8649 +size 107483 diff --git a/python-ncclient.changes b/python-ncclient.changes index de074f1..3c36aea 100644 --- a/python-ncclient.changes +++ b/python-ncclient.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Wed Dec 4 21:46:22 UTC 2019 - Martin Hauke + +- Update to version 0.6.6: + * Read ssh timeout from config file if not specified in method + call + * Tox support + * Huge XML tree parser support + * Adding optional bind address to connect +- Update to version 0.6.5 + * Pin selectors2 to Python versions <= 3.4 + * Fix config examples to actually use the nc namespace + * fix: correctly set port for paramiko when using ssh_config file + * test: add test to check ProxyCommand uses correct port + * Update commits for py3 + * Enhance Alcatel-Lucent -support + * Juniper RPC: allow specifying format in CompareConfiguration + * Parsing of NETCONF 1.1 frames no longer decodes each chunk of + bytes... + * Fix filter in create_subscription + * Validate 'with-defaults' mode based on supported modes + advertised in capability URI +- Remove patch: + * sphinx-use-imgmath-extension.patch (fixed by upstream) +- Use tarball from github +- Run testsuite +- Drop not needed dependencies +- Minor fixes to make the rpm post-build-checks happy + ------------------------------------------------------------------- Wed Apr 10 06:59:10 UTC 2019 - Dirk Mueller diff --git a/python-ncclient.spec b/python-ncclient.spec index 11371da..f812b99 100644 --- a/python-ncclient.spec +++ b/python-ncclient.spec @@ -17,17 +17,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-ncclient -Version: 0.6.4 +Version: 0.6.6 Release: 0 Summary: Python library for NETCONF clients License: Apache-2.0 Group: Development/Languages/Python Url: http://ncclient.org -Source: https://files.pythonhosted.org/packages/source/n/ncclient/ncclient-%{version}.tar.gz -Patch0: sphinx-use-imgmath-extension.patch -BuildRequires: %{python_module devel} +Source: https://github.com/ncclient/ncclient/archive/v%{version}.tar.gz#/ncclient-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -39,12 +36,13 @@ Requires: python-selectors2 >= 2.0.1 Requires: python-setuptools > 0.6 Requires: python-six BuildArch: noarch -%if %{with test} BuildRequires: %{python_module lxml >= 3.3.0} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module nose} BuildRequires: %{python_module paramiko >= 1.15.0} -BuildRequires: %{python_module setuptools > 0.6} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module selectors2} BuildRequires: %{python_module six} -%endif %python_subpackages %description @@ -64,7 +62,9 @@ This package contains documentation files for %{name}. %prep %setup -q -n ncclient-%{version} -%patch0 +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 @@ -74,6 +74,9 @@ cd docs && make %{?_smp_mflags} html && rm build/html/.buildinfo %python_install %fdupes %{buildroot} +%check +%pytest + %files %{python_files} %license LICENSE %{python_sitelib}/* diff --git a/sphinx-use-imgmath-extension.patch b/sphinx-use-imgmath-extension.patch deleted file mode 100644 index dabad7d..0000000 --- a/sphinx-use-imgmath-extension.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- docs/source/conf.py -+++ docs/source/conf.py -@@ -22,7 +22,7 @@ - - # Add any Sphinx extension module names here, as strings. They can be extensions - # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. --extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig'] -+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.imgmath', 'sphinx.ext.ifconfig'] - - # Add any paths that contain templates here, relative to this directory. - templates_path = ['_templates']