Hello community,

here is the log from the commit of package python-autopep8 for openSUSE:Factory 
checked in at 2017-08-10 14:05:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-autopep8 (Old)
 and      /work/SRC/openSUSE:Factory/.python-autopep8.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-autopep8"

Thu Aug 10 14:05:21 2017 rev:8 rq:514574 version:1.3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-autopep8/python-autopep8.changes  
2015-04-23 08:04:23.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-autopep8.new/python-autopep8.changes     
2017-08-10 14:13:05.628084589 +0200
@@ -1,0 +2,9 @@
+Fri Aug  4 15:19:55 UTC 2017 - jmate...@suse.com
+
+- convert to singlespec (this incidentally fixes bsc#1047622 which
+  affected the now dropped python3-autopep8)
+- update requirement name from pep8 to pycodestyle
+- update to 1.3.2
+  * upstream provides no changelog
+
+-------------------------------------------------------------------

Old:
----
  autopep8-1.1.1.tar.gz

New:
----
  autopep8-1.3.2.tar.gz

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

Other differences:
------------------
++++++ python-autopep8.spec ++++++
--- /var/tmp/diff_new_pack.Dh6I4i/_old  2017-08-10 14:13:06.311988295 +0200
+++ /var/tmp/diff_new_pack.Dh6I4i/_new  2017-08-10 14:13:06.315987732 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-autopep8
 #
-# Copyright (c) 2015 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,27 +16,26 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-autopep8
-Version:        1.1.1
+Version:        1.3.2
 Release:        0
-Url:            https://github.com/hhatto/autopep8
 Summary:        Automatic generated to pep8 checked code
 License:        MIT
 Group:          Development/Languages/Python
-Source:         
http://pypi.python.org/packages/source/a/autopep8/autopep8-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+Url:            https://github.com/hhatto/autopep8
+Source:         
https://files.pythonhosted.org/packages/source/a/autopep8/autopep8-%{version}.tar.gz
 # Test requirements:
-BuildRequires:  python-pep8
-Requires:       python-pep8
+BuildRequires:  %{python_module pycodestyle >= 2.3}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
+Requires:       python-pycodestyle
+Requires:       python-setuptools
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
-%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
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 Autopep8 is automatic generated to pep8 checked code.
@@ -44,20 +43,19 @@
 
 %prep
 %setup -q -n autopep8-%{version}
-sed -i '1d' autopep8.py # Remove she-bang line
-sed -i "s/autopep8 =/autopep8-%{py_ver} =/" setup.py  # Add py_ver suffix to 
binary
+sed -i '1s/^#!.*//' autopep8.py # Remove she-bang line
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-ln -s %{_bindir}/autopep8-%{py_ver} %{buildroot}%{_bindir}/autopep8
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/autopep8
 
 %check
 # need to set locale to avoid UnicodeEncodeError
 export LANG="en_US.UTF-8"
-python setup.py test -q
+%python_exec setup.py test -q
 
 %pre
 # Since /usr/bin/autopep8 became ghosted to be used with update-alternatives, 
we have to get rid
@@ -65,22 +63,17 @@
 [ -h %{_bindir}/autopep8 ] || rm -f %{_bindir}/autopep8
 
 %post
-update-alternatives --install %{_bindir}/autopep8 autopep8 
%{_bindir}/autopep8-%{py_ver} 20
+%python_install_alternative autopep8
 
-%preun
-if [ $1 -eq 0 ] ; then
-    update-alternatives --remove autopep8 %{_bindir}/autopep8-%{py_ver}
-fi
+%postun
+%python_uninstall_alternative autopep8
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc README.rst
-%ghost %{_bindir}/autopep8
-%if 0%{?suse_version} >= 1230
-%ghost %{_sysconfdir}/alternatives/autopep8
-%endif
-%{_bindir}/autopep8-%{py_ver}
+%python_alternative %{_bindir}/autopep8
+%pycache_only %{python_sitelib}/__pycache__/*
 %{python_sitelib}/autopep8.py*
-%{python_sitelib}/autopep8-%{version}-py%{py_ver}.egg-info
+%{python_sitelib}/autopep8-%{version}-py%{python_version}.egg-info
 
 %changelog

++++++ autopep8-1.1.1.tar.gz -> autopep8-1.3.2.tar.gz ++++++
++++ 3462 lines of diff (skipped)


Reply via email to