Hello community,
here is the log from the commit of package python-docker-pycreds for
openSUSE:Factory checked in at 2017-08-16 16:11:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-docker-pycreds (Old)
and /work/SRC/openSUSE:Factory/.python-docker-pycreds.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-docker-pycreds"
Wed Aug 16 16:11:59 2017 rev:4 rq:514268 version:0.2.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-docker-pycreds/python-docker-pycreds.changes
2017-03-03 17:45:00.321141746 +0100
+++
/work/SRC/openSUSE:Factory/.python-docker-pycreds.new/python-docker-pycreds.changes
2017-08-16 16:12:02.175510991 +0200
@@ -1,0 +2,8 @@
+Thu Aug 3 17:05:36 UTC 2017 - [email protected]
+
+- Implement single-spec version
+- Remove fix-requirements.patch
+ This is only needed for setup.py test, which doesn't actually
+ run the tests anyway so isn't used.
+
+-------------------------------------------------------------------
Old:
----
fix-requirements.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-docker-pycreds.spec ++++++
--- /var/tmp/diff_new_pack.8KTlU8/_old 2017-08-16 16:12:03.343347063 +0200
+++ /var/tmp/diff_new_pack.8KTlU8/_new 2017-08-16 16:12:03.351345941 +0200
@@ -15,7 +15,9 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
+%bcond_with test
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-docker-pycreds
Version: 0.2.1
Release: 0
@@ -23,34 +25,41 @@
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/shin-/dockerpy-creds
-Source:
https://pypi.io/packages/source/d/docker-pycreds/docker-pycreds-%{version}.tar.gz
-Patch0: fix-requirements.patch
-BuildRequires: python-devel
-BuildRequires: python-pytest
-BuildRequires: python-pytest-cov
-BuildRequires: python-setuptools
-BuildRequires: python-six
+Source:
https://files.pythonhosted.org/packages/source/d/docker-pycreds/docker-pycreds-%{version}.tar.gz
+BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module six}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
+%if %{with test}
+BuildRequires: %{python_module pytest}
+%endif
+Requires: python-six
+Recommends: docker-credential-secretservice
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
+%python_subpackages
+
%description
This package contains the Python bindings for the Docker credentials
store API.
%prep
%setup -q -n docker-pycreds-%{version}
-%patch0 -p1
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}/%{$python_sitelib}/
+%if %{with test}
%check
-python setup.py test
+%python_expand py.test-%{$python_bin_suffix} .
+%endif
-%files
+%files %{python_files}
%defattr(-,root,root,-)
%doc README.md LICENSE
%{python_sitelib}/*