Joshua Bronson
a40c381ffd
Merge pull request #3560 from greyli/fix-env-chdir
...
Stop change CWD to .env/.flaskenv location
2020-07-18 13:14:09 -04:00
Joshua Bronson
7ba35c4d4f
Restore support for using pathlib.Path for static_folder.
...
* No longer causes AttributeError: 'PosixPath' object has no
attribute 'rstrip'.
* This was broken by e6178fe489
which was released in 1.1.2.
* Add a regression test that now passes.
See #3557 .
2020-07-06 08:55:19 -04:00
Grey Li
84cbfc0698
Stop change CWD to .env/.flaskenv location
2020-07-05 09:37:03 +08:00
jackwardell
846ee2c62e
add assert message for errorhandler exception type
2020-04-16 10:49:42 -07:00
David Lord
ff2f71379b
use ast to parse FLASK_APP
...
enables keyword arguments to factory functions
2020-04-07 17:54:51 -07:00
David Lord
fcac7f11cf
deprecate passing script_info to factory
2020-04-07 15:54:36 -07:00
David Lord
8b5f760b72
deprecate JSON encoding options
...
make consistent with built-in json module
2020-04-07 12:32:27 -07:00
David Lord
c43edfc7c0
remove simplejson
...
- remove encoding detection backport, json.loads supports it directly
- use str.translate instead of multiple str.replace
2020-04-07 09:55:39 -07:00
David Lord
f2f027d1fb
remove unused module docstrings
2020-04-04 12:28:08 -07:00
David Lord
2ae740dd49
f-strings everywhere
2020-04-04 12:10:00 -07:00
David Lord
524fd0bc8c
apply pyupgrade
2020-04-04 12:10:00 -07:00
David Lord
57d628ca74
remove more compat code
2020-04-04 12:10:00 -07:00
David Lord
662c245795
remove _compat module
2020-04-04 12:10:00 -07:00
David Lord
1263d3bd14
remove deprecated code
2020-04-04 12:10:00 -07:00
David Lord
a0a61acdec
drop support for Python 2.7 and 3.5
2020-04-04 12:09:55 -07:00
David Lord
64ba43411f
Merge remote-tracking branch 'origin/1.1.x'
2020-02-15 10:40:32 -08:00
frostming
d4076cf07c
strip the ending slash for static_url_path
2020-02-10 18:19:25 -08:00
David Lord
bcde664f9a
cli checks for cryptography library
2020-02-10 17:34:19 -08:00
Marc Hernandez Cabot
5da342e4dd
fix docstring and remove redundant parentheses
2020-02-10 17:03:52 -08:00
raymond-devries
900fa2f795
Feature request #3445 .
2020-02-10 13:09:53 -08:00
David Lord
0834da832a
Merge branch '1.1.x'
2020-02-10 10:16:20 -08:00
David Lord
63b40254e9
xfail __main__ instance test interacting with tox
2020-02-10 10:16:08 -08:00
Grey Li
ef434ea998
Replace old pocoo links everywhere
...
pocco.org -> palletsprojects.com
2019-11-19 09:32:35 -08:00
David Lord
980168d084
send_file doesn't allow StringIO
2019-11-19 08:52:12 -08:00
David Lord
a83d6d2528
Merge remote-tracking branch 'origin/1.1.x'
2019-11-18 17:54:20 -08:00
Fernanda Guimarães
c367a86cc5
Test test_send_from_directory_bad_request no longer fails in Python 3.8.
2019-10-28 21:37:25 -03:00
pgjones
829aa65e64
Support loading configuration from text files
...
TOML is a very popular format now, and is taking hold in the Python
ecosystem via pyproject.toml (among others). This allows toml config
files via,
app.config.from_file("config.toml", toml.loads)
it also allows for any other file format whereby there is a loader
that takes a string and returns a mapping.
2019-10-18 09:15:47 -07:00
Doron Horwitz
0c0b31a789
get_cookie_name in SessionInterface for easier overriding in SecureCookieSessionInterface
2019-10-12 19:12:27 -07:00
David Lord
1617202d91
restore and deprecate json_available
2019-07-08 10:26:12 -07:00
David Lord
b08e35e4ab
show warning for old logger config
2019-07-02 11:39:00 -07:00
David Lord
df470aecb9
use app.name as app.logger name
2019-07-01 14:56:18 -07:00
David Lord
b05a685a03
Merge branch '1.0.x'
2019-07-01 10:54:31 -07:00
Anthony Sottile
a5ecdfa7a5
Fixes for PEP451 import loaders and pytest 5.x
...
- pytest 5.x drops python2 compatibility and therefore only implements PEP 451
- pytest 5.x made the repr of `ExcInfo` less confusing (fixed tests depending
on the old format)
2019-07-01 10:43:06 -07:00
David Lord
afd6250bab
Merge branch '1.0.x'
2019-07-01 09:52:06 -07:00
Anthony Sottile
ac302fb607
Make the changelog UTF-8 compatible
2019-07-01 07:36:20 -07:00
David Lord
54cbb4e642
send_file quotes ":/" in UTF-8 filename
2019-06-27 07:55:22 -07:00
David Lord
1351d0a565
Merge branch '1.0.x'
2019-06-23 16:57:52 -07:00
David Lord
e666f7a69c
standardize license and copyright
2019-06-22 13:09:09 -07:00
David Lord
9054f6d639
always pass InternalServerError instance to 500 handler
2019-06-19 14:52:25 -07:00
David Lord
c65863912b
move url matching after opening session
2019-06-13 12:40:01 -07:00
Elad Moshe
1ff98a2d21
wait until app ctx is ready before matching url
...
`RequestContext.match_request` is moved from `__init__` to `push`. This
causes matching to happen later, when the app context is available.
This enables URL converters that use things such as the database.
2019-06-13 08:32:23 -07:00
David Lord
29111a3259
Merge branch '1.0.x'
2019-06-12 10:41:11 -07:00
David Lord
dbd4520ccb
fix tests failing with server name warnings
...
After pallets/werkzeug#1577 , mismatched configured and real server
names will show a warning in addition to raising 404. This caused
tests that did this deliberately to fail.
This patch removes the pytest fixture we were using to fail on
warnings, instead using the standard `-Werror` option. This speeds
up the tests by ~3x.
2019-06-10 14:05:33 -07:00
David Lord
53c893b646
fix string concats left over by black
2019-06-01 09:22:20 -07:00
David Lord
43483683b2
apply reorder-python-imports pre-commit config
2019-06-01 09:07:20 -07:00
Jon S. Stumpf
b46f5942a5
address flake8 issues
2019-06-01 06:31:35 -07:00
Jon S. Stumpf
549fed29ea
add pre-commit config for flake8
2019-06-01 09:13:46 -04:00
cslecrone
1718f1934c
don't require ssl module for flask cli
2019-05-31 17:27:52 -04:00
Daniel Pope
c7f56c5a55
Create json_dumps() method on new EnvironBuilder
2019-05-31 18:05:25 +01:00
Daniel Pope
976dfedaa9
Convert make_test_environ_builder into class ( fixes #3207 )
2019-05-31 18:05:25 +01:00