diff --git a/1.2.0.tar.gz b/1.2.0.tar.gz deleted file mode 100644 index 73fe073..0000000 --- a/1.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:54dccf425b8805e38c36713f8c1e98cd2e81b68ef838696c2dce900affe894c7 -size 482506 diff --git a/1.3.0.tar.gz b/1.3.0.tar.gz new file mode 100644 index 0000000..963da19 --- /dev/null +++ b/1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1917c39a8f2f5ca6998141d88c8547113a7a9bbd0f00785cc8152e8c593cf44b +size 507250 diff --git a/python-falcon.changes b/python-falcon.changes index 0d7d949..7ce9ef1 100644 --- a/python-falcon.changes +++ b/python-falcon.changes @@ -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 diff --git a/python-falcon.spec b/python-falcon.spec index 4e8d1ab..72dba4f 100644 --- a/python-falcon.spec +++ b/python-falcon.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-falcon -Version: 1.2.0 +Version: 1.3.0 Release: 0 Summary: A web framework for building APIs and app backends License: Apache-2.0 @@ -39,6 +39,8 @@ BuildRequires: python-rpm-macros BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module ddt} 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} BuildRequires: %{python_module python-mimeparse >= 1.5.2} diff --git a/remove_failing_test.patch b/remove_failing_test.patch index d1563c5..7faff0e 100644 --- a/remove_failing_test.patch +++ b/remove_failing_test.patch @@ -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-09-02 11:54:01.484271099 +0200 -@@ -37,26 +37,6 @@ +@@ -33,19 +33,6 @@ # below. self.uris = _arbitrary_uris(count=100, length=32) @@ -11,18 +11,11 @@ - def old_thing(): - pass - -- if six.PY3: -- stream = io.StringIO() -- else: -- stream = io.BytesIO() +- with pytest.warns(UserWarning) as rec: +- old_thing() - -- old_stderr = sys.stderr -- sys.stderr = stream -- -- old_thing() -- -- sys.stderr = old_stderr -- self.assertIn(msg, stream.getvalue()) +- warn = rec.pop() +- assert msg in str(warn.message) - def test_http_now(self): expected = datetime.utcnow()