Commit graph

4020 commits

Author SHA1 Message Date
Bogdan Opanchuk
849cf2c2a9 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]
6449c51db8 Merge pull request #3773 from pallets/dependabot/pip/greenlet-0.4.17 2020-10-01 08:26:44 +00:00
dependabot-preview[bot]
93ebcb19df 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
b5859ea9eb aesthetic: add a space after a comma (#3771) 2020-09-28 07:21:13 -07:00
miquelvir
cd5be90d5b fix grammar (#3769) 2020-09-28 06:21:59 -07:00
girst
511649e747 Correct Sentry advertisement (not Free Software) (#3758) 2020-09-15 09:20:10 -07:00
dependabot-preview[bot]
df9fd42391 Merge pull request #3756 from pallets/dependabot/pip/pytest-6.0.2 2020-09-14 08:21:19 +00:00
dependabot-preview[bot]
24ca4c7c18 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]
03b940dd11 Merge pull request #3754 from pallets/dependabot/pip/tox-3.20.0 2020-09-07 08:20:06 +00:00
dependabot-preview[bot]
f38fab5751 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
2ef99498be update cache action to v2 (#3749) 2020-08-30 18:53:09 -07:00
ongopongo
ef43c92c39 fix typo in flask shell help (#3744) 2020-08-26 09:20:21 -07:00
dependabot-preview[bot]
ec485e48ee Merge pull request #3742 from pallets/dependabot/pip/pre-commit-2.7.1 2020-08-24 08:19:34 +00:00
dependabot-preview[bot]
a20bed1815 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
34704b7729 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
cf74f60f3e 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
2f1e1c4686 fixed #3738 typo in src/flask/blueprints.py 2020-08-23 08:56:24 +02:00
dependabot-preview[bot]
4a84740655 Merge pull request #3734 from pallets/dependabot/pip/sphinx-3.2.1 2020-08-17 08:37:21 +00:00
dependabot-preview[bot]
5fa0eddef8 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]
52b1f231b4 Merge pull request #3725 from pallets/dependabot/pip/sphinx-3.2.0 2020-08-10 08:12:04 +00:00
dependabot-preview[bot]
1cb3356e71 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
c50cc7bc18 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]
783b188cf5 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
b97c439556 Merge pull request #3723 from greyli/fix-intersphinx-link
Fix bad intersphinx link
2020-08-07 19:19:53 +08:00
Grey Li
f4861793fd Fix bad intersphinx link 2020-08-07 19:01:42 +08:00
dependabot-preview[bot]
8ec25db0cc Merge pull request #3716 from pallets/dependabot/pip/pip-tools-5.3.1 2020-08-03 09:03:22 +00:00
dependabot-preview[bot]
73fa742272 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
3b264521b5 Merge pull request #3709 from MLH-Fellowship/3215-flask-blueprint
Common API Between Flask + Blueprint
2020-08-01 07:48:57 -07:00
yk396
a37cbe4fbb 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]
1479fa1f56 Merge pull request #3713 from pallets/dependabot/pip/pytest-6.0.1 2020-07-31 08:45:49 +00:00
dependabot-preview[bot]
db39512493 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
d8a24a2adb 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
8b9128ee06 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]
cdedb8f98e Merge pull request #3706 from pallets/dependabot/pip/tox-3.18.1 2020-07-29 08:40:48 +00:00
dependabot-preview[bot]
27e9fe5a87 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]
9910c2410f Merge pull request #3705 from pallets/dependabot/pip/pytest-6.0.0 2020-07-29 08:32:40 +00:00
dependabot-preview[bot]
92872620d9 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
ee7d80bb55 Merge pull request #3699 from MartinThoma/style
remove unnecessary docstrings from tests
2020-07-28 19:44:23 -07:00
David Lord
9a960a4ff0 Merge pull request #3669 from ebonnecab/error-docs
Error Docs Revision/Consolidation
2020-07-28 14:17:36 -07:00
David Lord
6a152a111c rewrite debugging docs, move to separate page 2020-07-28 11:20:34 -07:00
David Lord
998ef2208c reduce section on http status codes
formatting in sentry section
2020-07-28 11:07:02 -07:00
David Lord
018e1060af adjust header levels and spacing
use code-block consistently
2020-07-28 10:46:22 -07:00
David Lord
7044235c78 rewrite external debuggers section 2020-07-28 07:59:19 -07:00
David Lord
28119de5ee normalize sentence spacing 2020-07-28 07:57:24 -07:00
David Lord
f8aec17365 Merge pull request #3704 from jackwardell/no-self-required
swapping self.assert_equal for assert
2020-07-28 07:10:13 -07:00
jackwardell
5653184b1f 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]
0d6607a1a4 Merge pull request #3702 from pallets/dependabot/pip/pip-tools-5.3.0 2020-07-27 08:34:35 +00:00
dependabot-preview[bot]
7a4fe92a20 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
090c9e9a81 DOC: Remove unnecessary docstrings 2020-07-26 15:47:12 +02:00
Ebonne Cabarrus
13b0a37b5e more changes to consolidated error handling docs 2020-07-24 09:25:07 -07:00