summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "fix #1186: Bottle fails to find templates on windows"defnull-1186Marcel Hellkamp2019-12-191-2/+3
| | | | This reverts commit 085f18615fe8ab63588eebfd25bb90337aac2ba0.
* Removed circle-ci and travis-ci in favor of GitHub actions.Marcel Hellkamp2019-12-185-109/+4
|
* Fixup for 5c52eb0Marcel Hellkamp2019-12-182-11/+10
|
* fix #1186: Bottle fails to find templates on windowsMarcel Hellkamp2019-12-181-3/+2
| | | | | | os.sep contains a backslash on windows, but os.path.abspath() normalizes paths to forward slashes. Hard-coding a forward slash on any platform is actually more correct here.
* fix #1187: Allow non-ASCII characters in status_lineMarcel Hellkamp2019-12-182-1/+25
| | | | Uncommon, but valid.
* Merge branch 'backend-testing' of https://github.com/hartwork/bottle into ↵Marcel Hellkamp2019-12-1814-129/+72
|\ | | | | | | | | | | | | | | | | | | master. This patch-set includes two breaking changes: * "rocket" server adapter was removed, as it does not support Python 3 and is unmaintained. It will be marked as deprectated retrospectively in 0.12 * The "aiohttp" server adapter now uses aiohttp-wsgi instead of aiohttp. It was never part of 0.12 (stable), so changing this should be fine.
| * travis: Drop end-of-life Python 3.4Sebastian Pipping2019-12-091-1/+0
| |
| * ci: Do not tolerate import errors for 2.7 and 3.6 on TravisSebastian Pipping2019-12-091-3/+5
| |
| * aiohttp: Move from aiohttp<2 to aiohttp-wsgiSebastian Pipping2019-12-093-18/+7
| |
| * uvloop: Pass loop to aiohttp to fix backend "uvloop"Sebastian Pipping2019-12-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Backtrace was: Traceback (most recent call last): File "[..]/lib/python3.6/site-packages/aiohttp/server.py", line 239, in start httpstream = reader.set_parser(self._request_parser) File "[..]/lib/python3.6/site-packages/aiohttp/parsers.py", line 199, in set_parser self.unset_parser() File "[..]/lib/python3.6/site-packages/aiohttp/parsers.py", line 209, in unset_parser if self._loop.is_closed(): AttributeError: 'NoneType' object has no attribute 'is_closed'
| * ci: Install aiohttp<2 with aiohttp.wsgi for backends "aiohttp" and "uvloop"Sebastian Pipping2019-12-092-2/+2
| | | | | | | | | | Commit dropping aiohttp.wsgi upstream: https://github.com/aio-libs/aiohttp/commit/9218c264d57c633bc21cb7a14cd7890a272d4e34
| * rocket: Drop support for dead backend "rocket"Sebastian Pipping2019-12-0912-71/+2
| |
| * tests: Limit backend "aiohttp" to Python 3Sebastian Pipping2019-12-091-0/+1
| |
| * tests: Limit backend "diesel" to Python 2Sebastian Pipping2019-12-092-2/+3
| | | | | | | | | | Python 3 support is broken, see: https://github.com/dieseldev/diesel/issues/104
| * tests: Stop testing wsgiref twiceSebastian Pipping2019-12-091-1/+1
| | | | | | | | Once from TestServer and once from TestServerAdapter_wsgiref
| * tests: Adapt TestServer blacklist to Python versionSebastian Pipping2019-12-091-0/+14
| | | | | | | | Based on knowledge from travis_setup.sh
| * travis: Resolve some travis_setup.sh code duplicationSebastian Pipping2019-12-091-7/+11
| |
| * tests: Make servertest.py friendly to test discoverySebastian Pipping2019-12-091-31/+32
|/ | | | .. by moving code out of module scope and into a function.
* RefactoringMarcel Hellkamp2019-12-091-12/+10
|
* Added tests for #1125 fix.Marcel Hellkamp2019-12-081-3/+23
|
* Merge branch 'defnull-1175'Marcel Hellkamp2019-12-081-9/+10
|\
| * fix #1174,#1175: Allow cookie SameSite=NoneMarcel Hellkamp2019-12-081-9/+10
| |
* | fix #1167: Allow listening to unix socket for gunicorn server adapterMarcel Hellkamp2019-12-081-3/+10
|/
* Run gh actions on pull requestsMarcel Hellkamp2019-12-081-1/+1
|
* run_tests.yml: run five tests in parallelChristian Clauss2019-12-081-1/+1
| | | Speed up testing by running all five versions of Python in parallel.
* Updated documentation on SimpleTemplate and embedded blocks. (#1028)Vinay Sajip2019-12-011-0/+15
| | | | | * Updated documentation on SimpleTemplate and embedded blocks. * Addressed review comments.
* redirect() raises HTTPResponse and not HTTPErrorThomas2019-12-011-1/+1
|
* Fix syntax in login-login recipeOz Tiram2019-12-011-2/+2
| | | | | Previously, the example yielded SyntaxError. Adding an equal sign fixes the assertion syntax.
* Fix typoAshwin Ramaswami2019-12-011-1/+1
|
* Move to github actions (#1183)Marcel Hellkamp2019-12-012-0/+37
|
* Fix release steps in MakefileMarcel Hellkamp2019-12-011-3/+2
|
* #1179: Offer option to add custom headers in static_fileMarcel Hellkamp2019-12-011-4/+7
| | | | Done a little bit diffeently than in the PR (never ever use mutable types as default values) but has the same effect. Closes #1179
* Gitignore .tox/Marcel Hellkamp2019-12-011-0/+1
|
* Fix travis-ci builds (they dropped 2.7.3 support)Marcel Hellkamp2019-08-301-6/+2
|
* [bug] set default value for "Content-Length"Luo Zhaoyu2019-08-301-1/+1
| | | Setting default value as -1 when "Content-Length" is empty. If not, currently it will raise a ValueError
* Be more consistent about supporting Python 3.4 to 3.7Sebastian Pipping2019-07-1017-30/+21
|
* Fix Python 3.7 collections.abc DeprecationWarningAdam Johnson2019-07-101-1/+1
| | | | | | | | Should fix this ``` /.../bin/bottle.py:87: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import MutableMapping as DictMixin ```
* current bottle only support 2.7 and above, json is stdlibHanaasagi2019-01-311-20/+12
|
* fix failed test caused by ujsonHanaasagi2019-01-312-3/+12
|
* fix #1115: Some modules set __file__ as NoneMarcel Hellkamp2018-12-131-1/+1
| | | | | This is not allowed (the __file__ attribute MUST be either a string, or unset), but seems to happen anyway and is easy to work around in bottle.
* fix #1111: Unicode multipart/form-data values in python3Marcel Hellkamp2018-12-112-3/+9
| | | | | | Multipart form uploads are not affected by the WSGI/PEP-3333 'latin1' default encoding quirk and already properly decoded as utf8, so we have to disable FormsDict.recode_unicode for these.
* Migrated to CircleCI 2.0Marcel Hellkamp2018-10-253-13/+54
|
* fix #1106: SameSite cookie attribute fails when using redirectMarcel Hellkamp2018-10-252-16/+44
| | | | | - Accept `BaseRequest.set_cookie()` arguments in snake_case and lowercase form. This affects the `max_age` and `same_site` arguments. - Skip render/parse step when cloning SimpleCookie.
* Normalized test and build setupMarcel Hellkamp2018-10-2524-111/+90
|
* Added htmlcov and ide folders to .gitignoreMarcel Hellkamp2018-10-251-0/+8
|
* Updated copyright yearMarcel Hellkamp2018-10-252-2/+2
| | | | This is not how copyright notices work (the year is irrelevant) but an old year makes the project look unmaintained.
* fix: STPL end keyword breaks when not on a separate lineMarcel Hellkamp2018-10-252-5/+17
| | | | | | | | | This fix allows templates with the 'end' keyword in the same line as other code. %if 1: % some code; end Multiple 'end's in the same line to close multiple blocks whould also work now.
* Remove Python 3.2 and 3.3cclauss2018-07-191-2/+0
|
* Add Python 3.6 and 3.7 to PyPI pagecclauss2018-07-191-0/+2
| | | Should modify the bottom left of https://pypi.org/project/bottle on the next [release](https://github.com/bottlepy/bottle/releases).
* Travis CI: remove Python 3.3 and add Python 2.7cclauss2018-07-191-1/+6
| | | | * Python 3.3 is went EOL last year https://devguide.python.org/#branchstatus * Python 3.7 is shipping https://github.com/travis-ci/travis-ci/issues/9069