Commit graph

4021 commits

Author SHA1 Message Date
Matěj Volf
bdf7083cfd
refer to encoder instead of decoder 2020-10-07 08:06:29 -07:00
Bogdan Opanchuk
8efea0ccbb
Break reference cycle created by default in Flask instances.
Flask instances with static folders were creating a reference cycle
via their "static" view function (which held a strong reference back
to the Flask instance to call its `send_static_file` method). This
prevented CPython from freeing the memory for a Flask instance
when all external references to it were released.

Now use a weakref for the back reference to avoid this.

Co-authored-by: Joshua Bronson <jab@users.noreply.github.com>
2020-10-03 10:05:05 -04:00
dependabot-preview[bot]
4e8b020494
Merge pull request #3773 from pallets/dependabot/pip/greenlet-0.4.17 2020-10-01 08:26:44 +00:00
dependabot-preview[bot]
84a4669e54
Bump greenlet from 0.4.16 to 0.4.17
Bumps [greenlet](https://github.com/python-greenlet/greenlet) from 0.4.16 to 0.4.17.
- [Release notes](https://github.com/python-greenlet/greenlet/releases)
- [Changelog](https://github.com/python-greenlet/greenlet/blob/master/NEWS)
- [Commits](https://github.com/python-greenlet/greenlet/compare/0.4.16...0.4.17)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-01 08:24:03 +00:00
sblondon
7e312c421e
aesthetic: add a space after a comma (#3771) 2020-09-28 07:21:13 -07:00
miquelvir
598c56c498
fix grammar (#3769) 2020-09-28 06:21:59 -07:00
girst
de464c03e1
Correct Sentry advertisement (not Free Software) (#3758) 2020-09-15 09:20:10 -07:00
dependabot-preview[bot]
e0d7d402e1
Merge pull request #3756 from pallets/dependabot/pip/pytest-6.0.2 2020-09-14 08:21:19 +00:00
dependabot-preview[bot]
ad10d12177
Bump pytest from 6.0.1 to 6.0.2
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.1 to 6.0.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.0.1...6.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-14 08:18:57 +00:00
dependabot-preview[bot]
baaf864237
Merge pull request #3754 from pallets/dependabot/pip/tox-3.20.0 2020-09-07 08:20:06 +00:00
dependabot-preview[bot]
983af125ac
Bump tox from 3.19.0 to 3.20.0
Bumps [tox](https://github.com/tox-dev/tox) from 3.19.0 to 3.20.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.19.0...3.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-07 08:17:58 +00:00
Ryuichi Watanabe
a1fb8f143f
update cache action to v2 (#3749) 2020-08-30 18:53:09 -07:00
ongopongo
5bfe236fb5
fix typo in flask shell help (#3744) 2020-08-26 09:20:21 -07:00
dependabot-preview[bot]
6d3f87ee07
Merge pull request #3742 from pallets/dependabot/pip/pre-commit-2.7.1 2020-08-24 08:19:34 +00:00
dependabot-preview[bot]
0885e68beb
Bump pre-commit from 2.6.0 to 2.7.1
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 2.6.0 to 2.7.1.
- [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.6.0...v2.7.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-24 08:17:04 +00:00
Joshua Bronson
fe55f92cdc
Fix pre-commit cache key in GitHub Actions. (#3740)
Fix pre-commit cache key to include full Python version as per
https://github.com/pre-commit/pre-commit/issues/1575#issuecomment-678792700
and https://pre-commit.com/#github-actions-example
2020-08-23 21:52:28 -04:00
Joshua Bronson
8952a17871
Merge pull request #3739 from WolframAlph/typo-fix
fixed #3738 typo in src/flask/blueprints.py
2020-08-23 08:18:26 -04:00
WolframAlph
1f1b65a625 fixed #3738 typo in src/flask/blueprints.py 2020-08-23 08:56:24 +02:00
dependabot-preview[bot]
e071734b4e
Merge pull request #3734 from pallets/dependabot/pip/sphinx-3.2.1 2020-08-17 08:37:21 +00:00
dependabot-preview[bot]
7be45a4c5b
Bump sphinx from 3.2.0 to 3.2.1
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 3.2.0 to 3.2.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.2.0...v3.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-17 08:34:56 +00:00
dependabot-preview[bot]
1a9059dd3a
Merge pull request #3725 from pallets/dependabot/pip/sphinx-3.2.0 2020-08-10 08:12:04 +00:00
dependabot-preview[bot]
1a6621ed84
Bump sphinx from 3.1.2 to 3.2.0
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 3.1.2 to 3.2.0.
- [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.1.2...v3.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-10 08:09:48 +00:00
Grey Li
5bf8cc225f
Merge pull request #3722 from pallets/dependabot/pip/tox-3.19.0
Bump tox from 3.18.1 to 3.19.0
2020-08-07 19:49:33 +08:00
dependabot-preview[bot]
7eeb0c8d22
Bump tox from 3.18.1 to 3.19.0
Bumps [tox](https://github.com/tox-dev/tox) from 3.18.1 to 3.19.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.18.1...3.19.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-07 11:47:17 +00:00
Grey Li
fd0f89ebf3
Merge pull request #3723 from greyli/fix-intersphinx-link
Fix bad intersphinx link
2020-08-07 19:19:53 +08:00
Grey Li
414b30b2ec Fix bad intersphinx link 2020-08-07 19:01:42 +08:00
dependabot-preview[bot]
eb865f8c24
Merge pull request #3716 from pallets/dependabot/pip/pip-tools-5.3.1 2020-08-03 09:03:22 +00:00
dependabot-preview[bot]
045abd6c04
Bump pip-tools from 5.3.0 to 5.3.1
Bumps [pip-tools](https://github.com/jazzband/pip-tools) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/jazzband/pip-tools/releases)
- [Changelog](https://github.com/jazzband/pip-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jazzband/pip-tools/compare/5.3.0...5.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-03 09:00:22 +00:00
David Lord
632f85b653
Merge pull request #3709 from MLH-Fellowship/3215-flask-blueprint
Common API Between Flask + Blueprint
2020-08-01 07:48:57 -07:00
yk396
b146a13f63
extract common Flask/Blueprint API to Scaffold base class
Co-authored-by: Chris Nguyen <chrisngyn99@gmail.com>
2020-08-01 07:45:58 -07:00
dependabot-preview[bot]
216d97c21a
Merge pull request #3713 from pallets/dependabot/pip/pytest-6.0.1 2020-07-31 08:45:49 +00:00
dependabot-preview[bot]
ce7ee648b3
Bump pytest from 6.0.0 to 6.0.1
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.0 to 6.0.1.
- [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.0.0...6.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-31 08:43:34 +00:00
David Lord
6638432457
Merge pull request #3711 from pallets/cli-loading-error
cleaner message when CLI can't load app
2020-07-30 18:48:45 -07:00
David Lord
253570784c
cleaner message when CLI can't load app
When loading the app fails for the --help command, only the error
message is shown, then the help text. The full traceback is shown for
other exceptions. Also show the message when loading fails while
getting a command, instead of only "command not found". The error
message goes to stderr to match other error behavior, and is in red
with an extra newline to make it more obvious next to the help text.

Also fixes an issue with the test_apps fixture that caused an imported
app to still be importable after the test was over and the path was
reset. Now the module cache is reset as well.
2020-07-30 18:36:55 -07:00
dependabot-preview[bot]
fd0a608449
Merge pull request #3706 from pallets/dependabot/pip/tox-3.18.1 2020-07-29 08:40:48 +00:00
dependabot-preview[bot]
2a388c4dc0
Bump tox from 3.18.0 to 3.18.1
Bumps [tox](https://github.com/tox-dev/tox) from 3.18.0 to 3.18.1.
- [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.18.0...3.18.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-29 08:37:24 +00:00
dependabot-preview[bot]
fc0aa7ac97
Merge pull request #3705 from pallets/dependabot/pip/pytest-6.0.0 2020-07-29 08:32:40 +00:00
dependabot-preview[bot]
6ff7004db0
Bump pytest from 5.4.3 to 6.0.0
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.3 to 6.0.0.
- [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/5.4.3...6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-29 08:29:51 +00:00
David Lord
37551e6798
Merge pull request #3699 from MartinThoma/style
remove unnecessary docstrings from tests
2020-07-28 19:44:23 -07:00
David Lord
36e6fc8ab8
Merge pull request #3669 from ebonnecab/error-docs
Error Docs Revision/Consolidation
2020-07-28 14:17:36 -07:00
David Lord
89d1487b2e
rewrite debugging docs, move to separate page 2020-07-28 11:20:34 -07:00
David Lord
d25ee22e34
reduce section on http status codes
formatting in sentry section
2020-07-28 11:07:02 -07:00
David Lord
ba118b4543
adjust header levels and spacing
use code-block consistently
2020-07-28 10:46:22 -07:00
David Lord
2db3c9a72e
rewrite external debuggers section 2020-07-28 07:59:19 -07:00
David Lord
0db95259db
normalize sentence spacing 2020-07-28 07:57:24 -07:00
David Lord
f31a8ce4bc
Merge pull request #3704 from jackwardell/no-self-required
swapping self.assert_equal for assert
2020-07-28 07:10:13 -07:00
jackwardell
daf9ec790a swapping self.assert_equal for assert
self.assert_equal is not in a class and is ambiguous. Beginners might copy and paste this example and not understand it.
2020-07-28 14:23:00 +01:00
dependabot-preview[bot]
a3d423e5ec
Merge pull request #3702 from pallets/dependabot/pip/pip-tools-5.3.0 2020-07-27 08:34:35 +00:00
dependabot-preview[bot]
3f8ff0d181
Bump pip-tools from 5.2.1 to 5.3.0
Bumps [pip-tools](https://github.com/jazzband/pip-tools) from 5.2.1 to 5.3.0.
- [Release notes](https://github.com/jazzband/pip-tools/releases)
- [Changelog](https://github.com/jazzband/pip-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jazzband/pip-tools/compare/5.2.1...5.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-27 08:31:10 +00:00
Martin Thoma
75a9b74650
DOC: Remove unnecessary docstrings 2020-07-26 15:47:12 +02:00