David Lord
4240ace597
Merge remote-tracking branch 'origin/2.0.x'
2021-05-13 16:01:23 -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
David Lord
d8c37f4372
Merge pull request #4026 from greyli/improve-type-hints
...
Improve type hints for send_file and send_from_directory
2021-05-13 13:35:12 -07:00
Grey Li
d5aadba4d3
improve type hints for send_file and send_from_directory
2021-05-13 13:33:07 -07:00
David Lord
6414df9756
Merge pull request #4042 from pallets/update-typing
...
Update typing
2021-05-13 13:09:49 -07:00
David Lord
25884c433f
fix typing that wasn't available in Python 3.6.0
2021-05-13 13:06:32 -07:00
David Lord
6fe7f45725
inform mypy that g has arbitrary attributes
2021-05-13 13:06:32 -07:00
David Lord
2baaa8fd8e
fix annotation for g object
2021-05-13 11:36:05 -07:00
David Lord
89475e5d1e
mark top-level names as exported
2021-05-13 11:36:05 -07:00
Grey Li
c121e8cea7
Merge pull request #4034 from oleksis/2.0.x
...
Fix Fork link
2021-05-13 16:00:48 +08:00
oleksis
1492160887
Fix Fork link
2021-05-13 03:54:41 -04:00
David Lord
d906c71e99
Merge pull request #4019 from greyli/re-add-filename
...
Re-add filename parameter for send_from_directory
2021-05-12 10:23:08 -07:00
Grey Li
fc82dd50e3
Re-add filename param for send_from_directory
...
Add a deprecation warning for the old name
2021-05-12 10:15:55 -07:00
David Lord
80d9519a9c
Merge pull request #4021 from andrewjroth/patch-1
...
Added Google Cloud Run as a Hosted option
2021-05-12 06:40:57 -07:00
Andrew J Roth
2889ea4dd9
Added Google Cloud Run as a Hosted option
2021-05-12 09:14:34 -04:00
Grey Li
d575de5159
Fix typo in the example of nesting bp docs
2021-05-12 07:51:21 +00:00
Grey Li
57b19fda54
Fix typo in the example of nesting bp docs
2021-05-12 07:49:34 +00:00
David Lord
22d82e70b3
Merge remote-tracking branch 'origin/2.0.x'
2021-05-11 16:33:46 -07:00
David Lord
48325dbfb8
Merge pull request #4011 from ThiefMaster/fix-sphinx-build
...
Install sphinx 4.1-dev from git
2021-05-11 16:33:24 -07:00
Adrian Moennich
2ddbceeaa9
Install sphinx 4.1-dev from git
...
Otherwise docs builds are broken due to sphinx-doc/sphinx#9216
2021-05-12 01:06:49 +02:00
David Lord
19f458f9cd
Merge remote-tracking branch 'origin/2.0.x'
2021-05-11 15:26:38 -07:00
David Lord
15b2241b51
Merge pull request #4010 from pallets/default-branch
...
rename default branch in files
2021-05-11 15:24:15 -07:00
David Lord
52adf2ec21
rename default branch in files
2021-05-11 15:18:41 -07:00
David Lord
905e5c23e8
Merge pull request #4008 from pallets/update-click
...
update click minimum version
2021-05-11 14:56:25 -07:00
David Lord
80a4e62096
update click minimum version
2021-05-11 14:55:09 -07:00
David Lord
2846abaefe
start version 2.1.0.dev0
2021-05-11 14:48:48 -07:00
David Lord
6fb1101f70
start version 2.0.1.dev0
2021-05-11 14:48:08 -07:00
David Lord
2f0c62f5e6
Merge pull request #4007 from pallets/release-2.0.0
...
Release 2.0.0
2021-05-11 14:43:42 -07:00
David Lord
f8e63d3991
release version 2.0.0
2021-05-11 14:41:52 -07:00
David Lord
1403d35e2a
update type annotations
2021-05-11 14:41:52 -07:00
David Lord
3a5532b4ed
update pallets projects minimum versions
2021-05-11 14:33:44 -07:00
David Lord
f8f0caf5c6
update requirements
2021-05-11 14:28:21 -07:00
David Lord
9c1e7f6cdc
Merge pull request #4005 from pallets/pre-commit-ci-schedule
...
update pre-commit monthly
2021-05-11 07:07:12 -07:00
David Lord
8b72f6abd7
update pre-commit monthly
2021-05-11 06:57:24 -07:00
David Lord
28262c34c6
Merge pull request #3999 from greyli/improve-cli-docs
...
Improve CLI docs
2021-05-10 23:50:04 -07:00
Grey Li
531671c9c5
Improve the wording of using FLASK_APP
2021-05-10 22:58:19 -07:00
David Lord
2c88e8a0aa
Merge pull request #4003 from pallets/autodoc-typehints
...
show type hints in description
2021-05-10 22:51:02 -07:00
David Lord
79ac96f123
show type hints in description
2021-05-10 22:45:42 -07:00
David Lord
e1b3a053ba
Merge pull request #4002 from pallets/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-05-10 13:41:53 -07:00
pre-commit-ci[bot]
95e5843ad5
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.14.0 → v2.15.0](https://github.com/asottile/pyupgrade/compare/v2.14.0...v2.15.0 )
- [github.com/psf/black: 21.4b2 → 21.5b1](https://github.com/psf/black/compare/21.4b2...21.5b1 )
- [github.com/PyCQA/flake8: 3.9.1 → 3.9.2](https://github.com/PyCQA/flake8/compare/3.9.1...3.9.2 )
2021-05-10 20:25:42 +00:00
David Lord
3c9b85469e
Merge pull request #3992 from pallets/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-05-03 11:13:36 -07:00
pre-commit-ci[bot]
c93a2d76d5
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.13.0 → v2.14.0](https://github.com/asottile/pyupgrade/compare/v2.13.0...v2.14.0 )
- [github.com/psf/black: 21.4b0 → 21.4b2](https://github.com/psf/black/compare/21.4b0...21.4b2 )
2021-05-03 17:21:04 +00:00
David Lord
d7ac6f5bcf
Merge pull request #3991 from pallets/release-2.0.0rc2
...
release version 2.0.0rc2
2021-05-03 07:13:43 -07:00
David Lord
e2b7d1056c
release version 2.0.0rc2
2021-05-03 07:02:42 -07:00
David Lord
47f0e799db
Merge pull request #3989 from pgjones/async
...
Async improvements
2021-05-03 06:23:00 -07:00
pgjones
2889da67cb
Remove the async helper method
...
It is better to encourage users to utilise the app ensure_sync method
(or the newely added async_to_sync method) so that any extensions that
alter these methods take affect throughout the users code.
With the helper method users code fix parts of their code to the
asgiref async_to_sync ignoring any extension changes.
2021-05-03 06:18:41 -07:00
pgjones
7f87f3dd93
Simplify the async handling code
...
Firstly `run_sync` was a misleading name as it didn't run anything,
instead I think `async_to_sync` is much clearer as it converts a
coroutine function to a function. (Name stolen from asgiref).
Secondly trying to run the ensure_sync during registration made the
code more complex and brittle, e.g. the _flask_async_wrapper
usage. This was done to pay any setup costs during registration rather
than runtime, however this only saved a iscoroutne check. It allows
the weirdness of the Blueprint and Scaffold ensure_sync methods to be
removed.
Switching to runtime ensure_sync usage provides a method for
extensions to also support async, as now documented.
2021-05-03 06:15:39 -07:00