pgjones
83d358d2c4
remove _blueprint_order, dicts are ordered
...
This code originates from supporting Python 2.4. Dicts are ordered in
supported Pythons as of 3.6. An OrderedDict could be used to indicate
that order matters, but is not since we don't rely on the implementation
differences.
2021-03-08 09:58:12 -08:00
pgjones
fd62210f58
Utilise defaultdicts
...
This code originates from the Python 2.4 supporting version of Flask,
with defaultdicts being added in 2.5. Using defaultdict makes the
intentional usage clearer, and slightly simplifies the code.
2021-03-08 09:58:12 -08:00
David Lord
5fea7caba2
Merge pull request #3907 from pgjones/sugar
...
Add syntatic sugar for route registration
2021-03-08 08:57:58 -08:00
pgjones
705e52684a
Add syntatic sugar for route registration
...
This takes a popular API whereby instead of passing the HTTP method as
an argument to route it is instead used as the method name i.e.
@app.route("/", methods=["POST"])
is now writeable as,
@app.post("/")
This is simply syntatic sugar, it doesn't do anything else, but makes
it slightly easier for users.
I've included all the methods that are relevant and aren't auto
generated i.e. not connect, head, options, and trace.
2021-03-08 08:55:14 -08:00
dependabot-preview[bot]
82d69cd06c
Merge pull request #3926 from pallets/dependabot/pip/sphinx-3.5.1
2021-03-01 15:25:15 +00:00
dependabot-preview[bot]
e4e66186c3
Merge pull request #3925 from pallets/dependabot/pip/tox-3.22.0
2021-03-01 15:22:59 +00:00
dependabot-preview[bot]
1748bb02eb
Bump sphinx from 3.4.3 to 3.5.1
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 3.4.3 to 3.5.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/3.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v3.4.3...v3.5.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 15:17:54 +00:00
dependabot-preview[bot]
6e7869ec49
Bump tox from 3.21.4 to 3.22.0
...
Bumps [tox](https://github.com/tox-dev/tox ) from 3.21.4 to 3.22.0.
- [Release notes](https://github.com/tox-dev/tox/releases )
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/tox/compare/3.21.4...3.22.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 15:15:58 +00:00
David Lord
4846e25e92
Merge pull request #3917 from greyli/fix-date-parse
...
update json.dumps for http_date changes
2021-02-25 09:51:58 -08:00
Grey Li
49b7341a49
update json.dumps for http_date changes
2021-02-25 09:45:55 -08:00
David Lord
dcd3b5c8f8
Merge pull request #3922 from pallets/consistency
...
various cleanup for consistency between projects
2021-02-24 10:35:16 -08:00
David Lord
0c7cbe2d11
move version to setup.cfg
2021-02-24 10:09:50 -08:00
David Lord
9e7d3a6b69
docs rename changelog to changes
2021-02-24 10:09:38 -08:00
David Lord
3cd615a1d6
update project links
2021-02-24 10:09:15 -08:00
David Lord
aee3f3fee9
Merge pull request #3916 from greyli/fix-extdev-docs
...
Remove the mention of Flask-OAuth in the extension dev docs
2021-02-19 07:21:18 -08:00
Grey Li
76abbe9062
Remove the mention of Flask-OAuth in the extension dev docs
2021-02-19 22:59:09 +08:00
David Lord
8d9501598f
use rtd to build docs for prs
...
skip code tests when only docs change
2021-02-16 08:36:14 -08:00
David Lord
adeaf27e76
Merge pull request #3904 from pallets/update-project
...
update project files
2021-02-08 18:32:18 -08:00
David Lord
b496d8b7cb
update contributing guide
2021-02-08 18:26:37 -08:00
David Lord
3c00658772
update requirements
2021-02-08 18:23:10 -08:00
David Lord
dbe76bb75d
add security policy
...
copy from pallets/.github repo
github was using docs/security.rst by mistake
2021-02-08 18:20:48 -08:00
David Lord
571e638e2a
update issue templates
2021-02-08 18:17:45 -08:00
David Lord
bfd4dc6d30
update test config
2021-02-08 18:17:45 -08:00
David Lord
ee089488ad
Merge pull request #3901 from pallets/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-02-08 18:17:33 -08:00
pre-commit-ci[bot]
3fe23bf899
[pre-commit.ci] pre-commit autoupdate
2021-02-08 18:12:19 -08:00
David Lord
ff3fb96896
Merge pull request #3903 from pallets/update-werkzeug
...
fix tests for latest Werkzeug
2021-02-08 18:11:47 -08:00
David Lord
0ee1b0b5d9
remove test relying on Werkzeug Local internals
2021-02-08 18:04:02 -08:00
David Lord
192f4ae0b2
Merge pull request #3895 from pallets/jinja-tojson
...
use Jinja's tojson filter
2021-02-01 22:57:42 -08:00
David Lord
b473e7c97c
use Jinja's tojson filter
2021-02-01 22:48:09 -08:00
David Lord
fdf5d11b51
Merge pull request #3794 from mbpreble/open-session-request-endpoint-none
...
Ensure session_interface.open_session is called after URL matching
2021-02-01 20:45:02 -08:00
Matthew Preble
01621485fd
Ensure session_interface.open_session is called after URL matching ( #3776 )
2021-02-01 20:41:17 -08:00
David Lord
15f0fc2d24
Merge pull request #3883 from tonydelanuez/clarify-got-request-exception
...
Doc update: Clarify got_request_exception signal docs
2021-02-01 20:31:57 -08:00
Tony De La Nuez
451c1f87f3
got_request_exception only sends unhandled exceptions
...
Co-authored-by: David Lord <davidism@gmail.com>
2021-02-01 20:28:10 -08:00
David Lord
6355f12176
Merge pull request #3893 from pallets/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-02-01 19:59:58 -08:00
pre-commit-ci[bot]
d55ee5b917
[pre-commit.ci] pre-commit autoupdate
2021-02-01 19:55:24 -08:00
dependabot-preview[bot]
93261454e6
Merge pull request #3887 from pallets/dependabot/pip/packaging-20.9
2021-02-02 03:49:49 +00:00
dependabot-preview[bot]
fb5f04a8c7
Bump packaging from 20.8 to 20.9
...
Bumps [packaging](https://github.com/pypa/packaging ) from 20.8 to 20.9.
- [Release notes](https://github.com/pypa/packaging/releases )
- [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pypa/packaging/compare/20.8...20.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 03:45:39 +00:00
dependabot-preview[bot]
8b28c218c9
Merge pull request #3886 from pallets/dependabot/pip/jinja2-2.11.3
2021-02-02 03:44:56 +00:00
dependabot-preview[bot]
6c828c3bba
Merge pull request #3889 from pallets/dependabot/pip/pytest-6.2.2
2021-02-02 03:43:43 +00:00
dependabot-preview[bot]
e783424fbb
Merge pull request #3888 from pallets/dependabot/pip/sphinx-3.4.3
2021-02-02 03:42:43 +00:00
dependabot-preview[bot]
510268e914
Bump pytest from 6.2.1 to 6.2.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.1...6.2.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 03:41:04 +00:00
dependabot-preview[bot]
096ac67b97
Merge pull request #3891 from pallets/dependabot/pip/greenlet-1.0.0
2021-02-02 03:39:08 +00:00
dependabot-preview[bot]
296bd2f4cc
Bump jinja2 from 2.11.2 to 2.11.3
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 2.11.2 to 2.11.3.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/master/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/2.11.2...2.11.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 03:37:53 +00:00
dependabot-preview[bot]
7eebe22cf5
Bump sphinx from 3.4.1 to 3.4.3
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 3.4.1 to 3.4.3.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/3.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v3.4.1...v3.4.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 03:37:40 +00:00
dependabot-preview[bot]
d1b36ced14
Merge pull request #3892 from pallets/dependabot/pip/pre-commit-2.10.0
2021-02-02 03:35:58 +00:00
dependabot-preview[bot]
963f68abf4
Merge pull request #3890 from pallets/dependabot/pip/sphinx-tabs-2.0.0
2021-02-02 03:35:44 +00:00
dependabot-preview[bot]
c52ffa8ae7
Bump sphinx-tabs from 1.3.0 to 2.0.0
...
Bumps [sphinx-tabs](https://github.com/executablebooks/sphinx-tabs ) from 1.3.0 to 2.0.0.
- [Release notes](https://github.com/executablebooks/sphinx-tabs/releases )
- [Changelog](https://github.com/executablebooks/sphinx-tabs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/executablebooks/sphinx-tabs/compare/v1.3.0...v2.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 03:33:21 +00:00
dependabot-preview[bot]
5ecbf1e333
Bump greenlet from 0.4.17 to 1.0.0
...
Bumps [greenlet](https://github.com/python-greenlet/greenlet ) from 0.4.17 to 1.0.0.
- [Release notes](https://github.com/python-greenlet/greenlet/releases )
- [Changelog](https://github.com/python-greenlet/greenlet/blob/master/CHANGES.rst )
- [Commits](https://github.com/python-greenlet/greenlet/compare/0.4.17...1.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 03:33:16 +00:00
dependabot-preview[bot]
b379bd4a78
Bump pre-commit from 2.9.3 to 2.10.0
...
Bumps [pre-commit](https://github.com/pre-commit/pre-commit ) from 2.9.3 to 2.10.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases )
- [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md )
- [Commits](https://github.com/pre-commit/pre-commit/compare/v2.9.3...v2.10.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 03:33:13 +00:00
dependabot-preview[bot]
557e2147dd
Merge pull request #3885 from pallets/dependabot/pip/tox-3.21.3
2021-02-02 03:31:20 +00:00