From 1581c8e257089cdee99d39e7cd3b51e1dd4c5ddf45bc0870452a433b18d95f53 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 13 Aug 2015 11:48:06 +0000 Subject: [PATCH] Accepting request 322394 from home:TheBlackCat:branches:devel:languages:python Update to version 0.5.0 OBS-URL: https://build.opensuse.org/request/show/322394 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py2pack?expand=0&rev=45 --- py2pack-0.4.10.tar.gz | 3 --- py2pack-0.5.0.tar.gz | 3 +++ python-py2pack.changes | 25 +++++++++++++++++++++ python-py2pack.spec | 49 ++++++++++++++++++++++++++++++++++++------ 4 files changed, 70 insertions(+), 10 deletions(-) delete mode 100644 py2pack-0.4.10.tar.gz create mode 100644 py2pack-0.5.0.tar.gz diff --git a/py2pack-0.4.10.tar.gz b/py2pack-0.4.10.tar.gz deleted file mode 100644 index 46359ba..0000000 --- a/py2pack-0.4.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f0fe44f83fa1257ab488497262973477ca9dfc16b82f731d50e7470b88f918f8 -size 30838 diff --git a/py2pack-0.5.0.tar.gz b/py2pack-0.5.0.tar.gz new file mode 100644 index 0000000..2f5ff5d --- /dev/null +++ b/py2pack-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3d48b18b5d6a6416c676c9d157f7672df3cc999154083454b9ea79b33adf2d0 +size 31044 diff --git a/python-py2pack.changes b/python-py2pack.changes index 32a64df..bb37f7d 100644 --- a/python-py2pack.changes +++ b/python-py2pack.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Wed Aug 12 15:55:29 UTC 2015 - toddrme2178@gmail.com + +- Update to version 0.5.0 + + Fix flake8 issues + + Fix console_script handling + + Sanitize collected requirements + + Remove unused 'requires' from opensuse template + + Quote %doc filenames if they contain shell metacharacters + + Add support for "entry_points" and "console_scripts" parameters + + Support syntactic variations as per the setuptools spec + + Make "parse" and "run" two separate modes + + Support same set of setup() parameters in parse and run modes + + Use setuptools instead of distutils in _run_setup_py() … + + Run setup.py (instead of just parsing it) to gather more data + + Adjust Travis CI build + + Remove commented code and make pep8 happy + + Remove package create function + + Fix license detection when license is None + + Don't include comma in _parse_setup_py regexp + + fix indentation in README + + Fix KeyError for license and summary +- Add update-alternatives support for compatibility with + python 3 version of the package. + ------------------------------------------------------------------- Thu Mar 6 09:02:57 UTC 2014 - speilicke@suse.com diff --git a/python-py2pack.spec b/python-py2pack.spec index 5c96204..58426fc 100644 --- a/python-py2pack.spec +++ b/python-py2pack.spec @@ -1,7 +1,7 @@ # # spec file for package python-py2pack # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,20 +17,29 @@ Name: python-py2pack -Version: 0.4.10 +Version: 0.5.0 Release: 0 Url: http://github.com/saschpe/py2pack Summary: Generate distribution packages from Python packages on PyPI -License: GPL-2.0+ +License: GPL-2.0 Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/p/py2pack/py2pack-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-setuptools BuildRequires: python-Jinja2 BuildRequires: python-argparse +BuildRequires: python-cssselect +BuildRequires: python-lxml +BuildRequires: python-requests BuildRequires: python-devel Requires: python-Jinja2 -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 Requires: python-argparse +Requires: python-cssselect +Requires: python-lxml +Requires: python-requests +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 BuildArch: noarch @@ -53,16 +62,42 @@ python setup.py build python setup.py install --prefix=%{_prefix} --root=%{buildroot} # The setup script installs stuff into '/usr/local', move stuff around accordingly install -d %{buildroot}%{_mandir}/man1 -mv %{buildroot}/usr/man/man1/py2pack.* %{buildroot}%{_mandir}/man1 install -d %{buildroot}%{_docdir}/%{name} + mv %{buildroot}/usr/share/doc/py2pack/* %{buildroot}%{_docdir}/%{name} +mv %{buildroot}/usr/man/man1/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} +ln -s -f %{_sysconfdir}/alternatives/py2pack %{buildroot}%{_bindir}/py2pack + +# create dummy targets +touch %{buildroot}%{_sysconfdir}/alternatives/py2pack +touch %{buildroot}%{_sysconfdir}/alternatives/py2pack.1.gz + +%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 + +%postun +if [ $1 -eq 0 ] ; then + %_sbindir/update-alternatives --remove py2pack %{_bindir}/py2pack-%{py_ver} +fi %files %defattr(-,root,root,-) +%doc AUTHORS LICENSE README.rst %{_bindir}/py2pack -%{_mandir}/man1/py2pack.1* +%{_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 %{_docdir}/%{name} -%{python_sitelib}/py2pack-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/py2pack-%{version}-py*.egg-info %{python_sitelib}/py2pack %changelog