Hello community, here is the log from the commit of package python-docker-py for openSUSE:Factory checked in at 2017-09-05 15:14:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-docker-py (Old) and /work/SRC/openSUSE:Factory/.python-docker-py.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-docker-py" Tue Sep 5 15:14:28 2017 rev:14 rq:515785 version:1.10.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-docker-py/python-docker-py.changes 2017-06-16 10:54:23.794766033 +0200 +++ /work/SRC/openSUSE:Factory/.python-docker-py.new/python-docker-py.changes 2017-09-05 15:14:28.559513605 +0200 @@ -1,0 +2,9 @@ +Thu Aug 3 16:53:55 UTC 2017 - toddrme2178@gmail.com + +- Implement singlespec version +- Fix source URL +- Merge tests into main package. +- Remove hide_py_pckgmgmt.patch + Tests aren't being implemented that way + +------------------------------------------------------------------- Old: ---- hide_py_pckgmgmt.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-docker-py.spec ++++++ --- /var/tmp/diff_new_pack.gw7oBz/_old 2017-09-05 15:14:29.199423657 +0200 +++ /var/tmp/diff_new_pack.gw7oBz/_new 2017-09-05 15:14:29.203423095 +0200 @@ -16,81 +16,89 @@ # -%define upstream_name docker-py +%bcond_with test + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-docker-py Version: 1.10.6 Release: 0 Summary: Docker API Client License: Apache-2.0 Group: System/Management -Url: https://pypi.python.org/pypi/docker-py -Source0: https://files.pythonhosted.org/packages/source/d/%{upstream_name}/%{upstream_name}-%{version}.tar.gz - -# openSUSE-Patch hide_py_pckgmgmt.patch -Patch0: hide_py_pckgmgmt.patch +Url: https://github.com/docker/docker-py/ +Source0: https://files.pythonhosted.org/packages/source/d/docker-py/docker-py-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six >= 1.4.0} +BuildRequires: %{python_module docker-pycreds >= 0.2.1} +BuildRequires: %{python_module requests >= 2.5.3} +BuildRequires: %{python_module websocket-client >= 0.32.0} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# Python2-only +BuildRequires: python-ipaddress >= 1.0.16 +BuildRequires: python-backports.ssl_match_hostname >= 3.5 +%if %{with test} +BuildRequires: busybox +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-cov} +%endif Requires: python-backports.ssl_match_hostname >= 3.5 Requires: python-docker-pycreds >= 0.2.1 -Requires: python-ipaddress >= 1.0.16 Requires: python-requests >= 2.5.3 Requires: python-six >= 1.4.0 Requires: python-websocket-client >= 0.32.0 -BuildRequires: fdupes -BuildRequires: python-mock -BuildRequires: python-pytest -BuildRequires: python-pytest-cov -BuildRequires: python-requests -BuildRequires: python-setuptools -BuildRequires: python-six -BuildRequires: python-websocket-client -BuildRoot: %{_tmppath}/%{name}-%{version}-build - -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch +%ifpython2 +Requires: python-ipaddress >= 1.0.16 +Requires: python-backports.ssl_match_hostname >= 3.5 +Provides: %{oldpython}-docker-py-test = %{version} +Obsoletes: %{oldpython}-docker-py-test < %{version} %endif +%ifpython3 +Provides: python3-docker-py-test = %{version} +Obsoletes: python3-docker-py-test < %{version} +%if %{python3_version_nodots} < 35 +BuildRequires: python3-backports.ssl_match_hostname >= 3.5 +Requires: python3-backports.ssl_match_hostname >= 3.5 +%endif +%endif +BuildArch: noarch -%description -A docker API client in Python - -%package test -Summary: Unit tests -Group: Development/Languages/Python -Requires: %{name} == %{version} -Requires: python-mock >= 1.0.1 -Requires: python-pytest >= 2.7.2 -Requires: python-pytest-cov >= 2.1.0 -Requires: python-setuptools +%python_subpackages -%description test -Unit tests for docker-py +%description +A docker API client in Python. %prep -%setup -q -n %{upstream_name}-%{version} -%patch0 -p1 +%setup -q -n docker-py-%{version} %build -python setup.py build +export LANG=en_US.UTF-8 +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -cp -r tests %{buildroot}/%{python_sitelib}/docker -%fdupes %{buildroot} +export LANG=en_US.UTF-8 +%python_install +%{python_expand cp -r tests %{buildroot}/%{$python_sitelib}/docker/ + $python -m compileall -d %{$python_sitelib} %{buildroot}/%{$python_sitelib}/docker/tests/ + $python -O -m compileall -d %{$python_sitelib} %{buildroot}/%{$python_sitelib}/docker/tests/ + %fdupes %{buildroot}/%{$python_sitelib}/ + } +%if %{with test} %check -#python tests/test.py +export LANG=en_US.UTF-8 +%{python_expand +py.test-%{$python_bin_suffix} tests/unit/ +} +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.md %dir %{python_sitelib}/* -%exclude %{python_sitelib}/docker/tests/ -%{python_sitelib}/docker/* +%{python_sitelib}/docker/ %{python_sitelib}/*egg-info/* -%files test -%defattr(-,root,root,-) -%dir %{python_sitelib}/docker/tests -%{python_sitelib}/docker/tests/* - %changelog