Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pynxos for openSUSE:Factory checked in at 2023-09-22 21:49:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pynxos (Old) and /work/SRC/openSUSE:Factory/.python-pynxos.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pynxos" Fri Sep 22 21:49:31 2023 rev:2 rq:1112916 version:0.0.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pynxos/python-pynxos.changes 2019-10-28 16:59:06.661667350 +0100 +++ /work/SRC/openSUSE:Factory/.python-pynxos.new.1770/python-pynxos.changes 2023-09-22 21:49:58.470437323 +0200 @@ -1,0 +2,8 @@ +Fri Sep 22 04:05:14 UTC 2023 - Steve Kowalik <[email protected]> + +- Add patch remove-future-requirement.patch, remove requirement on future + module +- Switch to pyproject and autosetup macros +- Stop using greedy globs in %files + +------------------------------------------------------------------- New: ---- remove-future-requirement.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pynxos.spec ++++++ --- /var/tmp/diff_new_pack.eSaWfT/_old 2023-09-22 21:49:59.670480889 +0200 +++ /var/tmp/diff_new_pack.eSaWfT/_new 2023-09-22 21:49:59.670480889 +0200 @@ -1,6 +1,7 @@ # # spec file for package python-pynxos # +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2017-2019, Martin Hauke <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -16,25 +17,23 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pynxos Version: 0.0.5 Release: 0 Summary: A library for managing Cisco NX-OS devices through NX-API License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/networktocode/pynxos/ Source: pynxos-%{version}.tar.xz +Patch0: 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-requests Requires: python-scp BuildArch: noarch # SECTION test requirements -#BuildRequires: %%{python_module future} -#BuildRequires: %%{python_module mock} #BuildRequires: %%{python_module pytest} #BuildRequires: %%{python_module requests} #BuildRequires: %%{python_module scp} @@ -45,22 +44,22 @@ A library for managing Cisco NX-OS devices through NX-API %prep -%setup -q -n pynxos-%{version} +%autosetup -p1 -n pynxos-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # Tests are known to be broken - disable for now #%%pytest - %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/pynxos +%{python_sitelib}/pynxos-%{version}.dist-info ++++++ remove-future-requirement.patch ++++++ Index: pynxos-0.0.5/setup.py =================================================================== --- pynxos-0.0.5.orig/setup.py +++ pynxos-0.0.5/setup.py @@ -8,5 +8,5 @@ setup(name='pynxos', author_email='[email protected]', url='https://github.com/networktocode/pynxos/', license='Apache', - install_requires=['requests>=2.7.0', 'future', 'scp'] + install_requires=['requests>=2.7.0', 'scp'] )
