Skip to content

Commit 0c44114

Browse files
peter-doggartPeter Doggart
and
Peter Doggart
authored
Prepare release 1.3.0 (#584)
* Prepare for 1.3.0 release with flask 3.0.0 support. --------- Co-authored-by: Peter Doggart <[email protected]>
1 parent 25cb897 commit 0c44114

File tree

9 files changed

+31
-12
lines changed

9 files changed

+31
-12
lines changed

CHANGELOG.rst

+9-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ Releases prior to 0.3.0 were “best effort” filled out, but are missing
2525
some info. If you see your contribution missing info, please open a PR
2626
on the Changelog!
2727

28-
.. _section-1.2.1:
29-
1.2.1
28+
.. _section-1.3.0:
29+
1.3.0
3030
-----
31-
.. _bug_fixes-1.2.1
31+
.. _bug_fixes-1.3.0
3232
Bug Fixes
3333
~~~~~~~~~
3434

@@ -37,7 +37,12 @@ Bug Fixes
3737
* Fixing werkzeug 3 deprecated version import. Import is replaced by new style version check with importlib (#573) [Ryu-CZ]
3838
* Fixing flask 3.0+ compatibility of `ModuleNotFoundError: No module named 'flask.scaffold'` Import error. (#567) [Ryu-CZ]
3939
* Fix wrong status code and message on responses when handling `HTTPExceptions` (#569) [lkk7]
40-
40+
* Add flask 2 and flask 3 to testing matrix. [foarsitter]
41+
* Update internally pinned pytest-flask to 1.3.0 for Flask >=3.0.0 support. [peter-doggart]
42+
* Python 3.12 support. [foarsitter]
43+
* Fix wrong status code and message on responses when handling HTTPExceptions. [ikk7]
44+
* Update changelog Flask version table. [peter-doggart]
45+
* Remove temporary package version restrictions for flask < 3.0.0, werkzeug and jsonschema (jsonschema future deprecation warning remains. See #553). [peter-doggart]
4146

4247
.. _section-1.2.0:
4348
1.2.0

README.rst

+7-1
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,14 @@ Flask and Werkzeug moved to versions 2.0 in March 2020. This caused a breaking c
6262
* - >= 0.5.0
6363
- < 3.0.0
6464
- unpinned, import statements wrapped for compatibility
65+
* - == 1.2.0
66+
- < 3.0.0
67+
- pinned in Flask-RESTX.
68+
* - >= 1.3.0
69+
- >= 2.0.0 (Flask >= 3.0.0 support)
70+
- unpinned, import statements wrapped for compatibility
6571
* - trunk branch in Github
66-
- < 3.0.0 (Flask >=3.0.0 support is in progress, see https://github.com/python-restx/flask-restx/issues/566)
72+
- >= 2.0.0 (Flask >= 3.0.0 support)
6773
- unpinned, will address issues faster than releases.
6874

6975
Installation

doc/swagger.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ Documenting authorizations
757757
You can use the ``authorizations`` keyword argument to document authorization information.
758758
See `Swagger Authentication documentation <https://swagger.io/docs/specification/2-0/authentication/>`_
759759
for configuration details.
760-
- ``authorizations`` is a Python dictionary representation of the Swagger ``securityDefinitions`` configuration.
760+
- ``authorizations`` is a Python dictionary representation of the Swagger ``securityDefinitions`` configuration.
761761

762762
.. code-block:: python
763763

flask_restx/api.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@
3434
from .postman import PostmanCollectionV1
3535
from .resource import Resource
3636
from .swagger import Swagger
37-
from .utils import default_id, camel_to_dash, unpack, import_check_view_func, BaseResponse
37+
from .utils import (
38+
default_id,
39+
camel_to_dash,
40+
unpack,
41+
import_check_view_func,
42+
BaseResponse,
43+
)
3844
from .representations import output_json
3945
from ._http import HTTPStatus
4046

flask_restx/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def import_werkzeug_response():
4242

4343
BaseResponse = import_werkzeug_response()
4444

45+
4546
class FlaskCompatibilityWarning(DeprecationWarning):
4647
pass
4748

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flask-restx",
3-
"version": "1.1.0",
3+
"version": "1.3.0",
44
"description": "Fully featured framework for fast, easy and documented API development with Flask",
55
"repository": "python-restx/flask-restx",
66
"keywords": [

requirements/install.pip

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
aniso8601>=0.82
2-
jsonschema<=4.17.3
3-
Flask>=0.8, !=2.0.0, <3.0.0
4-
werkzeug!=2.0.0, <3.0.0
2+
jsonschema
3+
Flask>=0.8, !=2.0.0
4+
werkzeug!=2.0.0
55
pytz
66
importlib_resources

requirements/test.pip

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mock==3.0.5
44
pytest==7.0.1
55
pytest-benchmark==3.4.1
66
pytest-cov==4.0.0
7-
pytest-flask==1.2.0
7+
pytest-flask==1.3.0
88
pytest-mock==3.6.1
99
pytest-profiling==1.7.0
1010
tzlocal

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def pip(filename):
106106
"Programming Language :: Python :: 3.9",
107107
"Programming Language :: Python :: 3.10",
108108
"Programming Language :: Python :: 3.11",
109+
"Programming Language :: Python :: 3.12",
109110
"Programming Language :: Python :: Implementation :: PyPy",
110111
"Topic :: Software Development :: Libraries :: Python Modules",
111112
"License :: OSI Approved :: BSD License",

0 commit comments

Comments
 (0)