Commit graph

400 commits

Author SHA1 Message Date
David Lord
eb1182a10e
fix mypy finding 2024-05-06 10:12:32 -07:00
David Lord
a363642a32
fix mypy finding with new werkzeug endpoint type 2024-05-06 10:09:58 -07:00
pgjones
5fdce4c331
Don't set the cli attribute in the sansio scaffold
It is (currently) Flask specific and hence cannot be shared in the
sansio shared code.
2024-04-07 12:13:02 -07:00
David Lord
db461112c7
access sha1 lazily 2024-04-07 11:41:13 -07:00
David Lord
87d5f5b9a9
update project files (#5457)
* update pre-commit hook
* upgrade pip with venv
* update description and version
* show url in publish environment
* update versions
* update versions, separate typing job
* use dependabot grouped updates
  ignore upload/download-artifact until slsa updates
* use sphinx.ext.extlinks instead of sphinx-issues
* update dev dependencies
* update editorconfig
* update gitignore
* update .readthedocs.yaml
* license is txt, readme is md
* update pyproject.toml
  add typed classifier
  add pyright config
  simplify urls
* tox builds docs in place
* update min test py version
* add tox env to update all dev dependencies
* update issue and pr templates
* rename security docs page to not conflict with org policy file
* simplify matrix
2024-04-07 10:24:40 -07:00
Tony Huang
1af8f95785
fix super call in list comprehension 2024-02-03 12:36:06 -08:00
Cody Scott
ecc057dd48
fix jinja_loader annotation 2024-02-03 12:14:38 -08:00
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