forked from pool/python-falcon
Accepting request 531497 from home:apersaud:branches:devel:languages:python
update to latest version OBS-URL: https://build.opensuse.org/request/show/531497 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=20
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:54dccf425b8805e38c36713f8c1e98cd2e81b68ef838696c2dce900affe894c7
|
|
||||||
size 482506
|
|
3
1.3.0.tar.gz
Normal file
3
1.3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1917c39a8f2f5ca6998141d88c8547113a7a9bbd0f00785cc8152e8c593cf44b
|
||||||
|
size 507250
|
@@ -1,3 +1,46 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 3 05:44:49 UTC 2017 - arun@gmx.de
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* require jsonschema
|
||||||
|
* require msgpack-python
|
||||||
|
|
||||||
|
- updated patch
|
||||||
|
|
||||||
|
- update to version 1.3.0:
|
||||||
|
* Changes to Supported Platforms
|
||||||
|
+ CPython 3.6 is now fully supported.
|
||||||
|
+ Falcon appears to work well on PyPy3.5, but we are waiting until
|
||||||
|
that platform is out of beta before officially supporting it.
|
||||||
|
+ Support for both CPython 2.6 and Jython 2.7 is now deprecated
|
||||||
|
and will be discontinued in Falcon 2.0.
|
||||||
|
* New & Improved
|
||||||
|
+ We added built-in resource representation serialization and
|
||||||
|
deserialization, including input validation based on JSON
|
||||||
|
Schema.
|
||||||
|
+ URI template field converters are now supported. We expect to
|
||||||
|
expand this feature over time.
|
||||||
|
+ A new method, get_param_as_datetime(), was added to the Request
|
||||||
|
class.
|
||||||
|
+ A number of attributes were added to the Request class to make
|
||||||
|
proxy information easier to consume. These include the
|
||||||
|
forwarded, forwarded_uri, forwarded_scheme, forwarded_host, and
|
||||||
|
forwarded_prefix attributes. The prefix attribute was also added
|
||||||
|
as part of this work.
|
||||||
|
+ A referer attribute was added to the Request class.
|
||||||
|
+ We implemented __repr__() for Request, Response, and HTTPError
|
||||||
|
to aid in debugging.
|
||||||
|
+ A number of Internet media type constants were defined to make
|
||||||
|
it easier to check and set content type headers.
|
||||||
|
+ Several new 5xx error classes were implemented.
|
||||||
|
* Fixed
|
||||||
|
+ If even a single cookie in the request to the server is
|
||||||
|
malformed, none of the cookies will be parsed
|
||||||
|
(all-or-nothing). Change the parser to simply skip bad cookies
|
||||||
|
(best-effort).
|
||||||
|
+ API instances are not pickleable. Modify the default router to
|
||||||
|
fix this.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Sep 2 09:56:45 UTC 2017 - sebix+novell.com@sebix.at
|
Sat Sep 2 09:56:45 UTC 2017 - sebix+novell.com@sebix.at
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
Name: python-falcon
|
Name: python-falcon
|
||||||
Version: 1.2.0
|
Version: 1.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A web framework for building APIs and app backends
|
Summary: A web framework for building APIs and app backends
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@@ -39,6 +39,8 @@ BuildRequires: python-rpm-macros
|
|||||||
BuildRequires: %{python_module PyYAML}
|
BuildRequires: %{python_module PyYAML}
|
||||||
BuildRequires: %{python_module ddt}
|
BuildRequires: %{python_module ddt}
|
||||||
BuildRequires: %{python_module fixtures >= 1.3.0}
|
BuildRequires: %{python_module fixtures >= 1.3.0}
|
||||||
|
BuildRequires: %{python_module jsonschema}
|
||||||
|
BuildRequires: %{python_module msgpack-python}
|
||||||
BuildRequires: %{python_module pytest-runner}
|
BuildRequires: %{python_module pytest-runner}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module python-mimeparse >= 1.5.2}
|
BuildRequires: %{python_module python-mimeparse >= 1.5.2}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
--- falcon-1.2.0/tests/test_utils.py 2017-05-02 01:05:49.000000000 +0200
|
--- falcon-1.2.0/tests/test_utils.py 2017-05-02 01:05:49.000000000 +0200
|
||||||
+++ falcon-1.2.0/tests/test_utils.py 2017-09-02 11:54:01.484271099 +0200
|
+++ falcon-1.2.0/tests/test_utils.py 2017-09-02 11:54:01.484271099 +0200
|
||||||
@@ -37,26 +37,6 @@
|
@@ -33,19 +33,6 @@
|
||||||
# below.
|
# below.
|
||||||
self.uris = _arbitrary_uris(count=100, length=32)
|
self.uris = _arbitrary_uris(count=100, length=32)
|
||||||
|
|
||||||
@@ -11,18 +11,11 @@
|
|||||||
- def old_thing():
|
- def old_thing():
|
||||||
- pass
|
- pass
|
||||||
-
|
-
|
||||||
- if six.PY3:
|
- with pytest.warns(UserWarning) as rec:
|
||||||
- stream = io.StringIO()
|
|
||||||
- else:
|
|
||||||
- stream = io.BytesIO()
|
|
||||||
-
|
|
||||||
- old_stderr = sys.stderr
|
|
||||||
- sys.stderr = stream
|
|
||||||
-
|
|
||||||
- old_thing()
|
- old_thing()
|
||||||
-
|
-
|
||||||
- sys.stderr = old_stderr
|
- warn = rec.pop()
|
||||||
- self.assertIn(msg, stream.getvalue())
|
- assert msg in str(warn.message)
|
||||||
-
|
-
|
||||||
def test_http_now(self):
|
def test_http_now(self):
|
||||||
expected = datetime.utcnow()
|
expected = datetime.utcnow()
|
||||||
|
Reference in New Issue
Block a user