Hello community, here is the log from the commit of package python-py2pack for openSUSE:Factory checked in at 2016-08-17 12:05:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-py2pack (Old) and /work/SRC/openSUSE:Factory/.python-py2pack.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-py2pack" Changes: -------- --- /work/SRC/openSUSE:Factory/python-py2pack/python-py2pack.changes 2016-07-24 19:53:41.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-py2pack.new/python-py2pack.changes 2016-08-17 12:05:16.000000000 +0200 @@ -1,0 +2,10 @@ +Mon Aug 15 06:47:32 UTC 2016 - [email protected] + +- update to version 0.6.4 + * Fix urlretrieve for py3 + * Remove obsolete workaround for old suse in template + * Update travis.yml + * Bump version to 0.6.4 + * Add "metadata" subcommand + +------------------------------------------------------------------- Old: ---- py2pack-0.6.3.tar.gz New: ---- py2pack-0.6.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-py2pack.spec ++++++ --- /var/tmp/diff_new_pack.Ni9dz7/_old 2016-08-17 12:05:17.000000000 +0200 +++ /var/tmp/diff_new_pack.Ni9dz7/_new 2016-08-17 12:05:17.000000000 +0200 @@ -17,7 +17,7 @@ Name: python-py2pack -Version: 0.6.3 +Version: 0.6.4 Release: 0 Url: http://github.com/saschpe/py2pack Summary: Generate distribution packages from Python packages on PyPI ++++++ py2pack-0.6.3.tar.gz -> py2pack-0.6.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.6.3/PKG-INFO new/py2pack-0.6.4/PKG-INFO --- old/py2pack-0.6.3/PKG-INFO 2016-06-30 20:57:27.000000000 +0200 +++ new/py2pack-0.6.4/PKG-INFO 2016-08-15 08:44:33.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: py2pack -Version: 0.6.3 +Version: 0.6.4 Summary: Generate distribution packages from PyPI Home-page: http://github.com/saschpe/py2pack Author: Sascha Peilicke diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.6.3/py2pack/__init__.py new/py2pack-0.6.4/py2pack/__init__.py --- old/py2pack-0.6.3/py2pack/__init__.py 2016-06-30 20:56:17.000000000 +0200 +++ new/py2pack-0.6.4/py2pack/__init__.py 2016-08-15 08:35:33.000000000 +0200 @@ -21,11 +21,12 @@ __doc__ = 'Generate distribution packages from PyPI' __docformat__ = 'restructuredtext en' __author__ = 'Sascha Peilicke <[email protected]>' -__version__ = '0.6.3' +__version__ = '0.6.4' import argparse import datetime import glob +import json import os import pickle import pkg_resources @@ -34,6 +35,7 @@ import re import sys import urllib +from six.moves.urllib.request import urlretrieve from six.moves import xmlrpc_client import jinja2 import warnings @@ -70,6 +72,13 @@ pprint.pprint(data) +def metadata(args): + """extra the metadata from the given tarball""" + data = {} + _run_setup_py(args.filename, data) + print(json.dumps(data, indent=4, sort_keys=True)) + + def fetch(args): check_or_set_version(args) url = newest_download_url(args) @@ -78,7 +87,7 @@ sys.exit(1) print('downloading package {0}-{1}...'.format(args.name, args.version)) print('from {0}'.format(url['url'])) - urllib.urlretrieve(url['url'], url['filename']) + urlretrieve(url['url'], url['filename']) def _run_setup_py(tarfile, data): @@ -265,6 +274,11 @@ parser_show.add_argument('version', nargs='?', help='package version (optional)') parser_show.set_defaults(func=show) + parser_metadata = subparsers.add_parser('metadata', + help='show metadata for a given tarball') + parser_metadata.add_argument('filename', help='filename') + parser_metadata.set_defaults(func=metadata) + parser_fetch = subparsers.add_parser('fetch', help='download package source tarball from PyPI') parser_fetch.add_argument('name', help='package name') parser_fetch.add_argument('version', nargs='?', help='package version (optional)') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.6.3/py2pack/templates/opensuse.spec new/py2pack-0.6.4/py2pack/templates/opensuse.spec --- old/py2pack-0.6.3/py2pack/templates/opensuse.spec 2016-06-30 20:56:17.000000000 +0200 +++ new/py2pack-0.6.4/py2pack/templates/opensuse.spec 2016-08-11 08:07:09.000000000 +0200 @@ -48,15 +48,7 @@ {%- endfor %} {%- endif %} BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -{%- if is_extension %} -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -{%- else %} -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -{%- endif %} -%endif %description {{ description }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.6.3/py2pack.egg-info/PKG-INFO new/py2pack-0.6.4/py2pack.egg-info/PKG-INFO --- old/py2pack-0.6.3/py2pack.egg-info/PKG-INFO 2016-06-30 20:57:27.000000000 +0200 +++ new/py2pack-0.6.4/py2pack.egg-info/PKG-INFO 2016-08-15 08:44:32.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: py2pack -Version: 0.6.3 +Version: 0.6.4 Summary: Generate distribution packages from PyPI Home-page: http://github.com/saschpe/py2pack Author: Sascha Peilicke
