Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(3.1.2): prepare first beta release of 3.1.2 #2188

Merged
merged 3 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ listed below by date of first contribution:
* Laurent Chriqui (laurent-chriqui)
* Andrii Oriekhov (andriyor)
* Tom Boshoven (TBoshoven)
* Libor Jelínek (liborjelinek)

(et al.)

Expand Down
8 changes: 7 additions & 1 deletion docs/_newsfragments/2157.bugfix.rst
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
:class:`~falcon.testing.TestCase` mimics behavior of real WSGI servers following WSGI spec where is said that ``PATH_INFO`` CGI variable for WSGI app is already percent-decoded. However, this breaks routing if slash (encoded as ``%2F``) is part of path element, not a path separator, as explained in the FAQ :ref:`routing_encoded_slashes`. The workaround based on some WSGI servers' non-standard CGI variables described in :ref:`raw_url_path_recipe` recipe breaks tests because :py:func:`falcon.testing.helpers.create_environ` hard-code CGI variable ``RAW_URI`` to ``/`` instead to real path *before* percent-decoding.
Falcon's :class:`~falcon.testing.TestClient` mimics the behavior of real WSGI
servers (and the WSGI spec) by presenting the ``PATH_INFO`` CGI variable
already in the percent-decoded form. However, the client also used to
indiscriminately set the non-standard ``RAW_URI`` CGI variable to ``/``, which
made writing tests for apps :ref:`decoding raw URL path <raw_url_path_recipe>`
cumbersome. This has been fixed, and the raw path of a simulated request is now
preserved in ``RAW_URI``.
35 changes: 35 additions & 0 deletions docs/changes/3.1.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Changelog for Falcon 3.1.1
==========================

Summary
-------

This is a minor point release fixing a couple of high impact bugs,
as well as publishing binary wheels for the recently released CPython 3.12.


Changes to Supported Platforms
------------------------------

- Falcon is now supported (including binary wheels) on CPython 3.12.
A couple of remaining stdlib deprecations from 3.11 and 3.12 will be
addressed in Falcon 4.0.
- As with the previous release, Python 3.5 & 3.6 remain deprecated and
will no longer be supported in Falcon 4.0.
- EOL Python 3.7 will no longer be actively supported in 4.0, but the framework
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for me it's fine to also remove 3.7 support for v4, but I don't think it's high impact since there aren't much improvements.

3.8 would be higher impact since targeting 3.9+ allows the type | type typing syntax to work. But it's not yet that time :)

should still continue to install from source. We may remove the support for
3.7 altogether later in the 4.x series if we are faced with incompatible
ecosystem changes in typing, Cython, etc.


.. towncrier release notes start

Contributors to this Release
----------------------------

Many thanks to those who contributed to this bugfix release:

- `CaselIT <https://github.com/CaselIT>`__
- `kgriffs <https://github.com/kgriffs>`__
- `liborjelinek <https://github.com/liborjelinek>`__
- `vytas7 <https://github.com/vytas7>`__
1 change: 1 addition & 0 deletions docs/changes/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Changelogs

.. toctree::

3.1.2 <3.1.2>
3.1.1 <3.1.1>
3.1.0 <3.1.0>
3.0.1 <3.0.1>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[tool.towncrier]
package = "falcon"
package_dir = ""
filename = "docs/changes/3.1.1.rst"
filename = "docs/changes/3.1.2.rst"
directory = "docs/_newsfragments"
issue_format = "`#{issue} <https://github.com/falconry/falcon/issues/{issue}>`__"

Expand Down
Loading