Antonio Larrosa
bf023e7dc0
Remove unidecode dependency and use unicodedata instead
...
I found a way to remove the unidecode dependency without sacrificing
much by using unicodedata.normalize .
2017-03-30 17:32:21 +02:00
Antonio Larrosa
0049922f2e
Fix send_file to work with non-ascii filenames
...
This commit implements https://tools.ietf.org/html/rfc2231#section-4 in
order to support sending unicode characters. Tested on both Firefox and
Chromium under Linux.
This adds unidecode as a dependency, which might be relaxed by using
.encode('latin-1', 'ignore') but wouldn't be as useful.
Also, added a test for the correct headers to be added.
Previously, using a filename parameter to send_file with unicode characters, it
failed with the next error since HTTP headers don't allow non latin-1 characters.
Error on request:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 186, in execute
write(b'')
File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 152, in write
self.send_header(key, value)
File "/usr/lib64/python3.6/http/server.py", line 509, in send_header
("%s: %s\r\n" % (keyword, value)).encode('latin-1', 'strict'))
UnicodeEncodeError: 'latin-1' codec can't encode character '\uff0f' in position 58: ordinal not in range(256)
Fixes #1286
2017-03-23 17:30:48 +01:00
Jeff Widman
bb0e755c80
Migrate various docs links to https ( #2180 )
...
Also fixed a few outdated links
2017-02-11 10:43:11 +01:00
Emily Manders
7e8d7d43c8
Added link to deploying documentation
2016-06-02 12:47:36 -07:00
José Carlos García
567fff9d0d
Change to Pallets project
...
* Update CHANGES
* Update CONTRIBUTING.rst
* Update setup.py
* Update tox.ini
* Update extensions.rst
* Update security.rst
* Update installation.rst
* Update testing.rst
* Update upgrading.rst
* Update sidebarintro.html
* Update jquery.rst
* Update dbcon.rst
* Update index.rst
2016-04-03 23:11:38 +02:00
lord63
7368a164c7
Clarify the python versions that flask supports
2015-12-20 20:39:38 +08:00
Markus Unterwaditzer
85b20f8d49
Avoid duplication of version info
2015-02-06 18:06:16 +01:00
Markus Unterwaditzer
eb2a4521ff
Merge pull request #1341 from ThiefMaster/pep-440-dev-version
...
Use PEP440-compatible dev version
2015-02-06 18:03:41 +01:00
ThiefMaster
ddf0dfa895
Use PEP440-compatible dev version
2015-02-06 17:05:08 +01:00
Markus Unterwaditzer
4fca38c078
remove audit command
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
b93ab41ed1
Remove testsuite package from setup.py
2014-09-11 22:09:50 +02:00
Markus Unterwaditzer
3550b26071
Move tests
2014-09-11 22:09:50 +02:00
Armin Ronacher
f6d25bbc4f
Switch to newer click (2.0)
2014-08-12 23:23:52 +02:00
Armin Ronacher
2639a23b88
Updated setup.py a bit. This fixes #1018
2014-05-07 21:51:18 +02:00
Armin Ronacher
3569fc2441
Greatly refactored click integration and documented it a bit more.
2014-05-07 21:35:51 +02:00
Armin Ronacher
0ac492a0ac
Depend on click now
2014-04-28 13:26:14 +02:00
Armin Ronacher
7503bde223
Added the new flask run module to start the server.
2014-04-21 16:34:17 +02:00
Armin Ronacher
977e7660ac
Master is 0.11-dev
2013-06-14 09:55:08 +01:00
Armin Ronacher
d94b1bec24
In case we need a 0.10.2
2013-06-14 09:54:27 +01:00
Armin Ronacher
298334fffc
Bump version number to 0.10.1
2013-06-14 09:54:07 +01:00
Armin Ronacher
89731d86b6
Merge branch '0.10-maintenance'
2013-06-13 23:46:39 +01:00
Armin Ronacher
2713ea98cb
Use same version specifications as in Werkzeug
2013-06-13 23:46:20 +01:00
Armin Ronacher
5886925ff3
Started 0.10 maintenance branch for a bugfix release
2013-06-13 23:36:50 +01:00
Daniel Neuhäuser
41171d11ae
Add Python 3.3 classifier
2013-06-13 22:16:14 +02:00
Armin Ronacher
ac187bded7
This is 0.11-dev
2013-06-13 09:36:03 +01:00
Armin Ronacher
3b9574fec9
Bump version number to 0.10
2013-06-13 09:35:35 +01:00
Daniel Neuhäuser
bb2e20f53f
Depends on itsdangerous>=0.12 now
2013-05-26 15:37:52 +02:00
Daniel Neuhäuser
a0801719f8
Remove six dependency
2013-05-22 21:40:30 +02:00
Daniel Neuhäuser
506db0eab2
Use print_function
2013-05-18 19:00:06 +02:00
Daniel Neuhäuser
8494574fdf
Merge branch 'six' of github.com:ThomasWaldmann/flask into ThomasWaldmann-six
...
Conflicts:
flask/testsuite/__init__.py
2013-05-18 18:54:45 +02:00
Thomas Waldmann
1b753cb1b1
require 'six' in setup.py, add flask._compat for stuff not yet in 'six'
2013-05-18 17:47:40 +02:00
Thomas Waldmann
40fad2ece8
document python 2.6 minimum requirement, remove all stuff that refers to 2.5
2013-05-18 17:06:25 +02:00
Cenk Altı
1358fd9f3e
Syntax highlighting for PyPI long description
2013-04-24 09:42:52 +03:00
Armin Ronacher
fe85970665
Various improvements in regards to the itsdangerous usage, bumped to 0.17
2012-08-11 03:38:46 +01:00
Armin Ronacher
3f82d1b68e
Switch to itsdangerous
2012-08-11 03:09:14 +01:00
Armin Ronacher
b879193481
Set current dev version number to 0.10
2012-08-11 02:37:03 +01:00
Armin Ronacher
bea5858411
Merge branch '0.8-maintenance' and push to 0.9
2012-07-01 12:10:50 +01:00
Armin Ronacher
19def9606a
This is 0.8.1
2012-07-01 12:08:38 +01:00
Ron DuPlain
b31f2d9a64
Require Werkzeug>=0.7, #449 .
2012-04-23 21:46:53 -04:00
Pascal Hartig
35383ee83c
Removed triple-quotes from print statement in setup.py
2012-03-28 10:33:27 +03:00
Thibaud Morel
8216e036e9
Specifying supported Python versions in setup.py metadata
2012-03-12 11:16:03 -07:00
Kenneth Reitz
3de8de1985
pip > easy_install
2012-02-06 20:19:32 -05:00
Armin Ronacher
766522cb58
Prepare for an 0.8.1 release
2011-10-02 01:06:22 +02:00
Armin Ronacher
3765cc2e9e
This is 0.9-dev
2011-09-29 23:36:57 +02:00
Armin Ronacher
d5e10e4685
Bump version number to 0.8
2011-09-29 23:34:02 +02:00
Armin Ronacher
04b90f5ad4
Parentheses are for Python3
2011-09-27 14:36:06 +02:00
Armin Ronacher
d4d75701bc
Added ext to the packages
2011-09-22 14:08:52 +02:00
Armin Ronacher
0c75be1172
Whitespace normalize
2011-09-22 14:08:03 +02:00
Priit Laes
d4d6cc8401
Clean up auditing command
2011-09-18 14:57:53 -04:00
Christopher Currie
5f7f3b17df
Fix for d5cd4f8d which broke install on Windows
2011-08-30 15:09:56 -07:00