Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-nxapi-plumbing for
openSUSE:Factory checked in at 2023-09-06 18:56:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nxapi-plumbing (Old)
and /work/SRC/openSUSE:Factory/.python-nxapi-plumbing.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nxapi-plumbing"
Wed Sep 6 18:56:52 2023 rev:2 rq:1108985 version:0.5.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-nxapi-plumbing/python-nxapi-plumbing.changes
2019-10-28 16:46:58.608747466 +0100
+++
/work/SRC/openSUSE:Factory/.python-nxapi-plumbing.new.1766/python-nxapi-plumbing.changes
2023-09-06 18:58:37.752491107 +0200
@@ -1,0 +2,7 @@
+Tue Sep 5 06:44:12 UTC 2023 - Steve Kowalik <[email protected]>
+
+- Add patch remove-future-requirement.patch, drops requirement on future.
+- Switch to pyproject and autosetup macro.
+- Stop using greedy globs in %files.
+
+-------------------------------------------------------------------
New:
----
remove-future-requirement.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-nxapi-plumbing.spec ++++++
--- /var/tmp/diff_new_pack.IHJ0mF/_old 2023-09-06 18:58:38.808528752 +0200
+++ /var/tmp/diff_new_pack.IHJ0mF/_new 2023-09-06 18:58:38.816529038 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-nxapi-plumbing
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-nxapi-plumbing
Version: 0.5.2
Release: 0
@@ -25,10 +24,12 @@
URL: https://github.com/ktbyers/nxapi-plumbing
Source:
https://github.com/ktbyers/nxapi-plumbing/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: python-nxapi-plumbing-fix-broken-test.patch
+Patch1: remove-future-requirement.patch
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-future
Requires: python-lxml
Requires: python-requests >= 2.7.0
Requires: python-scp
@@ -36,7 +37,6 @@
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
-BuildRequires: %{python_module future}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.7.0}
@@ -49,15 +49,14 @@
A low-level library for managing Cisco devices through NX-API using JSON-RPC
and XML.
%prep
-%setup -q -n nxapi-plumbing-%{version}
-%patch0 -p1
+%autosetup -p1 -n nxapi-plumbing-%{version}
sed -i 's/\r$//' README.md
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -66,6 +65,7 @@
%files %{python_files}
%license LICENSE
%doc README.md
-%{python_sitelib}/*
+%{python_sitelib}/nxapi_plumbing
+%{python_sitelib}/nxapi_plumbing-%{version}.dist-info
%changelog
++++++ remove-future-requirement.patch ++++++
Index: nxapi-plumbing-0.5.2/setup.py
===================================================================
--- nxapi-plumbing-0.5.2.orig/setup.py
+++ nxapi-plumbing-0.5.2/setup.py
@@ -4,7 +4,7 @@ import os
import re
-requirements = ["requests>=2.7.0", "lxml", "future", "scp", "six"]
+requirements = ["requests>=2.7.0", "lxml", "scp", "six"]
with open("README.md", "r") as fs:
long_description = fs.read()