summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Write bytestrings when calling wsgi_write_chunkbug/21Chris Dent2019-02-281-2/+2
| | | | | | | | | httpservers writes an empty string or an internal server error message, these needs to be bytes in python 3. It might have been useful to have wsgi_write_chunk accept either bytes or strings and do the right thing, but that seemed too invasive to be safe.
* Release 3.0.63.0.6Chris Dent2019-01-072-1/+7
| | | | * Revert 3.0.5
* Revert "Remove use of OpenSSL.tsafe, which links to OpenSSL.SSL anyways. (#16)"Chris Dent2019-01-071-3/+3
| | | | | | | | | | | | | | | | | This reverts commit 78dd2ec0138467305f1686558fca4ff8ca0b2b70. That removes the use of the so-called "thread safe" tsafe module, which adds a lock around many messages, but did not account for the use of that lock in the paste/httpserver.py module. An attempt was made to just get rid of that lock, but since there is limited testing of that area, and few resources to confirm the change, it's been decided that keeping tsafe and allow the deprecation warning to be exposed is the best thing to do. With luck the decpration warning will encourage people to not use the httpserver and choose something else instead. Fixes #19
* Release 3.0.53.0.5Chris Dent2018-11-292-1/+6
| | | | * Quiet OpenSSL deprecation warning
* Remove use of OpenSSL.tsafe, which links to OpenSSL.SSL anyways. (#16)Stephan Richter2018-11-291-3/+3
|
* release 3.0.4Chris Dent2018-11-262-1/+6
|
* Don't delete dict item while iterating over same dict (#14)3.0.4Marius van den Beek2018-11-051-1/+1
|
* release 3.0.33.0.3Chris Dent2018-11-032-1/+6
|
* Depend on pytest instead of nose (#13)Felix Yan2018-11-032-2/+3
|
* Release 3.0.23.0.2Chris Dent2018-10-312-1/+6
|
* paste.fixture: fix form offset handling (#12)Daniel Hahler2018-10-312-6/+11
| | | | | It would fail if the length of bytes and unicode differs. It now passes non-bytes to `Form` directly.
* py3 fixes for form handling in paste.fixture (#8)Daniel Hahler2018-10-303-11/+29
| | | | | | | | | | | | | | | | | * py3 fixes for form handling in paste.fixture It uses "not six.PY2" in contrast to other places in the code to be forward-compatible. I've not looked too closely, but it might make sense to decode body/text in the beginning already, instead of having it as bytes internally?! Also, like mentioned in [1] already, it should probably use the correct source encoding?! 1: https://github.com/cdent/paste/blob/36e5b8bd16a6063ec654faf04541f3a20d19f7fe/paste/fixture.py#L820 * Add test, using/fixing SlowConsumer form app
* Pytest fixes (#9)Daniel Hahler2018-10-307-33/+36
| | | | | | | | | | | | | | | | | | | | | | | | * pytest: fix collection warnings via __test__=False Fixes > "cannot collect test class %r because it has a __init__ constructor Ref: https://github.com/pytest-dev/pytest/issues/2007 * pytest: configure testpaths This is faster with test collection. * pytest: fix warning with doctests Fixes > /usr/lib/python3.7/site-packages/_pytest/python.py:764: > RemovedInPytest4Warning: usage of Generator.Function is deprecated, > please use pytest.Function instead * Minor fixes around s/py.test/pytest/
* Enable coverage reporting via codecov (#10)Daniel Hahler2018-10-303-6/+24
|
* release 3.0.13.0.1Chris Dent2018-10-242-1/+8
|
* Remove use of futureChris Dent2018-10-247-6/+31
| | | | | | | | Future is calling installation endless recursion. We are only using it for an html.escape method, so we make our own and get rid of future. Related-Bug: #6
* Prepare a 3.0.0 release3.0.0Chris Dent2018-10-244-13/+16
| | | | | This is for the sake of getting something out there, including fixes to get stuff working with Python 3.7.
* add link to read the docs to READMEChris Dent2018-10-241-0/+2
|
* Merge pull request #5 from cdent/fix-docsChris Dent2018-10-2412-48/+32
|\ | | | | Prepare docs for publishing to RTFD
| * Prepare docs for publishing to RTFDfix-docsChris Dent2018-10-2412-48/+32
|/ | | | | | | | We'd like to have a stable location for documentation. The destination will be https://pythonpaste.readthedocs.io This change also tries to make sure that there are sufficient warnings throughout about the status of Paste.
* Merge pull request #4 from cdent/cd/travis-ciChris Dent2018-10-231-0/+20
|\ | | | | cd/travis ci
| * Special case py37cd/travis-ciChris Dent2018-10-231-0/+2
| | | | | | | | | | We need to use xenial as the dist to get python3.7 working according to https://github.com/travis-ci/travis-ci/issues/9815
| * Add support for limited testing with travis-ciChris Dent2018-10-231-0/+18
|/ | | | | This uses the matrix style for engaging with tox and tests py27, 35, 36, 37 and pypy.
* Merge pull request #3 from zaneb/py3Chris Dent2018-10-234-3/+6
|\ | | | | Python 3 fixes
| * Make iterators Python3-compatibleZane Bitter2018-10-232-0/+4
| | | | | | | | | | | | | | | | In Python3, the iterator protocol uses a method named __next__(), not next(). (For compatibility with Python 2.6, we still need to support both though.) Ensure all iterator objects support the Python3 protocol. Signed-off-by: Zane Bitter <zbitter@redhat.com>
| * Don't raise StopIteration inside a generatorZane Bitter2018-10-232-3/+2
|/ | | | | | This will cause a runtime error in Python 3.7, due to PEP479. Signed-off-by: Zane Bitter <zbitter@redhat.com>
* Add a simple .gitignoreChris Dent2018-10-231-0/+4
| | | | We can clean it up better as required.
* Fix up testing after switch to pytestChris Dent2018-10-2310-27/+27
| | | | | | | | | | | | | | pytest exposes many warnings, some but not all of which are cleaned up here. The main switch is to use html.escape instead of cgi.escape. This inspired the addition of 'future' to requirements. The remaining warnings are related to pytest deprecations or over-eager test discovery. It is perhaps ironic that the switch to pytest is to avoid nose being mostly dead, and now we are using features in pytest that pytest wants to make dead. These are left for later cleanups, which means that running the tests is noisy.
* Merge pull request #1 from cdent/pytestChris Dent2018-10-237-39/+35
|\ | | | | Switch from nose to pytest
| * Switch from nose to pytestpytestMarc Abramowitz2016-03-087-39/+35
| |
* | Update README and setup.py for new locationChris Dent2018-10-232-13/+12
| | | | | | | | | | pythonpaste.org no longer exists so we need to remove those links
* | Fix proxy testChris Dent2018-10-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | The proxy test relied on pythonpaste.org being up and existing. It is neither. So instead we use httpbin.org which is often used for this kind of thing. Unfortunately httpbin is now a react app which means a lot of the HTML is generated client-side, which means we need to choose wisely. As the original comments indicate, the test is not particularly robust and remains so.
* | Merged in onovy/paste (pull request #36)Chris Dent2018-10-231-1/+1
|\ \ | | | | | | | | | Use correct variable when building message for exception
| * | Use correct variable when building message for exceptionOnd?ej Nov?2016-03-101-1/+1
| | | | | | | | | | | | | | | Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695253
| * | Added tag 2.0.3 for changeset 768835f3c1b7Marc Abramowitz2016-03-080-0/+0
| | |
| * | Merged in 2.0.3 (pull request #35)2.0.3Marc Abramowitz2016-03-080-0/+0
| |\ \ | | |/ | | | | | | Bump version to 2.0.3
| * | Close branch 2.0.32.0.3Marc Abramowitz2016-03-080-0/+0
| | |
| * | Bump version to 2.0.3Marc Abramowitz2016-03-082-1/+29
| |/ | | | | | | and add news to `docs/news.txt`.
| * Merged in msabramo/paste/python3_wsgilib_add_close_next (pull request #29)Marc Abramowitz2016-03-082-1/+57
| |\ | | | | | | | | | paste.wsgilib.add_close: Add __next__ method
| | * Make add_close.next() leverage add_close.__next__()python3_wsgilib_add_close_nextMarc Abramowitz2016-03-081-1/+1
| | | | | | | | | | | | so we avoid logic duplication
| | * Check paste.wsgilib.add_close._closedMarc Abramowitz2016-03-071-0/+2
| | |
| | * Uncomment/cleanup paste.wsgilib.app_close.__next__Marc Abramowitz2016-03-071-2/+2
| | |
| | * Add tests for `add_close` classMarc Abramowitz2016-03-071-0/+50
| | |
| | * Merge default to python3_wsgilib_add_close_nextMarc Abramowitz2016-03-071-0/+4
| | |\
| | | * paste.wsgilib.add_close: Add __next__ methodMarc Abramowitz2016-03-071-0/+4
| | | | | | | | | | | | | | | | to support using `add_close` objects as iterators on Python 3.
| | | * Added tag 2.0.2 for changeset 53f5c2cd7f50Marc Abramowitz2015-05-110-0/+0
| | | |
| | | * Update docs/news.txt for 2.0.22.0.2Marc Abramowitz2015-05-111-0/+21
| | | |
| | | * Don't display invalid error message when socket in useMarc Abramowitz2015-05-111-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, when the listening socket was already in use, this error message was displayed: ... File "/private/tmp/n/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", line 1106, in server_close self.thread_pool.shutdown(60) AttributeError: 'WSGIThreadPoolServer' object has no attribute 'thread_pool' We prevent this by checking if `self` has a `thread_pool` attribute before trying to reference it. Fixes issue #5 (https://bitbucket.org/ianb/paste/issue/5/invalid-error-message-when-the-socket-is)
| | | * Merged in aodag/paste-py3/fix-has_key (pull request #25)Marc Abramowitz2015-05-112-2/+2
| | | |\ | | | | | | | | | | | | | | | replace ``has_key`` method to ``in`` operator #9
| | | | * replace ``has_key`` method to ``in`` operator #9fix-has_keyaodag2015-05-022-2/+2
| | | | |