Accepting request 298515 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/298515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Routes?expand=0&rev=10
This commit is contained in:
2015-04-23 06:04:33 +00:00
committed by Git OBS Bridge
4 changed files with 41 additions and 8 deletions

View File

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

3
Routes-2.1.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Mon Apr 20 12:57:47 UTC 2015 - tbechtold@suse.com
- update to 2.1:
* Fix 3 other route matching groups in route.py to use anonymous groups for
optional sections to avoid exceeding regex limits. Fixes #15.
* Printing a mapper now includes the Controller/action parameters from the
route. Fixes #11.
* Fix regression that didn't allow passing in params 'host', 'protocol', or
'anchor'. They can now be passed in with a trailing '_' as was possible
before commit d1d1742903fa5ca24ef848a6ae895303f2661b2a. Fixes #7.
* URL generation with/without SCRIPT_NAME was resulting in the URL cache
failing to return the appropriate cached URL generation. The URL cache
should always include the SCRIPT_NAME, even if its empty, in the cache
to avoid this, and now does. Fixes #6.
* Extract Route creation into separate method in Mapper. Subclasses of Route
can be created by Mappers now.
* Use the first X_FORWARDED_FOR value if there are multiple proxies in the
path. Fixes #5.
* Python 3.2/3.3 Support. Fixes Issue #2. Thanks to Alejandro Sánchez for
the pull request!
- Enable testrun during build and adjust BuildRequires for that.
- Adjust documentation links.
-------------------------------------------------------------------
Thu Oct 24 11:13:33 UTC 2013 - speilicke@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Routes
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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,7 +17,7 @@
Name: python-Routes
Version: 1.13
Version: 2.1
Release: 0
Url: http://routes.groovie.org/
Summary: Routing Recognition and Generation Tools
@@ -27,7 +27,14 @@ Source: http://pypi.python.org/packages/source/R/Routes/Routes-%{version
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-repoze.lru
# for testing
BuildRequires: python-coverage
BuildRequires: python-nose
BuildRequires: python-repoze.lru >= 0.3
BuildRequires: python-webob
BuildRequires: python-webtest
Requires: python-repoze.lru >= 0.3
Provides: python-routes = %{version}
Obsoletes: python-routes < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
@@ -41,7 +48,6 @@ A Routing package for Python that matches URL's to dicts and vice versa.
%prep
%setup -q -n Routes-%{version}
rm docs/_build/html/.buildinfo # Remove junk
%build
python setup.py build
@@ -49,9 +55,12 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
nosetests
%files
%defattr(-,root,root,-)
%doc CHANGELOG LICENSE README docs/_build/html
%doc CHANGELOG.rst LICENSE.txt README.rst
%{python_sitelib}/*
%changelog