Hello community,
here is the log from the commit of package python-uritemplate for
openSUSE:Factory checked in at 2017-06-01 16:31:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-uritemplate (Old)
and /work/SRC/openSUSE:Factory/.python-uritemplate.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-uritemplate"
Thu Jun 1 16:31:11 2017 rev:4 rq:493374 version:3.0.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-uritemplate/python-uritemplate.changes
2016-11-04 21:01:29.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-uritemplate.new/python-uritemplate.changes
2017-06-01 16:31:12.440043645 +0200
@@ -1,0 +2,18 @@
+Mon May 8 03:26:35 UTC 2017 - [email protected]
+
+- Re-download source tarball.
+
+-------------------------------------------------------------------
+Sun May 7 22:41:52 UTC 2017 - [email protected]
+
+- Source URL must be https.
+
+-------------------------------------------------------------------
+Mon May 1 16:24:14 UTC 2017 - [email protected]
+
+- Fix source URL.
+- Implement single-spec version.
+- Add tests.
+- Add licenses and other documentation files.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-uritemplate.spec ++++++
--- /var/tmp/diff_new_pack.yLhQA4/_old 2017-06-01 16:31:13.899837813 +0200
+++ /var/tmp/diff_new_pack.yLhQA4/_new 2017-06-01 16:31:13.899837813 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-uritemplate
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -16,9 +16,9 @@
#
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-#
+%bcond_without tests
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-uritemplate
Version: 3.0.0
Release: 0
@@ -26,16 +26,16 @@
License: Apache-2.0
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/uritemplate
-Source0: uritemplate-%{version}.tar.gz
+Source:
https://files.pythonhosted.org/packages/source/u/uritemplate/uritemplate-%{version}.tar.gz
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module simplejson}
Requires: python-simplejson
-BuildRequires: python-setuptools
-BuildRequires: python-simplejson
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%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
-%endif
+%python_subpackages
%description
This is a Python implementation of RFC6570, URI Template, and can expand
@@ -45,14 +45,22 @@
%setup -q -n uritemplate-%{version}
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+%if %{with tests}
+%check
+%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
+$python tests/test_uritemplate.py
+}
+%endif
-%files
+%files %{python_files}
%defattr(-,root,root,-)
-%doc README.rst
+%doc AUTHORS.rst HISTORY.rst LICENSE LICENSE.* README.rst
%{python_sitelib}/*
%changelog
++++++ uritemplate-3.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/uritemplate-3.0.0/.gitignore
new/uritemplate-3.0.0/.gitignore
--- old/uritemplate-3.0.0/.gitignore 2016-09-01 00:40:12.000000000 +0200
+++ new/uritemplate-3.0.0/.gitignore 1970-01-01 01:00:00.000000000 +0100
@@ -1,12 +0,0 @@
-*.pyc
-*.swp
-docs/_build
-bin/
-include/
-lib/
-lib64/
-dist/
-*.egg-info/
-.coverage
-htmlcov/
-.tox/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/uritemplate-3.0.0/.travis.yml
new/uritemplate-3.0.0/.travis.yml
--- old/uritemplate-3.0.0/.travis.yml 2016-09-01 00:40:12.000000000 +0200
+++ new/uritemplate-3.0.0/.travis.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,31 +0,0 @@
-language: python
-sudo: false
-
-matrix:
- include:
- - python: 2.6
- env: TOXENV=py26
- - python: 2.7
- env: TOXENV=py27
- - python: 3.3
- env: TOXENV=py33
- - python: 3.4
- env: TOXENV=py34
- - python: 3.5
- env: TOXENV=py35
- - env: TOXENV=pep8
-
-install:
- - pip install tox
-
-script:
- - tox
-
-notifications:
- on_success: change
- on_failure: change
- irc:
- channels:
- - "irc.freenode.org#github3.py"
- user_notice: true
- skip_join: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/uritemplate-3.0.0/HISTORY.rst
new/uritemplate-3.0.0/HISTORY.rst
--- old/uritemplate-3.0.0/HISTORY.rst 2016-09-01 00:40:12.000000000 +0200
+++ new/uritemplate-3.0.0/HISTORY.rst 2016-08-30 02:12:54.000000000 +0200
@@ -10,17 +10,6 @@
Changelog - uritemplate.py
==========================
-3.0.2 - 2015-08-30
-------------------
-
-- Fix meta-package requirements.
-
-3.0.1 - 2015-08-29
-------------------
-
-- Deprecate in favor of uritemplate. This package is now a metapackage that
- depends on uritemplate.
-
2.0.0 - 2016-08-20
------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/uritemplate-3.0.0/PKG-INFO
new/uritemplate-3.0.0/PKG-INFO
--- old/uritemplate-3.0.0/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/uritemplate-3.0.0/PKG-INFO 2016-08-30 02:16:40.000000000 +0200
@@ -0,0 +1,148 @@
+Metadata-Version: 1.1
+Name: uritemplate
+Version: 3.0.0
+Summary: URI templates
+Home-page: https://uritemplate.readthedocs.org
+Author: Ian Cordasco
+Author-email: [email protected]
+License: BSD 3-Clause License or Apache License, Version 2.0
+Description: uritemplate
+ ===========
+
+ Documentation_ -- GitHub_ -- BitBucket_ -- Travis-CI_
+
+ Simple python library to deal with `URI Templates`_. The API looks like
+
+ .. code-block:: python
+
+ from uritemplate import URITemplate, expand
+
+ # NOTE: URI params must be strings not integers
+
+ gist_uri =
'https://api.github.com/users/sigmavirus24/gists{/gist_id}'
+ t = URITemplate(gist_uri)
+ print(t.expand(gist_id='123456'))
+ # => https://api.github.com/users/sigmavirus24/gists/123456
+
+ # or
+ print(expand(gist_uri, gist_id='123456'))
+
+ # also
+ t.expand({'gist_id': '123456'})
+ print(expand(gist_uri, {'gist_id': '123456'}))
+
+ Where it might be useful to have a class
+
+ .. code-block:: python
+
+ import requests
+
+ class GitHubUser(object):
+ url = URITemplate('https://api.github.com/user{/login}')
+ def __init__(self, name):
+ self.api_url = url.expand(login=name)
+ response = requests.get(self.api_url)
+ if response.status_code == 200:
+ self.__dict__.update(response.json())
+
+ When the module containing this class is loaded, ``GitHubUser.url`` is
+ evaluated and so the template is created once. It's often hard to
notice in
+ Python, but object creation can consume a great deal of time and so
can the
+ ``re`` module which uritemplate relies on. Constructing the object
once should
+ reduce the amount of time your code takes to run.
+
+ Installing
+ ----------
+
+ ::
+
+ pip install uritemplate.py
+
+ License
+ -------
+
+ Modified BSD license_
+
+
+ .. _Documentation: http://uritemplate.rtfd.org/
+ .. _GitHub: https://github.com/sigmavirus24/uritemplate
+ .. _BitBucket: https://bitbucket.org/icordasc/uritemplate
+ .. _Travis-CI: https://travis-ci.org/sigmavirus24/uritemplate
+ .. _URI Templates: http://tools.ietf.org/html/rfc6570
+ .. _license:
https://github.com/sigmavirus24/uritemplate/blob/master/LICENSE
+
+
+ Changelog - uritemplate
+ =======================
+
+ 2.0.0 - 2016-08-29
+ ------------------
+
+ - Merge uritemplate.py into uritemplate
+
+
+ Changelog - uritemplate.py
+ ==========================
+
+ 2.0.0 - 2016-08-20
+ ------------------
+
+ - Relicense uritemplate.py as Apache 2 and BSD (See
+ https://github.com/sigmavirus24/uritemplate/pull/23)
+
+ 1.0.1 - 2016-08-18
+ ------------------
+
+ - Fix some minor packaging problems.
+
+ 1.0.0 - 2016-08-17
+ ------------------
+
+ - Fix handling of Unicode values on Python 2.6 and 2.7 for
urllib.quote.
+
+ - Confirm public stable API via version number.
+
+ 0.3.0 - 2013-10-22
+ ------------------
+
+ - Add ``#partial`` to partially expand templates and return new
instances of
+ ``URITemplate``.
+
+ 0.2.0 - 2013-07-26
+ ------------------
+
+ - Refactor the library a bit and add more tests.
+
+ - Backwards incompatible with 0.1.x if using ``URIVariable`` directly
from
+ ``uritemplate.template``
+
+ 0.1.1 - 2013-05-19
+ ------------------
+
+ - Add ability to get set of variable names in the current URI
+
+ - If there is no value or default given, simply return an empty string
+
+ - Fix sdist
+
+ 0.1.0 - 2013-05-14
+ ------------------
+
+ - Initial Release
+
+Platform: UNKNOWN
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: License :: OSI Approved
+Classifier: License :: OSI Approved :: BSD License
+Classifier: License :: OSI Approved :: Apache Software License
+Classifier: Intended Audience :: Developers
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: Implementation :: CPython
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/uritemplate-3.0.0/old/uritemplate.py/uritemplatepy-setup.py
new/uritemplate-3.0.0/old/uritemplate.py/uritemplatepy-setup.py
--- old/uritemplate-3.0.0/old/uritemplate.py/uritemplatepy-setup.py
2016-09-01 00:40:12.000000000 +0200
+++ new/uritemplate-3.0.0/old/uritemplate.py/uritemplatepy-setup.py
1970-01-01 01:00:00.000000000 +0100
@@ -1,31 +0,0 @@
-from setuptools import setup
-
-setup(
- name="uritemplate.py",
- version="3.0.2",
- description="URI templates",
- long_description="\n\n".join([open("README.rst").read(),
- open("HISTORY.rst").read()]),
- license="BSD 3-Clause License or Apache License, Version 2.0",
- author="Ian Cordasco",
- author_email="[email protected]",
- url="https://uritemplate.readthedocs.org",
- install_requires=["uritemplate>=2.0"],
- classifiers=[
- 'Development Status :: 5 - Production/Stable',
- 'License :: OSI Approved',
- 'License :: OSI Approved :: BSD License',
- 'License :: OSI Approved :: Apache Software License',
- 'Intended Audience :: Developers',
- 'Programming Language :: Python',
- 'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 2.6',
- 'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.2',
- 'Programming Language :: Python :: 3.3',
- 'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5',
- 'Programming Language :: Python :: Implementation :: CPython',
- ],
-)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/uritemplate-3.0.0/setup.cfg
new/uritemplate-3.0.0/setup.cfg
--- old/uritemplate-3.0.0/setup.cfg 2016-09-01 00:40:12.000000000 +0200
+++ new/uritemplate-3.0.0/setup.cfg 2016-08-30 02:16:40.000000000 +0200
@@ -1,2 +1,5 @@
-[bdist_wheel]
-universal = 1
+[egg_info]
+tag_build =
+tag_date = 0
+tag_svn_revision = 0
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/uritemplate-3.0.0/tox.ini
new/uritemplate-3.0.0/tox.ini
--- old/uritemplate-3.0.0/tox.ini 2016-09-01 00:40:12.000000000 +0200
+++ new/uritemplate-3.0.0/tox.ini 1970-01-01 01:00:00.000000000 +0100
@@ -1,31 +0,0 @@
-[tox]
-envlist =
- py26,
- py27,
- py32,
- py33,
- py34,
- py35,
- pep8,
-
-[testenv]
-deps =
- pytest
-commands = py.test {posargs}
-
-[testenv:pep8]
-deps =
- flake8
-commands =
- flake8 {posargs} uritemplate tests setup.py
-
-[testenv:release]
-deps =
- wheel
- twine>=1.8.0
-commands =
- python setup.py -q sdist bdist_wheel
- twine upload --skip-existing dist/*
-
-[flake8]
-exclude = docs/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/uritemplate-3.0.0/uritemplate.egg-info/PKG-INFO
new/uritemplate-3.0.0/uritemplate.egg-info/PKG-INFO
--- old/uritemplate-3.0.0/uritemplate.egg-info/PKG-INFO 1970-01-01
01:00:00.000000000 +0100
+++ new/uritemplate-3.0.0/uritemplate.egg-info/PKG-INFO 2016-08-30
02:16:40.000000000 +0200
@@ -0,0 +1,148 @@
+Metadata-Version: 1.1
+Name: uritemplate
+Version: 3.0.0
+Summary: URI templates
+Home-page: https://uritemplate.readthedocs.org
+Author: Ian Cordasco
+Author-email: [email protected]
+License: BSD 3-Clause License or Apache License, Version 2.0
+Description: uritemplate
+ ===========
+
+ Documentation_ -- GitHub_ -- BitBucket_ -- Travis-CI_
+
+ Simple python library to deal with `URI Templates`_. The API looks like
+
+ .. code-block:: python
+
+ from uritemplate import URITemplate, expand
+
+ # NOTE: URI params must be strings not integers
+
+ gist_uri =
'https://api.github.com/users/sigmavirus24/gists{/gist_id}'
+ t = URITemplate(gist_uri)
+ print(t.expand(gist_id='123456'))
+ # => https://api.github.com/users/sigmavirus24/gists/123456
+
+ # or
+ print(expand(gist_uri, gist_id='123456'))
+
+ # also
+ t.expand({'gist_id': '123456'})
+ print(expand(gist_uri, {'gist_id': '123456'}))
+
+ Where it might be useful to have a class
+
+ .. code-block:: python
+
+ import requests
+
+ class GitHubUser(object):
+ url = URITemplate('https://api.github.com/user{/login}')
+ def __init__(self, name):
+ self.api_url = url.expand(login=name)
+ response = requests.get(self.api_url)
+ if response.status_code == 200:
+ self.__dict__.update(response.json())
+
+ When the module containing this class is loaded, ``GitHubUser.url`` is
+ evaluated and so the template is created once. It's often hard to
notice in
+ Python, but object creation can consume a great deal of time and so
can the
+ ``re`` module which uritemplate relies on. Constructing the object
once should
+ reduce the amount of time your code takes to run.
+
+ Installing
+ ----------
+
+ ::
+
+ pip install uritemplate.py
+
+ License
+ -------
+
+ Modified BSD license_
+
+
+ .. _Documentation: http://uritemplate.rtfd.org/
+ .. _GitHub: https://github.com/sigmavirus24/uritemplate
+ .. _BitBucket: https://bitbucket.org/icordasc/uritemplate
+ .. _Travis-CI: https://travis-ci.org/sigmavirus24/uritemplate
+ .. _URI Templates: http://tools.ietf.org/html/rfc6570
+ .. _license:
https://github.com/sigmavirus24/uritemplate/blob/master/LICENSE
+
+
+ Changelog - uritemplate
+ =======================
+
+ 2.0.0 - 2016-08-29
+ ------------------
+
+ - Merge uritemplate.py into uritemplate
+
+
+ Changelog - uritemplate.py
+ ==========================
+
+ 2.0.0 - 2016-08-20
+ ------------------
+
+ - Relicense uritemplate.py as Apache 2 and BSD (See
+ https://github.com/sigmavirus24/uritemplate/pull/23)
+
+ 1.0.1 - 2016-08-18
+ ------------------
+
+ - Fix some minor packaging problems.
+
+ 1.0.0 - 2016-08-17
+ ------------------
+
+ - Fix handling of Unicode values on Python 2.6 and 2.7 for
urllib.quote.
+
+ - Confirm public stable API via version number.
+
+ 0.3.0 - 2013-10-22
+ ------------------
+
+ - Add ``#partial`` to partially expand templates and return new
instances of
+ ``URITemplate``.
+
+ 0.2.0 - 2013-07-26
+ ------------------
+
+ - Refactor the library a bit and add more tests.
+
+ - Backwards incompatible with 0.1.x if using ``URIVariable`` directly
from
+ ``uritemplate.template``
+
+ 0.1.1 - 2013-05-19
+ ------------------
+
+ - Add ability to get set of variable names in the current URI
+
+ - If there is no value or default given, simply return an empty string
+
+ - Fix sdist
+
+ 0.1.0 - 2013-05-14
+ ------------------
+
+ - Initial Release
+
+Platform: UNKNOWN
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: License :: OSI Approved
+Classifier: License :: OSI Approved :: BSD License
+Classifier: License :: OSI Approved :: Apache Software License
+Classifier: Intended Audience :: Developers
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: Implementation :: CPython
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/uritemplate-3.0.0/uritemplate.egg-info/SOURCES.txt
new/uritemplate-3.0.0/uritemplate.egg-info/SOURCES.txt
--- old/uritemplate-3.0.0/uritemplate.egg-info/SOURCES.txt 1970-01-01
01:00:00.000000000 +0100
+++ new/uritemplate-3.0.0/uritemplate.egg-info/SOURCES.txt 2016-08-30
02:16:40.000000000 +0200
@@ -0,0 +1,28 @@
+AUTHORS.rst
+HISTORY.rst
+LICENSE
+LICENSE.APACHE
+LICENSE.BSD
+MANIFEST.in
+README.rst
+setup.py
+docs/Makefile
+docs/conf.py
+docs/index.rst
+tests/test_from_fixtures.py
+tests/test_uritemplate.py
+tests/fixtures/README.md
+tests/fixtures/extended-tests.json
+tests/fixtures/json2xml.xslt
+tests/fixtures/negative-tests.json
+tests/fixtures/spec-examples-by-section.json
+tests/fixtures/spec-examples.json
+tests/fixtures/transform-json-tests.xslt
+uritemplate/__init__.py
+uritemplate/api.py
+uritemplate/template.py
+uritemplate/variable.py
+uritemplate.egg-info/PKG-INFO
+uritemplate.egg-info/SOURCES.txt
+uritemplate.egg-info/dependency_links.txt
+uritemplate.egg-info/top_level.txt
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/uritemplate-3.0.0/uritemplate.egg-info/dependency_links.txt
new/uritemplate-3.0.0/uritemplate.egg-info/dependency_links.txt
--- old/uritemplate-3.0.0/uritemplate.egg-info/dependency_links.txt
1970-01-01 01:00:00.000000000 +0100
+++ new/uritemplate-3.0.0/uritemplate.egg-info/dependency_links.txt
2016-08-30 02:16:40.000000000 +0200
@@ -0,0 +1 @@
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/uritemplate-3.0.0/uritemplate.egg-info/top_level.txt
new/uritemplate-3.0.0/uritemplate.egg-info/top_level.txt
--- old/uritemplate-3.0.0/uritemplate.egg-info/top_level.txt 1970-01-01
01:00:00.000000000 +0100
+++ new/uritemplate-3.0.0/uritemplate.egg-info/top_level.txt 2016-08-30
02:16:40.000000000 +0200
@@ -0,0 +1 @@
+uritemplate