14
0

Accepting request 406255 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/406255
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py2pack?expand=0&rev=34
This commit is contained in:
2016-07-12 21:51:09 +00:00
committed by Git OBS Bridge
4 changed files with 154 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f0fe44f83fa1257ab488497262973477ca9dfc16b82f731d50e7470b88f918f8
size 30838

3
py2pack-0.6.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cf41c53fa7482f74c71112efde4ccbf5c85155c0eb0cb99b3d2feedc6655ad5f
size 28087

View File

@@ -1,3 +1,110 @@
-------------------------------------------------------------------
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
- 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
- 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

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-py2pack
#
# Copyright (c) 2014 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,20 +17,30 @@
Name: python-py2pack
Version: 0.4.10
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: https://pypi.io/packages/source/p/py2pack/py2pack-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-Jinja2
BuildRequires: python-argparse
BuildRequires: python-cssselect
BuildRequires: python-devel
BuildRequires: python-lxml
BuildRequires: python-requests
BuildRequires: python-setuptools
Requires: python-Jinja2
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
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
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
@@ -53,16 +63,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