David Lord
08d3185e87
update pre-commit hooks
2024-01-16 10:12:10 -08:00
David Lord
6000e80acf
address mypy strict findings
2024-01-16 10:11:13 -08:00
David Lord
700fc7d928
untag without object_hook
2024-01-15 07:49:02 -08:00
lizard
1d5abfadd7
Fixing issue 5342: 'The double quote is missing in the string'
2023-12-13 15:05:03 -08:00
Daniel Isaac
4104f29956
type hint fix for flask.send_file
2023-11-15 12:53:22 -08:00
David Lord
54e05a2824
use ruff linter and formatter
2023-11-15 12:14:37 -08:00
pgjones
438edcdf01
Allow self as an argument to url_for
...
This makes the Flask.url_for self argument positional only (Flask
supports Python 3.8+) thereby restoring the ability to pass self as a
value argument to url_for.
2023-09-30 15:25:31 +01:00
David Lord
293041a290
deprecate __version__ attribute
2023-08-29 06:03:11 -07:00
pgjones
65271c105f
Remove print left in by accident
...
This was added as per 0ec7f713d6 by
mistake.
2023-08-27 07:12:04 -07:00
David Lord
90967ccb9a
bump werkzeug 2.3.7 ( #5231 )
2023-08-21 09:42:21 -07:00
David Lord
5bb30270d2
bump werkzeug 2.3.7
...
use importlib.metadata.version
2023-08-21 09:39:10 -07:00
pgjones
318592511c
Add a brief README to the sansio
...
This should hopefully explain what it is used for and why certain code
cannot be present in it.
2023-08-19 18:35:15 +01:00
pgjones
80cf589a26
Correct the error handler typing
...
It may also be awaitable, as invocations are wrapped in ensure_sync.
2023-08-19 18:35:15 +01:00
pgjones
cc80a47f5b
Widen the response typing
...
Whilst not strictly true for Flask, it is true for Flask and Quart and
hence makes it much easier for Quart to extend Flask classes. The
alternatives are generic usage in the sansio codebase or mixed usage
within Flask. I think this is a good compromise.
2023-08-19 18:35:15 +01:00
pgjones
3f6b243cec
Support async template context processors
...
This is useful as there is contextual information that could be loaded
via IO e.g. information from a database. This also matches Quart and
hence makes the shared signature easier to manage.
2023-08-19 18:35:15 +01:00
pgjones
72c85e80c8
Provide an extendable merge blueprint funcs method
...
This allows a Blueprint implementation that has additional funcs, such
as Quart with its before_websocket_funcs (as example), to extend the
merge method to also merge these functions.
2023-08-19 18:35:15 +01:00
pgjones
0ec7f713d6
Split the App and Blueprint into Sansio and IO parts
...
This follows a similar structure in Werkzeug and allows for async
based IO projects, specifically Quart, to base themselves on
Flask.
Note that the globals, and signals are specific to Flask and hence
specific to Flask's IO. This means they cannot be moved to the sansio
part of the codebase.
2023-08-19 18:35:14 +01:00
pgjones
a64588f87a
Move file to sansio
...
This is preperation for refactoring the files so that there are sansio
and flask specific versions. This structure follows the Werkzeug
structure/pattern.
2023-08-19 18:35:00 +01:00
David Lord
04994df59f
remove deprecated code
2023-08-16 15:00:49 -07:00
David Lord
6a12b191f7
start version 3.0.0
2023-08-16 14:41:57 -07:00
hauntsaninja
17e146ad94
Pass maxsplit via kwarg to re.split
2023-08-16 13:33:13 -07:00
David Lord
bda295d37f
fix use of importlib.util.find_spec
2023-06-09 09:34:42 -07:00
David Lord
84e11a1e82
use importlib instead of pkgutil
2023-06-07 13:13:41 -07:00
David Lord
367e1df785
start version 2.3.3
2023-06-07 13:10:39 -07:00
pgjones
2abb7513dc
Allow for PathLike types for config file variables
...
This follows the Flask practice elsewhere and makes it clear PathLike
filenames are valid.
2023-05-14 16:09:25 +01:00
David Lord
1d7281fe07
remove egg test
...
eggs aren't supported, and Python 3.12 removes setuptools
2023-05-02 09:53:31 -07:00
David Lord
f3b8f57054
release version 2.3.2
2023-05-01 08:35:10 -07:00
David Lord
e1aedecdc6
update werkzeug
2023-05-01 08:18:03 -07:00
David Lord
8705dd39c4
set Vary: Cookie header consistently for session
2023-05-01 08:10:52 -07:00
David Lord
9532cba45d
fix mypy finding
2023-05-01 08:10:25 -07:00
David Lord
0bc7356ce1
start version 2.3.2
2023-05-01 08:02:46 -07:00
David Lord
721abdc381
release version 2.3.1
2023-04-25 14:08:38 -06:00
Lucas Werkmeister
0ec9192cf2
fix importing Markup from flask
2023-04-25 13:50:43 -06:00
David Lord
345f18442c
start version 2.3.1
2023-04-25 13:48:16 -06:00
David Lord
8728c3e4cd
release version 2.3.0
2023-04-25 12:35:06 -06:00
David Lord
79ebf6c39c
update minimum requirements
2023-04-25 12:28:59 -06:00
David Lord
2e8fe7b2f2
drop support for python 3.7
2023-04-20 11:09:55 -07:00
David Lord
44ffe6c6d6
add __future__ annotations
2023-04-20 09:24:44 -07:00
David Lord
84c007d34f
show subdomain or host in routes output
2023-04-14 09:43:00 -07:00
pgjones
8239765a44
allow async signal receivers
2023-04-13 08:05:42 -07:00
David Lord
9cb1a7a52d
blinker is required, signals are always available
2023-04-13 07:39:24 -07:00
Adam Dangoor
b626a93879
Allow Response subclasses to set default_mimetype as None
...
This matches the type - see 92c6380248/src/werkzeug/sansio/response.py (L94) .
2023-04-12 13:30:28 -07:00
David Lord
c24f8c8199
no cookie domain by default
2023-04-12 12:38:22 -07:00
David Lord
fa0ceb62f2
Merge branch '2.2.x'
2023-04-12 10:57:53 -07:00
David Lord
04c21387db
update test cookie handling for Werkzeug 2.3
2023-04-12 10:55:00 -07:00
Evgeny Mozhaev
b8b410014d
require a non-empty name for blueprints
2023-03-11 08:26:36 -08:00
David Lord
7ee9ceb71e
Merge branch '2.2.x'
2023-03-11 08:23:08 -08:00
David Lord
c4b39ba2f3
replace werkzeug.urls with urllib.parse
2023-03-11 08:19:22 -08:00
AntoineMath
b10b6d4af1
add text parameter to config.from_file
2023-02-23 11:10:21 -08:00
David Lord
4256fc6304
deprecate locked_cached_property
2023-02-23 10:05:57 -08:00