Hello community, here is the log from the commit of package python-py2pack for openSUSE:Factory checked in at 2017-03-03 17:54:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-py2pack (Old) and /work/SRC/openSUSE:Factory/.python-py2pack.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-py2pack" Fri Mar 3 17:54:24 2017 rev:38 rq:461852 version:0.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-py2pack/python-py2pack.changes 2017-02-24 02:54:48.429130732 +0100 +++ /work/SRC/openSUSE:Factory/.python-py2pack.new/python-py2pack.changes 2017-03-03 17:54:25.329330846 +0100 @@ -1,0 +2,12 @@ +Thu Mar 2 09:25:21 UTC 2017 - [email protected] + +- update to 0.8.0: + * Ignore the required python version for now + * Add build condition for tests in opensuse template + * Install setup_requires as BuildRequires during build + * Update opensuse template for singlespec approach + * Remove useless '(' and ')' replacements from opensuse template + * travis: Update credential to deploy on pypi +- Remove manpage for now. Build is broken. + +------------------------------------------------------------------- Old: ---- py2pack-0.7.0.tar.gz New: ---- py2pack-0.8.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-py2pack.spec ++++++ --- /var/tmp/diff_new_pack.UKnonr/_old 2017-03-03 17:54:26.237202612 +0100 +++ /var/tmp/diff_new_pack.UKnonr/_new 2017-03-03 17:54:26.241202048 +0100 @@ -17,7 +17,7 @@ Name: python-py2pack -Version: 0.7.0 +Version: 0.8.0 Release: 0 Url: http://github.com/saschpe/py2pack Summary: Generate distribution packages from Python packages on PyPI @@ -28,6 +28,7 @@ BuildRequires: python-Jinja2 BuildRequires: python-Sphinx BuildRequires: python-devel +BuildRequires: python-metaextract BuildRequires: python-pbr BuildRequires: python-six BuildRequires: python-sphinxcontrib-programoutput @@ -57,11 +58,6 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -install -d %{buildroot}%{_mandir}/man1 - -mv doc/build/man/py2pack.1 %{buildroot}%{_mandir}/man1/py2pack-%{py_ver}.1 -ln -s -f %{_sysconfdir}/alternatives/py2pack.1.gz %{buildroot}%{_mandir}/man1/py2pack.1.gz - # Prepare for update-alternatives usage mkdir -p %{buildroot}%{_sysconfdir}/alternatives mv %{buildroot}%{_bindir}/py2pack %{buildroot}%{_bindir}/py2pack-%{py_ver} @@ -73,8 +69,7 @@ %post %_sbindir/update-alternatives \ - --install %{_bindir}/py2pack py2pack %{_bindir}/py2pack-%{py_ver} 30 \ - --slave %{_mandir}/man1/py2pack.1.gz py2pack.1.gz %{_mandir}/man1/py2pack-%{py_ver}.1.gz + --install %{_bindir}/py2pack py2pack %{_bindir}/py2pack-%{py_ver} 30 %postun if [ $1 -eq 0 ] ; then @@ -86,8 +81,6 @@ %doc AUTHORS LICENSE README.rst doc/build/html %{_bindir}/py2pack %{_bindir}/py2pack-%{py_ver} -%{_mandir}/man1/py2pack.1.gz -%{_mandir}/man1/py2pack-%{py_ver}.1.gz %ghost %{_sysconfdir}/alternatives/py2pack %ghost %{_sysconfdir}/alternatives/py2pack.1.gz %{python_sitelib}/py2pack-%{version}-py*.egg-info ++++++ py2pack-0.7.0.tar.gz -> py2pack-0.8.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/.travis.yml new/py2pack-0.8.0/.travis.yml --- old/py2pack-0.7.0/.travis.yml 2017-02-14 12:45:00.000000000 +0100 +++ new/py2pack-0.8.0/.travis.yml 2017-02-19 07:01:27.000000000 +0100 @@ -18,7 +18,7 @@ provider: pypi user: suse password: - secure: LbQtZR8I7ZgQoiNoDhCiWVPI8Q8GVCrnXVBooNutHRZzOnFKew3g7DKCEQjKKZCUkrbcs55Jl1y0uVkL31HFdciAiYMV2ZS0To5ari5ZqqHF82OCFkqZKRe7APYCVgJ+wuhLfbBy6XWNU9aHD0TLMV5bz4kHXQJ3qfgUfMvNJJ4= + secure: FLx7KdGhYsPzXO9uLVBsP7DWFPhPzZTKEXaZ4SZv6PbV7xTXNi7w/EnlGcP4OcqSofQxgEfOSty8GZ3MWASdHuIYGSWj2l3jj7Acro12TcA/XozHCDDr2kOq8pAlnz7G9ehmwjP2MyzMxl0dTM6KfAlyswjmXhXt03HiMPH2Cmc= on: tags: true distributions: sdist bdist_wheel diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/ChangeLog new/py2pack-0.8.0/ChangeLog --- old/py2pack-0.7.0/ChangeLog 2017-02-14 12:45:07.000000000 +0100 +++ new/py2pack-0.8.0/ChangeLog 2017-03-02 10:24:28.000000000 +0100 @@ -1,6 +1,16 @@ CHANGES ======= +0.8.0 +----- + +* Ignore the required python version for now +* Add build condition for tests in opensuse template +* Install setup_requires as BuildRequires during build +* Update opensuse template for singlespec approach +* Remove useless '(' and ')' replacements from opensuse template +* travis: Update credential to deploy on pypi + 0.7.0 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/PKG-INFO new/py2pack-0.8.0/PKG-INFO --- old/py2pack-0.7.0/PKG-INFO 2017-02-14 12:45:08.000000000 +0100 +++ new/py2pack-0.8.0/PKG-INFO 2017-03-02 10:24:28.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: py2pack -Version: 0.7.0 +Version: 0.8.0 Summary: Generate distribution packages from PyPI Home-page: http://github.com/openSUSE/py2pack Author: Sascha Peilicke, Thomas Bechtold diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/py2pack/__init__.py new/py2pack-0.8.0/py2pack/__init__.py --- old/py2pack-0.7.0/py2pack/__init__.py 2017-02-14 12:28:08.000000000 +0100 +++ new/py2pack-0.8.0/py2pack/__init__.py 2017-02-28 20:03:03.000000000 +0100 @@ -94,6 +94,13 @@ def _canonicalize_setup_data(data): + if data.get('setup_requires', None): + # setup_requires may be a string, convert to list of strings: + if isinstance(data["setup_requires"], str): + data["setup_requires"] = data["setup_requires"].splitlines() + data["setup_requires"] = \ + py2pack.requires._requirements_sanitize(data["setup_requires"]) + if data.get('install_requires', None): # install_requires may be a string, convert to list of strings: if isinstance(data["install_requires"], str): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/py2pack/templates/opensuse-legacy.spec new/py2pack-0.8.0/py2pack/templates/opensuse-legacy.spec --- old/py2pack-0.7.0/py2pack/templates/opensuse-legacy.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/py2pack-0.8.0/py2pack/templates/opensuse-legacy.spec 2017-02-28 17:51:09.000000000 +0100 @@ -0,0 +1,110 @@ +# +# spec file for package python-{{ name }} +# +# Copyright (c) {{ year }} 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ + + +Name: python-{{ name }} +Version: {{ version }} +Release: 0 +License: {{ license }} +Summary: {{ summary_no_ending_dot|default(summary, true) }} +Url: {{ home_page }} +Group: Development/Languages/Python +Source: {{ source_url|replace(version, '%{version}') }} +BuildRequires: python-devel {%- if requires_python %} = {{ requires_python }} {% endif %} +BuildRequires: python-setuptools +{%- if install_requires and install_requires is not none %} +{%- for req in install_requires|sort %} +BuildRequires: python-{{ req }} +{%- endfor %} +{%- endif %} +{%- if tests_require and tests_require is not none %} +# test requirements +{%- for req in tests_require|sort %} +BuildRequires: python-{{ req }} +{%- endfor %} +{%- endif %} +{%- if source_url.endswith('.zip') %} +BuildRequires: unzip +{%- endif %} +{%- if install_requires and install_requires is not none %} +{%- for req in install_requires|sort %} +Requires: python-{{ req }} +{%- endfor %} +{%- endif %} +{%- if extras_require and extras_require is not none %} +{%- for reqlist in extras_require.values() %} +{%- for req in reqlist %} +Suggests: python-{{ req }} +{%- endfor %} +{%- endfor %} +{%- endif %} +BuildRoot: %{_tmppath}/%{name}-%{version}-build +{%- if not has_ext_modules %} +BuildArch: noarch +{%- endif %} + +%description +{{ description }} + +%prep +%setup -q -n {{ name }}-%{version} + +%build +{% if has_ext_modules %}CFLAGS="%{optflags}" {% endif %}python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +{%- if testsuite or test_suite %} +%check +python setup.py test +{%- endif %} + +%files +%defattr(-,root,root,-) +{%- if doc_files and doc_files is not none %} +%doc {{ doc_files|join(" ") }} +{%- endif %} +{%- if scripts and scripts is not none %} +{%- for script in scripts %} +%{_bindir}/{{ script|basename }} +{%- endfor %} +{%- endif %} +{%- if console_scripts and console_scripts is not none %} +{%- for script in console_scripts %} +%{_bindir}/{{ script }} +{%- endfor %} +{%- endif %} +{%- if has_ext_modules %} +%{python_sitearch}/* +{%- else %} +%{python_sitelib}/* +{%- endif %} +{%- if data_files and data_files is not none %} +{%- for dir, files in data_files %} +{%- set dir = dir | + replace('/usr/share/doc/'~name, '%doc %{_defaultdocdir}/%{name}', 1) | + replace('/usr/share/man/', '%doc %{_mandir}/', 1) | + replace('/usr/share/', '%{_datadir}/', 1) | + replace('/usr/', '%{_prefix}/', 1) %} +%dir {{ dir }} +{%- for file in files %} +{{ dir }}/{{file|basename }} +{%- endfor %} +{%- endfor %} +{%- endif %} + +%changelog diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/py2pack/templates/opensuse.spec new/py2pack-0.8.0/py2pack/templates/opensuse.spec --- old/py2pack-0.7.0/py2pack/templates/opensuse.spec 2017-01-09 12:10:48.000000000 +0100 +++ new/py2pack-0.8.0/py2pack/templates/opensuse.spec 2017-02-28 23:02:28.000000000 +0100 @@ -15,6 +15,8 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-{{ name }} Version: {{ version }} Release: 0 @@ -23,31 +25,42 @@ Url: {{ home_page }} Group: Development/Languages/Python Source: {{ source_url|replace(version, '%{version}') }} -BuildRequires: python-devel {%- if requires_python %} = {{ requires_python }} {% endif %} -BuildRequires: python-setuptools +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +{%- if setup_requires and setup_requires is not none %} +{%- for req in setup_requires|sort %} +BuildRequires: %{python_module {{ req }}} +{%- endfor %} +{%- endif %} {%- if install_requires and install_requires is not none %} +%if %{with test} {%- for req in install_requires|sort %} -BuildRequires: python-{{ req|replace('(','')|replace(')','') }} +BuildRequires: %{python_module {{ req }}} {%- endfor %} +%endif {%- endif %} {%- if tests_require and tests_require is not none %} -# test requirements +# SECTION test requirements +%if %{with test} {%- for req in tests_require|sort %} -BuildRequires: python-{{ req|replace('(','')|replace(')','') }} +BuildRequires: %{python_module {{ req }}} {%- endfor %} +%endif +# /SECTION {%- endif %} {%- if source_url.endswith('.zip') %} BuildRequires: unzip {%- endif %} {%- if install_requires and install_requires is not none %} {%- for req in install_requires|sort %} -Requires: python-{{ req|replace('(','')|replace(')','') }} +Requires: %{python_module {{ req }}} {%- endfor %} {%- endif %} {%- if extras_require and extras_require is not none %} {%- for reqlist in extras_require.values() %} {%- for req in reqlist %} -Suggests: python-{{ req|replace('(','')|replace(')','') }} +Suggests: %{python_module {{ req }}} {%- endfor %} {%- endfor %} {%- endif %} @@ -56,6 +69,8 @@ BuildArch: noarch {%- endif %} +%python_subpackages + %description {{ description }} @@ -63,29 +78,32 @@ %setup -q -n {{ name }}-%{version} %build -{% if has_ext_modules %}CFLAGS="%{optflags}" {% endif %}python setup.py build +{% if has_ext_modules %}export CFLAGS="%{optflags}"{% endif %} +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install {%- if testsuite or test_suite %} +%if %{with test} %check -python setup.py test +%python_exec setup.py test +%endif {%- endif %} -%files +%files %{python_files} %defattr(-,root,root,-) {%- if doc_files and doc_files is not none %} %doc {{ doc_files|join(" ") }} {%- endif %} {%- if scripts and scripts is not none %} {%- for script in scripts %} -%{_bindir}/{{ script|basename }} +%python3_only %{_bindir}/{{ script|basename }} {%- endfor %} {%- endif %} {%- if console_scripts and console_scripts is not none %} {%- for script in console_scripts %} -%{_bindir}/{{ script }} +%python3_only %{_bindir}/{{ script }} {%- endfor %} {%- endif %} {%- if has_ext_modules %} @@ -96,7 +114,7 @@ {%- if data_files and data_files is not none %} {%- for dir, files in data_files %} {%- set dir = dir | - replace('/usr/share/doc/'~name, '%doc %{_defaultdocdir}/%{name}', 1) | + replace('/usr/share/doc/'~name, '%doc %{_defaultdocdir}/%{python_prefix}-{{ name }}', 1) | replace('/usr/share/man/', '%doc %{_mandir}/', 1) | replace('/usr/share/', '%{_datadir}/', 1) | replace('/usr/', '%{_prefix}/', 1) %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/py2pack.egg-info/PKG-INFO new/py2pack-0.8.0/py2pack.egg-info/PKG-INFO --- old/py2pack-0.7.0/py2pack.egg-info/PKG-INFO 2017-02-14 12:45:07.000000000 +0100 +++ new/py2pack-0.8.0/py2pack.egg-info/PKG-INFO 2017-03-02 10:24:28.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: py2pack -Version: 0.7.0 +Version: 0.8.0 Summary: Generate distribution packages from PyPI Home-page: http://github.com/openSUSE/py2pack Author: Sascha Peilicke, Thomas Bechtold diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/py2pack.egg-info/SOURCES.txt new/py2pack-0.8.0/py2pack.egg-info/SOURCES.txt --- old/py2pack-0.7.0/py2pack.egg-info/SOURCES.txt 2017-02-14 12:45:08.000000000 +0100 +++ new/py2pack-0.8.0/py2pack.egg-info/SOURCES.txt 2017-03-02 10:24:28.000000000 +0100 @@ -30,6 +30,7 @@ py2pack.egg-info/top_level.txt py2pack/templates/fedora.spec py2pack/templates/mageia.spec +py2pack/templates/opensuse-legacy.spec py2pack/templates/opensuse.dsc py2pack/templates/opensuse.spec test/__init__.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/py2pack.egg-info/pbr.json new/py2pack-0.8.0/py2pack.egg-info/pbr.json --- old/py2pack-0.7.0/py2pack.egg-info/pbr.json 2017-02-14 12:45:07.000000000 +0100 +++ new/py2pack-0.8.0/py2pack.egg-info/pbr.json 2017-03-02 10:24:28.000000000 +0100 @@ -1 +1 @@ -{"is_release": true, "git_version": "a176758"} \ No newline at end of file +{"is_release": true, "git_version": "62ae944"} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/setup.cfg new/py2pack-0.8.0/setup.cfg --- old/py2pack-0.7.0/setup.cfg 2017-02-14 12:45:08.000000000 +0100 +++ new/py2pack-0.8.0/setup.cfg 2017-03-02 10:24:28.000000000 +0100 @@ -52,5 +52,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.7.0/test/test_py2pack.py new/py2pack-0.8.0/test/test_py2pack.py --- old/py2pack-0.7.0/test/test_py2pack.py 2017-02-12 15:13:44.000000000 +0100 +++ new/py2pack-0.8.0/test/test_py2pack.py 2017-02-28 20:03:03.000000000 +0100 @@ -105,6 +105,10 @@ {'install_requires': ['six >= 1.9', 'foobar >= 0.1']} ), ( + {'setup_requires': 'six >=1.9,!=1.0 # comment\nfoobar>=0.1,>=0.5'}, + {'setup_requires': ['six >= 1.9', 'foobar >= 0.1']} + ), + ( {'tests_require': ['six >=1.9', 'foobar>=0.1,>=0.5']}, {'tests_require': ['six >= 1.9', 'foobar >= 0.1']} ),
