Commit graph

4588 commits

Author SHA1 Message Date
David Lord
65b0eef303
Merge pull request #4500 from pallets/release-2.1.0
release version 2.1.0
2022-03-28 12:12:02 -07:00
David Lord
7d264d7dc5
release version 2.1.0 2022-03-28 12:09:35 -07:00
David Lord
f5ed54b031
ignore examples tests
causing an unexpected failure in CI
2022-03-28 12:09:35 -07:00
David Lord
cd4ab005a9
fix typing 2022-03-28 12:09:35 -07:00
David Lord
41aaaf7fa0
clean up unused function from prefixed_env pr 2022-03-25 12:24:31 -07:00
David Lord
2f5a2ab82e
Merge pull request #4479 from pgjones/env_config
Allow loading of environment variables into the config
2022-03-25 12:14:29 -07:00
David Lord
e75d575361
windows env vars are uppercase 2022-03-25 12:07:45 -07:00
David Lord
4eb5e9455b
more from_prefixed_env features
* support nested dict access with "__" separator
* don't specify separator in prefix
* catch exceptions for any loads function
2022-03-25 11:54:45 -07:00
pgjones
08a283af5e
Allow loading of environment variables into the config
This new method will pick out any environment variables with a certain
prefix and place them into the config named without the prefix. This
makes it easy to use environment variables to configure the app as is
now more popular than when Flask started.

The prefix should ensure that the environment isn't polluted and the
config isn't polluted by environment variables.

I've followed the dynaconf convention of trying to parse the
environment variable and then falling back to the raw value if parsing
fails.
2022-03-25 11:54:03 -07:00
David Lord
425a62686f
Merge pull request #4496 from pallets/werkzeug-relative-redirect
update tests to use relative redirects
2022-03-25 11:53:03 -07:00
David Lord
81c7ff7f8d
update tests for relative redirects 2022-03-25 11:48:26 -07:00
David Lord
ce7b884b73
Merge pull request #4492 from pallets/debug-messages
update some debug message behavior
2022-03-23 09:18:20 -07:00
David Lord
6578b493c8
better override for json BadRequest error 2022-03-23 09:13:45 -07:00
David Lord
0a300d007d
better replacement of original form KeyError 2022-03-23 08:26:22 -07:00
David Lord
c9a1f7ad65
don't intercept 307/308 routing redirects
These don't change the request body, so the debug error is no longer relevant.
2022-03-23 08:25:22 -07:00
David Lord
598afa0083
Merge pull request #4491 from octopoulpe/patch-1 2022-03-22 06:46:52 -07:00
octopoulpe
d80f41f57d
Update errorhandling.rst 2022-03-22 10:29:00 +01:00
David Lord
7abcf57f54
Merge pull request #4488 from pallets/typing-context-exit
accurate type for `__exit__`
2022-03-15 08:48:47 -07:00
David Lord
faaa5594b2
accurate type for __exit__ 2022-03-15 08:44:09 -07:00
David Lord
cb7cd1e79b
Merge pull request #4487 from pallets/typing-errorhandler
relax `errorhandler` function arg type
2022-03-15 08:36:16 -07:00
David Lord
190dd4df86
don't use AnyStr for ResponseValue type 2022-03-15 08:32:15 -07:00
David Lord
8886328822
relax errorhandler function arg type 2022-03-15 08:32:15 -07:00
David Lord
0ef1e65f6a
Merge pull request #4486 from uedvt359/pr-deletecookie
Preserve HttpOnly flag when deleting session cookie
2022-03-15 06:38:35 -07:00
uedvt359
b707bf443a
Preserve HttpOnly flag when deleting session cookie
fixes #4485
2022-03-15 06:35:29 -07:00
David Lord
b655a9db30
Merge pull request #4477 from tusharsadhwani/decorator-types
Add better types for app decorators
2022-03-08 06:50:25 -08:00
Tushar Sadhwani
af34b8c9e7 Add better types for app decorators 2022-03-08 20:13:30 +05:30
David Lord
8122973f8a
Merge pull request #4473 from pallets/dependabot/github_actions/actions/setup-python-3
Bump actions/setup-python from 2 to 3
2022-03-01 08:49:14 -08:00
dependabot[bot]
7dc26a1f41
Bump actions/setup-python from 2 to 3
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-01 16:04:16 +00:00
David Lord
4843590c4a
Merge pull request #4461 from pallets/cli-lazy-context
lazy loading preserves click context
2022-02-22 19:13:29 -08:00
David Lord
aa13521d42
lazy loading preserves click context 2022-02-22 19:04:03 -08:00
David Lord
3897a51801
Merge pull request #4454 from colincadams/patch-3
Fix typing on `Flask.session_interface`
2022-02-19 07:12:40 -08:00
David Lord
642ca6ea68
Merge branch '2.0.x' 2022-02-17 16:26:16 -08:00
David Lord
ad13dbc826
pin setuptools for reorder_python_imports 2022-02-17 16:26:06 -08:00
Colin Adams
6f79cb8a23
Fix typing on app.session_interface 2022-02-16 21:12:01 -08:00
David Lord
b6a8ccd2cf
Merge branch '2.0.x' 2022-02-14 12:06:57 -08:00
David Lord
ef557b3ff2
Merge pull request #4449 from pallets/release-2.0.3
release version 2.0.3
2022-02-14 11:46:23 -08:00
David Lord
702d973b1f
release version 2.0.3 2022-02-14 11:34:37 -08:00
David Lord
c15f74cea6
Merge pull request #4448 from pallets/testing-docs
rewrite testing docs
2022-02-13 14:09:07 -08:00
David Lord
761d7e1652
rewrite testing docs 2022-02-13 14:06:51 -08:00
David Lord
48ee204dd5
Merge pull request #4189 from mgu/feat/use-exclude-patterns-reloader
Add `exclude-patterns` option to `flask run` CLI
2022-02-09 12:53:19 -08:00
Mickaël Guérin
beae1249f7
add exclude-patterns option to flask run 2022-02-09 12:44:03 -08:00
David Lord
e06dad62f6
Merge pull request #4445 from pallets/override-redirect
overriding FlaskClient.open works with redirects
2022-02-09 11:39:48 -08:00
David Lord
1be65b1b69
overriding FlaskClient.open works with redirects 2022-02-09 11:13:03 -08:00
David Lord
7c5f17a55e
update requirements 2022-02-09 07:39:33 -08:00
David Lord
e37e87140e
Merge branch '2.0.x' 2022-02-09 07:37:43 -08:00
David Lord
d6496c8e29
Merge pull request #4443 from pallets/update-requirements
update requirements, stop using dependabot
2022-02-08 12:36:55 -08:00
David Lord
1fd8654719
stop using dependabot for python, too noisy 2022-02-08 12:26:25 -08:00
David Lord
925674761e
cache pip with setup-python action 2022-02-08 12:26:25 -08:00
David Lord
426a1e25b7
fix pytest 7 warnings 2022-02-08 12:26:25 -08:00
David Lord
6f7d99ce4b
use pip-compile-multi for requirements 2022-02-08 12:26:25 -08:00