From 1581c8e257089cdee99d39e7cd3b51e1dd4c5ddf45bc0870452a433b18d95f53 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 13 Aug 2015 11:48:06 +0000 Subject: [PATCH 1/3] 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 From d528bc4b752775150c6de85eb1ea4222d7d8fbaa25b2eca663ae8f67c8aecceb Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Fri, 1 Jul 2016 13:09:06 +0000 Subject: [PATCH 2/3] Accepting request 405766 from home:tbechtold:branches:devel:languages:python - update to 0.6.3: * Bump version to 0.6.3 * Set setup.py encoding and retry parsing in error case * Move Jinja2 env creation to own function * Don't call nosetests when a testsuite was found * Fix get_metadata for distutils setup() * Also try to get license from classifiers * Fix --run deprecation * Move requirements related code to requires.py * Remove setup.py parsing code * Always run setup.py to get metadata * Fix README.rst style - update to 0.6.2: * Bump version to 0.6.2 * Also list tests_require as BuildRequires for openSUSE * Reorder Requires/BuildRequires for openSUSE * Requirement markers are only available in newer setuptools versions - update to 0.6.1: * Bump version to 0.6.1 * Improve _canonicalize_setup_data() tests * Rerun _canonicalize_setup_data() * Remove py33 and py34 from travis and tox * travis: Fix python 3 test env variables * Don't list "./" in names for extracted zip/tar file * Fix minimal version detection for requirements * Support requirement markers * Fix tests_require handling * Adjust some comments OBS-URL: https://build.opensuse.org/request/show/405766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py2pack?expand=0&rev=46 --- py2pack-0.5.0.tar.gz | 3 -- py2pack-0.6.3.tar.gz | 3 ++ python-py2pack.changes | 77 ++++++++++++++++++++++++++++++++++++++++++ python-py2pack.spec | 13 +++---- 4 files changed, 87 insertions(+), 9 deletions(-) delete mode 100644 py2pack-0.5.0.tar.gz create mode 100644 py2pack-0.6.3.tar.gz diff --git a/py2pack-0.5.0.tar.gz b/py2pack-0.5.0.tar.gz deleted file mode 100644 index 2f5ff5d..0000000 --- a/py2pack-0.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b3d48b18b5d6a6416c676c9d157f7672df3cc999154083454b9ea79b33adf2d0 -size 31044 diff --git a/py2pack-0.6.3.tar.gz b/py2pack-0.6.3.tar.gz new file mode 100644 index 0000000..6d6e74a --- /dev/null +++ b/py2pack-0.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf41c53fa7482f74c71112efde4ccbf5c85155c0eb0cb99b3d2feedc6655ad5f +size 28087 diff --git a/python-py2pack.changes b/python-py2pack.changes index bb37f7d..981a507 100644 --- a/python-py2pack.changes +++ b/python-py2pack.changes @@ -1,3 +1,80 @@ +------------------------------------------------------------------- +Thu Jun 30 18:58:23 UTC 2016 - tbechtold@suse.com + +- update to 0.6.3: + * Bump version to 0.6.3 + * Set setup.py encoding and retry parsing in error case + * Move Jinja2 env creation to own function + * Don't call nosetests when a testsuite was found + * Fix get_metadata for distutils setup() + * Also try to get license from classifiers + * Fix --run deprecation + * Move requirements related code to requires.py + * Remove setup.py parsing code + * Always run setup.py to get metadata + * Fix README.rst style + +------------------------------------------------------------------- +Thu Jun 30 06:29:18 UTC 2016 - tbechtold@suse.com + +- update to 0.6.2: + * Bump version to 0.6.2 + * Also list tests_require as BuildRequires for openSUSE + * Reorder Requires/BuildRequires for openSUSE + * Requirement markers are only available in newer setuptools versions + +------------------------------------------------------------------- +Wed Jun 29 20:12:05 UTC 2016 - tbechtold@suse.com + +- update to 0.6.1: + * Bump version to 0.6.1 + * Improve _canonicalize_setup_data() tests + * Rerun _canonicalize_setup_data() + * Remove py33 and py34 from travis and tox + * travis: Fix python 3 test env variables + * Don't list "./" in names for extracted zip/tar file + * Fix minimal version detection for requirements + * Support requirement markers + * Fix tests_require handling + * Adjust some comments + * Use xmlrpc_client from six + * Adjust docs for testing + * Remove whitespaces from README + +------------------------------------------------------------------- +Wed Jun 29 13:17:30 UTC 2016 - tbechtold@suse.com + +- update to 0.6.0: + * Bump version to 0.6.0 + * Add myself as co-maintainer + * Mention the "--run" as note in README + * protect against failed eval of setup.py code fragments + * Also collect tests_require metadata + * Remove distutils cleanup command + * Remove pypip.in images from README + * Use distutils command when running setup.py + * Add contextmanager to extract a zip/tar into a tempdir + * Remove bitdeli image from README + * Relicense under Apache-2.0 + * Move setup.py sandbox run to extra file + * Also parse entry_points when given as dict + * Use a "fake" unicode literal from six for decoding + * Move setup.py parsing to extra file + * tox: Add possibility to run single test cases + * Ignore .eggs/ dir in git + * Update the SPDX mapping file + * travis: Use matrix to execute tox envs + * tox: Ignore E402 + * Don't require argparse + * Remove python 2.6 support + * travis: remove --use-mirrors pip flag usage + * tests: ignore console_scripts order during tests + * Add python 3.4 and 3.5 support + * Fix company name in spec template +- Update license. It's now Apache-2.0 +- Adjust Requires +- USe pypi.io as Source url + ------------------------------------------------------------------- Wed Aug 12 15:55:29 UTC 2015 - toddrme2178@gmail.com diff --git a/python-py2pack.spec b/python-py2pack.spec index 58426fc..826cf50 100644 --- a/python-py2pack.spec +++ b/python-py2pack.spec @@ -1,7 +1,7 @@ # # spec file for package python-py2pack # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -17,26 +17,27 @@ Name: python-py2pack -Version: 0.5.0 +Version: 0.6.3 Release: 0 Url: http://github.com/saschpe/py2pack Summary: Generate distribution packages from Python packages on PyPI -License: GPL-2.0 +License: Apache-2.0 Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/p/py2pack/py2pack-%{version}.tar.gz +Source: http://pypi.io/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-devel BuildRequires: python-lxml BuildRequires: python-requests -BuildRequires: python-devel +BuildRequires: python-setuptools Requires: python-Jinja2 Requires: python-argparse Requires: python-cssselect Requires: python-lxml Requires: python-requests +Requires: python-six Requires(post): update-alternatives Requires(postun): update-alternatives %if 0%{?suse_version} && 0%{?suse_version} <= 1110 From 9424b9b24ceb4815bba6e29107a80449cc535da9d428ec8e1a276bab3bbe55ae Mon Sep 17 00:00:00 2001 From: Alberto Planas Dominguez Date: Mon, 4 Jul 2016 07:26:35 +0000 Subject: [PATCH 3/3] Accepting request 406252 from home:tbechtold:branches:devel:languages:python - Use https for Source url OBS-URL: https://build.opensuse.org/request/show/406252 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py2pack?expand=0&rev=47 --- python-py2pack.changes | 5 +++++ python-py2pack.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-py2pack.changes b/python-py2pack.changes index 981a507..2f44f29 100644 --- a/python-py2pack.changes +++ b/python-py2pack.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 4 07:22:14 UTC 2016 - tbechtold@suse.com + +- Use https for Source url + ------------------------------------------------------------------- Thu Jun 30 18:58:23 UTC 2016 - tbechtold@suse.com diff --git a/python-py2pack.spec b/python-py2pack.spec index 826cf50..d81a8a2 100644 --- a/python-py2pack.spec +++ b/python-py2pack.spec @@ -23,7 +23,7 @@ Url: http://github.com/saschpe/py2pack Summary: Generate distribution packages from Python packages on PyPI License: Apache-2.0 Group: Development/Languages/Python -Source: http://pypi.io/packages/source/p/py2pack/py2pack-%{version}.tar.gz +Source: https://pypi.io/packages/source/p/py2pack/py2pack-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-Jinja2 BuildRequires: python-argparse