From b2d8f9f379577f5392bcf097f7f37261a2acbb44c5337094c0c1a50c95fe195b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Sun, 28 Jan 2018 23:53:41 +0000 Subject: [PATCH 1/4] Accepting request 570410 from home:apersaud:branches:devel:languages:python fixed source to point to pypi again OBS-URL: https://build.opensuse.org/request/show/570410 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=22 --- 1.3.0.tar.gz | 3 -- falcon-1.4.1.tar.gz | 3 ++ python-falcon.changes | 76 +++++++++++++++++++++++++++++++++++++++++++ python-falcon.spec | 9 +++-- 4 files changed, 83 insertions(+), 8 deletions(-) delete mode 100644 1.3.0.tar.gz create mode 100644 falcon-1.4.1.tar.gz diff --git a/1.3.0.tar.gz b/1.3.0.tar.gz deleted file mode 100644 index 963da19..0000000 --- a/1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1917c39a8f2f5ca6998141d88c8547113a7a9bbd0f00785cc8152e8c593cf44b -size 507250 diff --git a/falcon-1.4.1.tar.gz b/falcon-1.4.1.tar.gz new file mode 100644 index 0000000..01702da --- /dev/null +++ b/falcon-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c3185a131977bcb9f6d53a5f90a2462f040cd16152aaefd2f70e0e43979209a +size 555980 diff --git a/python-falcon.changes b/python-falcon.changes index 7ce9ef1..55f9488 100644 --- a/python-falcon.changes +++ b/python-falcon.changes @@ -1,3 +1,79 @@ +------------------------------------------------------------------- +Wed Jan 17 03:58:52 UTC 2018 - arun@gmx.de + +- specfile: + * update copyright year + * require pygments-style-railscasts to build documentation + * switched back to pypi for source tar-ball + +- update to version 1.4.1: + * Fixed + + Reverted the breaking change in 1.4.0 to + "falcon.testing.Result.json". Minor releases should have no + breaking changes. + + The README was not rendering properly on PyPI. This was fixed + and a validation step was added to the build process. + +- changes from version 1.4.0: + * Changes to Supported Platforms + + Python 3 is now supported on PyPy as of PyPy3.5 v5.10. + + Support for CPython 3.3 is now deprecated and will be removed in + Falcon 2.0. + + As with the previous release, Python 2.6 and Jython 2.7 remain + deprecated and will no longer be supported in Falcon 2.0. + * New & Improved + + We added a new method, API.add_static_route(), that makes it + easy to serve files from a local directory. This feature + provides an alternative to serving files from the web server + when you don't have that option, when authorization is required, + or for testing purposes. + + Arguments can now be passed to hooks. + + The default JSON media type handler will now use ujson, if + available, to speed up JSON (de)serialization under CPython. + + Semantic validation via the format keyword is now enabled for + the falcon.media.validators.jsonschema.validate() JSON Schema + decorator. + + We added a new helper, falcon.Request.get_param_as_uuid(), to + the Request class. + + We added a new property, downloadable_as, to the Response class + for setting the Content-Disposition header. + + Falcon now supports WebDAV methods (RFC 3253), such as UPDATE + and REPORT. + + falcon.routing.create_http_method_map has been refactored into + two new methods, falcon.routing.map_http_methods and + falcon.routing.set_default_responders, so that custom routers + can better pick and choose the functionality they need. The + original method is still available for backwards-compatibility, + but will be removed in a future release. + + We added a new json param to falcon.testing.simulate_request() + et al. to automatically serialize the request body from a JSON + serializable object or type (for a complete list of serializable + types, see json.JSONEncoder). + + TestClient's simulate_*() methods now call + TestClient.simulate_request to make it easier for subclasses to + override TestClient's behavior. + + TestClient can now be configured with a default set of headers + to send with every request. + + testing.Result.json now returns None when the response body is + empty, rather than raising an error. + + The FAQ has been reorganized and greatly expanded. + + We restyled the docs to match https://falconframework.org + * Fixed + + Forwarded headers containing quoted strings with commas were not + being parsed correctly. This has been fixed, and the parser + generally made more robust. + + falcon.media.JSONHandler was raising an error under Python 2.x + when serializing strings containing Unicode code points. This + issue has been fixed. + + Overriding a resource class and calling its responders via + super() did not work when passing URI template params as + positional arguments. This has now been fixed. + + Python 3.6 was generating warnings for strings containing '\s' + within Falcon. These strings have been converted to raw strings + to mitigate the warning. + + Several syntax errors were found and fixed in the code examples + used in the docs. + ------------------------------------------------------------------- Tue Oct 3 05:44:49 UTC 2017 - arun@gmx.de diff --git a/python-falcon.spec b/python-falcon.spec index 72dba4f..81815a9 100644 --- a/python-falcon.spec +++ b/python-falcon.spec @@ -1,7 +1,7 @@ # # spec file for package python-falcon # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -19,15 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-falcon -Version: 1.3.0 +Version: 1.4.1 Release: 0 Summary: A web framework for building APIs and app backends License: Apache-2.0 Group: Development/Languages/Python Url: http://falconframework.org -Source: https://github.com/falconry/falcon/archive/%{version}.tar.gz -# The file on pypi misses docs/ext, should be fixed in next version -#Source: https://files.pythonhosted.org/packages/source/f/falcon/falcon-%%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/f/falcon/falcon-%{version}.tar.gz # PATCH-FIX-UPSTREAM remove_failing_test.patch sebix+novell.com@sebix.at -- removes a broken test Patch0: remove_failing_test.patch BuildRequires: %{python_module devel} @@ -51,6 +49,7 @@ BuildRequires: %{python_module testtools} # /SECTION # SECTION docs BuildRequires: python3-Sphinx +BuildRequires: python3-pygments-style-railscasts # /SECTION Requires: python-python-mimeparse Requires: python-six From bc2db47c7d12441d0f545f74d8c57101003ffbd11bdf82c1b3844149d8ca3cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 29 Jan 2018 00:33:44 +0000 Subject: [PATCH 2/4] Fix OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=23 --- python-falcon.changes | 7 ------- python-falcon.spec | 10 ++++++++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/python-falcon.changes b/python-falcon.changes index 55f9488..48e1ca0 100644 --- a/python-falcon.changes +++ b/python-falcon.changes @@ -4,7 +4,6 @@ Wed Jan 17 03:58:52 UTC 2018 - arun@gmx.de - specfile: * update copyright year * require pygments-style-railscasts to build documentation - * switched back to pypi for source tar-ball - update to version 1.4.1: * Fixed @@ -15,12 +14,6 @@ Wed Jan 17 03:58:52 UTC 2018 - arun@gmx.de and a validation step was added to the build process. - changes from version 1.4.0: - * Changes to Supported Platforms - + Python 3 is now supported on PyPy as of PyPy3.5 v5.10. - + Support for CPython 3.3 is now deprecated and will be removed in - Falcon 2.0. - + As with the previous release, Python 2.6 and Jython 2.7 remain - deprecated and will no longer be supported in Falcon 2.0. * New & Improved + We added a new method, API.add_static_route(), that makes it easy to serve files from a local directory. This feature diff --git a/python-falcon.spec b/python-falcon.spec index 81815a9..bf35ca6 100644 --- a/python-falcon.spec +++ b/python-falcon.spec @@ -25,9 +25,13 @@ Summary: A web framework for building APIs and app backends License: Apache-2.0 Group: Development/Languages/Python Url: http://falconframework.org -Source: https://files.pythonhosted.org/packages/source/f/falcon/falcon-%{version}.tar.gz +Source: https://github.com/falconry/falcon/archive/%{version}.tar.gz#./falcon-%{version}.tar.gz +# The file on pypi misses docs/ext, should be fixed in next version +# Source: https://files.pythonhosted.org/packages/source/f/falcon/falcon-%%{version}.tar.gz # PATCH-FIX-UPSTREAM remove_failing_test.patch sebix+novell.com@sebix.at -- removes a broken test Patch0: remove_failing_test.patch +# TODO: Cython support +# BuildRequires: %%{python_module Cython} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -51,6 +55,7 @@ BuildRequires: %{python_module testtools} BuildRequires: python3-Sphinx BuildRequires: python3-pygments-style-railscasts # /SECTION +# Requires: python-Cython Requires: python-python-mimeparse Requires: python-six Suggests: %{name}-doc @@ -76,7 +81,8 @@ HTML documentation including API documentation and changelog for %name. %setup -q -n falcon-%{version} %patch0 -p1 # remove unwanted shebang -sed -i '1s/^#!.*//' falcon/bench/bench.py falcon/cmd/print_routes.py +sed -i '1s/^#!.*//' falcon/bench/bench.py falcon/cmd/print_routes.py falcon/bench/dj/manage.py +chmod a-x falcon/bench/dj/manage.py %build export CFLAGS="%{optflags} -fno-strict-aliasing" From bdadf843fea6db8f83821195b4bfa627d85453e72d56ad5979f49cb44e761890 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 27 Feb 2018 21:32:50 +0000 Subject: [PATCH 3/4] Accepting request 580730 from home:aplanas:branches:devel:languages:python - Suggests only for SUSE OBS-URL: https://build.opensuse.org/request/show/580730 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=24 --- python-falcon.changes | 5 +++++ python-falcon.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/python-falcon.changes b/python-falcon.changes index 48e1ca0..6500709 100644 --- a/python-falcon.changes +++ b/python-falcon.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 27 17:16:01 UTC 2018 - aplanas@suse.com + +- Suggests only for SUSE + ------------------------------------------------------------------- Wed Jan 17 03:58:52 UTC 2018 - arun@gmx.de diff --git a/python-falcon.spec b/python-falcon.spec index bf35ca6..b378586 100644 --- a/python-falcon.spec +++ b/python-falcon.spec @@ -58,7 +58,9 @@ BuildRequires: python3-pygments-style-railscasts # Requires: python-Cython Requires: python-python-mimeparse Requires: python-six +%if 0%{?suse_version} >= 1000 Suggests: %{name}-doc +%endif Requires(post): update-alternatives Requires(postun): update-alternatives From fac3db8b4563bea6ff937eea80d58c43c9e523b78c15dff8f4be94c7c46c71d3 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 6 Mar 2018 14:31:29 +0000 Subject: [PATCH 4/4] Accepting request 583399 from home:aplanas:branches:devel:languages:python - Allows Recommends and Suggest in Fedora OBS-URL: https://build.opensuse.org/request/show/583399 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=25 --- python-falcon.changes | 5 +++++ python-falcon.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-falcon.changes b/python-falcon.changes index 6500709..cd43347 100644 --- a/python-falcon.changes +++ b/python-falcon.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 6 13:56:37 UTC 2018 - aplanas@suse.com + +- Allows Recommends and Suggest in Fedora + ------------------------------------------------------------------- Tue Feb 27 17:16:01 UTC 2018 - aplanas@suse.com diff --git a/python-falcon.spec b/python-falcon.spec index b378586..2d37ee6 100644 --- a/python-falcon.spec +++ b/python-falcon.spec @@ -58,7 +58,7 @@ BuildRequires: python3-pygments-style-railscasts # Requires: python-Cython Requires: python-python-mimeparse Requires: python-six -%if 0%{?suse_version} >= 1000 +%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 Suggests: %{name}-doc %endif Requires(post): update-alternatives