Commit graph

4304 commits

Author SHA1 Message Date
David Lord
bc90801c2a
Merge pull request #4091 from pallets/release-2.0.1
release version 2.0.1
2021-05-21 08:52:24 -07:00
David Lord
fe2d744b53
release version 2.0.1 2021-05-21 08:50:31 -07:00
David Lord
9f606a8cbb
Merge pull request #4090 from pallets/stream-type
improve typing for `stream_with_context`
2021-05-21 08:48:02 -07:00
David Lord
7ab934f6bc
improve typing for stream_with_context 2021-05-21 08:42:44 -07:00
David Lord
6b1c4e9769
Merge pull request #4087 from greyli/gitignore
Add venv and .venv to .gitignore
2021-05-21 07:10:50 -07:00
David Lord
255461d895
Merge pull request #4074 from pgjones/bp
blueprints are registered with nested names, can change registered name
2021-05-21 07:09:02 -07:00
pgjones
3257b7574e Fix blueprint renaming
This ensures that if a blueprint is renamed at the time of
registration that name is used when constructing endpoints, as
expected.
2021-05-21 15:04:30 +01:00
pgjones
714b0a467a Fix blueprint self registration
By raising a ValueError if attempted. I don't see a use case that
makes this worth supporting.
2021-05-21 15:04:30 +01:00
David Lord
9409be6e34 warn when registering same blueprint with same name 2021-05-21 15:04:30 +01:00
David Lord
63b306743f changelog for blueprint registered name 2021-05-21 15:04:30 +01:00
David Lord
67b0b7e30d cache blueprint path calculation 2021-05-21 15:04:18 +01:00
pgjones
c2920e2bd9 Bugfix allow blueprints to be registered with a different name
This allows the same blueprint to be registered multiple times at the
same level, but with differing url_prefixes and names.
2021-05-21 15:04:18 +01:00
pgjones
141fde1d8e Bugfix blueprint naming
Following discussions for Flask we've decided to name blueprints based
on how they are registered. This allows for two different blueprints
to have the same self-name as long as they are registered in different
nested positions. This helps users choose better blueprint names.
2021-05-21 15:04:18 +01:00
pgjones
99afbb277d Fix blueprint nested url_prefix
This ensures that the url_prefix is correctly applied, no matter if
set during the registration override or when constructing the
blueprint.
2021-05-21 15:04:18 +01:00
Grey Li
a541c2ac8b Fix view decorators docs 2021-05-21 12:11:03 +00:00
Grey Li
36872e7bd4 Add venv and .venv to .gitignore 2021-05-21 16:58:58 +08:00
Alex Hedges
a82cc31af8 Update CHANGES.rst 2021-05-21 08:09:05 +00:00
Alex Hedges
10a36cb60e Improve decorator factory type signatures
These changes are required to preserve the type signatures of the
created decorators.
2021-05-21 08:09:05 +00:00
Alex Hedges
8796b2a784 Use TypeVar for setupmethod()
TypeVar is needed to preserve function signatures. The type cast for
update_wrapper is needed because wapper_func can not use the full
signature that f does.
2021-05-21 08:09:05 +00:00
Alex Hedges
bf982718cf Make add_url_rule() signature consistent
This caused a mypy error when I was making another typing improvement,
so I am fixing it before committing my other changes.
2021-05-21 08:09:05 +00:00
Oleksis Fraga Menéndez
0d594b8c0f
Add update pip and setuptools section (#4061)
* Add update pip and setuptools section

* Simplify the command to upgrade pip

Co-authored-by: Grey Li <withlihui@gmail.com>
2021-05-21 12:33:09 +08:00
David Lord
0cfce9a0ec
Merge pull request #4084 from pallets/update-theme
Update theme
2021-05-20 21:05:36 -07:00
David Lord
9889ca8bca
update pallets and sphinx requirements 2021-05-20 21:03:33 -07:00
David Lord
cfda270899
update pallets-sphinx-themes 2021-05-20 21:03:02 -07:00
David Lord
69e6d59ac8
Merge pull request #4081 from pallets/config-json
re-add deprecated `Config.from_json` method
2021-05-20 13:52:09 -07:00
David Lord
10425fb9b1
re-add deprecated Config.from_json method 2021-05-20 13:50:13 -07:00
David Lord
b5518e23f5
Merge pull request #4072 from pallets/typeshed
use _typeshed.wsgi instead of wsgiref.types
2021-05-17 16:06:10 -07:00
David Lord
afc907fd0d
use _typeshed.wsgi instead of wsgiref.types 2021-05-17 16:03:12 -07:00
David Lord
19b905eeef
Merge pull request #4066 from dannysepler/pathlib-in-test
Add pathlib in cli tests
2021-05-17 08:51:30 -07:00
Danny Sepler
1b5f21e015
Add pathlib in cli tests 2021-05-17 08:46:36 -07:00
David Lord
1c3052377b
Merge pull request #4063 from pgjones/bp-fix
Bp fix
2021-05-17 07:56:20 -07:00
pgjones
6fbdeb80c7 Fix nested blueprint url_prefix
This fixes the case where the blueprint is registered with a
url_prefix but any child blueprints have no prefixes.
2021-05-17 15:47:25 +01:00
David Lord
f64fff6476
Merge pull request #4057 from rafaVls/unused-escape-import
Unused escape import
2021-05-14 13:54:21 -07:00
Rafael Aviles
9c186ccfe8 Use escape function in return statement for username and subpath. 2021-05-14 13:23:34 -07:00
David Lord
6e0fb11717
Merge pull request #4056 from pallets/converter-session
converters have access to session
2021-05-14 08:23:44 -07:00
David Lord
a7b02b3a07
converters have access to session 2021-05-14 08:11:09 -07:00
David Lord
8648750997
Merge branch '1.1.x' into 2.0.x 2021-05-13 18:47:06 -07:00
David Lord
1ca199f9b3
Merge pull request #4051 from pallets/release-1.1.4
release version 1.1.4
2021-05-13 18:44:46 -07:00
David Lord
64a5d7a018
release version 1.1.4 2021-05-13 18:22:56 -07:00
David Lord
5f8d3ea2fc
Merge pull request #4049 from brettlangdon/fix.os.fspath
Use compat fspath instead of os.fspath in static_folder
2021-05-13 18:19:46 -07:00
brettlangdon
3ace642ef3
Use compat fspath instead of os.fspath
When 7ba35c4 was cherry-picked it introduced the
usage of os.fspath which is not supported on
Python <3.6
2021-05-13 18:17:00 -07:00
David Lord
5bd959fbec
Merge branch '1.1.x' into 2.0.x 2021-05-13 16:34:58 -07:00
David Lord
c04b0de558
Merge pull request #4048 from pallets/release-1.1.3
Release 1.1.3
2021-05-13 16:24:21 -07:00
David Lord
661bbcdb90
release version 1.1.3 2021-05-13 16:22:57 -07:00
David Lord
ae647b5750
Merge pull request #4047 from pallets/maximum-versions
set maximum versions for 1.1.x to avoid new major versions
2021-05-13 16:20:28 -07:00
David Lord
6d8b4ce9d0
set maximum versions of pallets dependencies 2021-05-13 16:16:45 -07:00
David Lord
f3551c8b90
Merge pull request #4036 from greyli/fix-nesting-bp
Fix url_prefix argument for nesting blueprint
2021-05-13 15:27:41 -07:00
Grey Li
e93704fbfd
fix url_prefix argument when nesting blueprints 2021-05-13 15:02:13 -07:00
David Lord
08e459e823
Merge pull request #4045 from pallets/blueprint-name-dot
blueprint name may not contain a dot
2021-05-13 14:34:28 -07:00
David Lord
7c5261407d
blueprint name may not contain a dot 2021-05-13 14:31:50 -07:00