forked from pool/python-falcon
Accepting request 583416 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/583416 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-falcon?expand=0&rev=10
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1917c39a8f2f5ca6998141d88c8547113a7a9bbd0f00785cc8152e8c593cf44b
|
||||
size 507250
|
3
falcon-1.4.1.tar.gz
Normal file
3
falcon-1.4.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1c3185a131977bcb9f6d53a5f90a2462f040cd16152aaefd2f70e0e43979209a
|
||||
size 555980
|
@@ -1,3 +1,82 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
- Suggests only for SUSE
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 17 03:58:52 UTC 2018 - arun@gmx.de
|
||||
|
||||
- specfile:
|
||||
* update copyright year
|
||||
* require pygments-style-railscasts to build documentation
|
||||
|
||||
- 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:
|
||||
* 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
|
||||
|
||||
|
@@ -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,17 +19,19 @@
|
||||
%{?!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
|
||||
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
|
||||
# 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,10 +53,14 @@ BuildRequires: %{python_module testtools}
|
||||
# /SECTION
|
||||
# SECTION docs
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-pygments-style-railscasts
|
||||
# /SECTION
|
||||
# Requires: python-Cython
|
||||
Requires: python-python-mimeparse
|
||||
Requires: python-six
|
||||
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
|
||||
Suggests: %{name}-doc
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
@@ -77,7 +83,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"
|
||||
|
Reference in New Issue
Block a user