Hello community,

here is the log from the commit of package python-packaging for 
openSUSE:Factory checked in at 2017-02-27 18:30:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-packaging (Old)
 and      /work/SRC/openSUSE:Factory/.python-packaging.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-packaging"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-packaging/python-packaging.changes        
2016-12-10 18:27:49.349365697 +0100
+++ /work/SRC/openSUSE:Factory/.python-packaging.new/python-packaging.changes   
2017-02-27 18:30:47.282327701 +0100
@@ -1,0 +2,9 @@
+Thu Feb 23 11:45:52 UTC 2017 - [email protected]
+
+- update for single-spec
+- drop setuptools dependency, as this is itself now a dependency
+  of setuptools
+- run tests conditionally, to minimize dependency tree
+- ensure egg-info is a directory (distutils would install it as file)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-packaging.spec ++++++
--- /var/tmp/diff_new_pack.CAkQKt/_old  2017-02-27 18:30:47.810253318 +0100
+++ /var/tmp/diff_new_pack.CAkQKt/_new  2017-02-27 18:30:47.814252755 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-packaging
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,9 @@
 #
 
 
+%bcond_with test
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-packaging
 Version:        16.8
 Release:        0
@@ -24,20 +27,23 @@
 Group:          Development/Languages/Python
 Url:            https://github.com/pypa/packaging
 Source:         
https://pypi.io/packages/source/p/packaging/packaging-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-pretend
-BuildRequires:  python-pyparsing
-BuildRequires:  python-pytest
-BuildRequires:  python-setuptools
-BuildRequires:  python-six
+BuildRequires:  %{python_module base}
+BuildRequires:  %{python_module pyparsing}
+BuildRequires:  %{python_module six}
+BuildRequires:  python-rpm-macros
+# do not add setuptools dependency, this is now a dependency
+# of setuptools. Ensure that all dependencies also don't depend
+# on setuptools
+# (at the moment, six and pyparsing are ok)
+%if %{with test}
+BuildRequires:  %{python_module pretend}
+BuildRequires:  %{python_module pytest}
+%endif
 Requires:       python-pyparsing
 Requires:       python-six
 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
-%endif
+%python_subpackages
 
 %description
 Core utilities for Python packages
@@ -46,17 +52,24 @@
 %setup -q -n packaging-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+# ensure egg-info is a directory
+%{python_expand rm %{buildroot}%{$python_sitelib}/*.egg-info
+cp -r packaging.egg-info 
%{buildroot}%{$python_sitelib}/packaging-%{version}-py%{$python_version}.egg-info
+}
 
+%if %{with test}
 %check
-py.test
+%python_exec %{_bindir}/py.test
+%endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc CHANGELOG.rst LICENSE README.rst
-%{python_sitelib}/*
+%{python_sitelib}/packaging
+%{python_sitelib}/packaging-%{version}-py*.egg-info/
 
 %changelog


Reply via email to