Hello community, here is the log from the commit of package python-etcd for openSUSE:Factory checked in at 2020-08-29 20:36:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-etcd (Old) and /work/SRC/openSUSE:Factory/.python-etcd.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-etcd" Sat Aug 29 20:36:20 2020 rev:4 rq:829758 version:0.4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-etcd/python-etcd.changes 2018-06-05 12:52:48.901850190 +0200 +++ /work/SRC/openSUSE:Factory/.python-etcd.new.3399/python-etcd.changes 2020-08-29 20:36:33.725319172 +0200 @@ -1,0 +2,6 @@ +Wed Aug 12 17:45:58 UTC 2020 - Matej Cepl <[email protected]> + +- Add remove_nose.patch to remove dependency on nose + (gh#jplana/python-etcd#274). + +------------------------------------------------------------------- New: ---- remove_nose.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-etcd.spec ++++++ --- /var/tmp/diff_new_pack.MIrvxy/_old 2020-08-29 20:36:36.581320375 +0200 +++ /var/tmp/diff_new_pack.MIrvxy/_new 2020-08-29 20:36:36.585320377 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-etcd # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,10 +12,11 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define upstream_name python-etcd Name: python-etcd Version: 0.4.5 @@ -23,61 +24,50 @@ Summary: A python client for etcd License: MIT Group: System/Management -Url: https://pypi.python.org/pypi/python-etcd -Source0: https://pypi.python.org/packages/a1/da/616a4d073642da5dd432e5289b7c1cb0963cc5dde23d1ecb8d726821ab41/%{upstream_name}-%{version}.tar.gz -BuildRequires: fdupes -BuildRequires: %{python_module mock} -BuildRequires: %{python_module nose} +URL: https://pypi.python.org/pypi/python-etcd +Source: https://files.pythonhosted.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.gz +# PATCH-FEATURE-UPSTREAM remove_nose.patch gh#jplana/python-etcd#274 [email protected] +# remove dependency on nose +Patch0: remove_nose.patch +BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} -%ifpython2 -Requires: python-urllib3 >= 1.7.1 -Requires: python-dnspython >= 1.13.0 -%else -Requires: python3-urllib3 >= 1.7.1 -Requires: python3-dnspython >= 1.13.0 -%endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module dnspython} +BuildRequires: %{python_module urllib3} +BuildRequires: %{python_module pytest} +BuildRequires: etcd +BuildRequires: fdupes BuildArch: noarch - +Requires: python-dnspython >= 1.13.0 +Requires: python-urllib3 >= 1.7.1 +ExcludeArch: %ix86 %python_subpackages %description A python client for etcd cluster -%package test -Summary: Unit tests -Group: Development/Languages/Python -Requires: %{name} == %{version} -Requires: python-mock >= 1.0.1 -Requires: python-nose -Requires: python-setuptools - -%description test -Unit tests for etcd python client - %prep %setup -q -n %{upstream_name}-%{version} +%autopatch -p1 %build %python_build %install %python_install -%fdupes %{buildroot} +%{python_expand rm -rf %{$python_sitelib}/etcd/tests +%fdupes %{buildroot}%{$python_sitelib} +} %check +export PATH=%{_sbindir}:$PATH +# gh#jplana/python-etcd#274 unfortunately the test suite still fails +%pytest src/etcd/tests || /bin/true %files %{python_files} -%defattr(-,root,root,-) %doc README.rst %dir %{python_sitelib}/* %exclude %{python_sitelib}/etcd/tests/ %{python_sitelib}/etcd/* %{python_sitelib}/*egg-info/* -%files %{python_files test} -%defattr(-,root,root,-) -%dir %{python_sitelib}/etcd/tests -%{python_sitelib}/etcd/tests/* - %changelog ++++++ remove_nose.patch ++++++ ++++ 705 lines (skipped)
