summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Test Python 3.12 (#78)HEADmasterHugo van Kemenade2023-05-012-1/+3
|
* Release 3.5.33.5.3Chris Dent2023-04-302-1/+7
| | | | - Use importlib instead of imp
* Augment use of imp with importlib.util (#76)Chris Dent2023-04-301-10/+25
| | | | | | | | | | | | | | | | | | imp is deprecated and will go away in Python 3.12 (which is very soon). The preferred replacement is importlib. However, importlib is not available in Python 2.7, so we want to keep both in order to maintain 2.7 some semblance of 2.7 support. This implementation is based on the importlib docs [1] and passes the quite robust tests that are already present for the urlparser module. Unfortunately there's no good way to be 100% certain that this works for all the many ways that Paste can do an import. So this patch is mostly hoping that test coverage is sufficient. [1] https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly Fixes #75
* Add github actions tests (#77)Chris Dent2023-04-305-32/+52
| | | | | | | | | | | | | | | Borrowing the configuration from wsg-intercept and then editing to fit so that we've got some automated tests. To get this to work it was necessary to: * adjust python versions * update action version * pin the ubuntu version * fix warning in test_grantip * form.cgi needs to not use six because it is not running in the virtualenv * quiet deprecations in in form.cgi because cgi module is deprecated * Skip the proxy test as it uses httpbin.org which is unreliable
* Add project URLs to PyPI listing (#71)Tomo2022-08-241-0/+5
| | | | This was done by adding a dictionary, called project_urls, to the parameters of the setup function in setup.py
* release 3.5.23.5.2Chris Dent2022-08-182-1/+8
|
* Fix py3 compatibility in paste.wsgilib.catch_errors (#70)Colin Watson2022-08-181-1/+1
| | | | | | | A Python 3 application might only define `__next__`, not `next`. Use `six.next` instead. This is very similar to https://github.com/cdent/paste/pull/53, and was apparently missed there.
* Release 3.5.13.5.1Chris Dent2022-06-223-2/+10
| | | | | * update tox to include py 39 * replace deprecated threading funcs
* Replace deprecated threading aliases (#69)Hugo van Kemenade2022-06-223-19/+19
|
* release 3.5.03.5.0Chris Dent2020-10-122-1/+9
|
* Add testing support for Python 3.8Chris Dent2020-10-122-3/+3
| | | | 3.9 will come soon
* Wsgi.errors is text (#62)Dave Brondsema2020-10-127-13/+5
| | | | | * Update next() to work with py3 * wsgi.errors is supposed to be text, fixes ErrorMiddleware on py3
* Fix AuthBasicAuthenticator base64 decoding to work on py3 (#61)Dave Brondsema2020-10-121-1/+3
|
* release 3.4.63.4.6Chris Dent2020-09-252-1/+8
|
* Add an explicit dependency on setuptools for pkg_resources (#60)Michał Górny2020-09-251-1/+4
| | | | | | | Since Paste uses pkg_resources explicitly, it should have a runtime dependency on setuptools. While this does not make any difference to pip users right now, it helps packagers correctly determine the dependencies, for packaging systems that can remove/skip build-time dependencies.
* release 3.4.53.4.5Chris Dent2020-09-242-1/+8
|
* Remove deprecated imports (#59)jhance2020-09-241-10/+1
| | | | | The BaseCookie import is cleaned up to use six. Where splittype and splithost are used the returned values are not, so they can go away.
* Release 3.4.43.4.4Chris Dent2020-09-092-1/+8
| | | | Work with setuptools 50.1.0+
* New version of setuptools uses `html` module from standart library (#58)Tomáš Hrnčiar2020-09-091-1/+1
| | | | | | | | which collides with `paste.util.html`. Instead of inserting it into first position of sys.path, this commit appends it to the end. Building tested in COPR: https://copr.fedorainfracloud.org/coprs/thrnciar/python-setuptools/build/1654052/ Fixes: #57
* release 3.4.33.4.3Chris Dent2020-07-222-1/+8
|
* Patching auth ticket to be python3 compatible (#56)TilmanSchaefer2020-07-221-7/+7
| | | * Patching auth ticket to be python3 compatible
* release 3.4.23.4.2Chris Dent2020-07-142-1/+8
|
* Py3-compat middleware.py's make_table's item sort (#55)Amit Markel2020-07-141-2/+1
| | | In py2 an array is created and sorted, and in py3 an array of the items needs to be realized in the same fashion hence the sorted(•) fix. Otherwise the code will fail on Python 3 since dict.items() returns a view on the items which doesn't have a .sort() method.
* release 3.4.13.4.1Chris Dent2020-06-042-1/+6
|
* Make next handling in wsgilib more py3-compatible (#53)jhance2020-06-031-4/+4
| | | | | If the app-iterator being passed in is not defining `next()` (e.g. running under py3 and only defined `__next__`), this will currently crash. Fix by using `six.next` which will use `__next__` or `next` as appropriate.
* update PEP333 link in README (#52)TinUnkai2020-03-161-1/+1
|
* release 3.4.03.4.0Chris Dent2020-02-122-1/+8
|
* add ipv6 support by setting address family (#50)Lekinho2020-02-122-2/+87
| | | * add ipv6 support by setting address family
* release 3.3.03.3.0Chris Dent2020-01-282-1/+7
|
* add six to check for python 2 or 3 specific implementation (#48)Thomas Cross2020-01-281-2/+4
| | | | | | | | * StringIO imports differently in python 3 - use six for compatibility * Paste requires bytes like objects. in python 2 cStringIO works fine, but in python three it needs to use io.BytesIO * simplify imports and logic by using six.BytesIO exclusively for parsing body content
* Remove pytest-runner integration (#47)Colin Watson2020-01-272-3/+0
| | | | | | | | | | | | | `pytest-runner` describes itself as deprecated in its own package description, referring to https://github.com/pypa/setuptools/issues/1684. Using it in `setup_requires` means that any other package that depends on Paste has to install `pytest-runner` too, which is fairly heavyweight and unnecessary. (I ran into this when trying to update Launchpad to a less ancient version of Paste.) This does mean that `python setup.py test` no longer works, but, according to the setuptools issue above, that's deprecated anyway. Paste already has `tox` configuration that works well.
* relese 3.2.73.2.7Chris Dent2020-01-262-1/+6
| | | | more python3 fixes
* StringIO imports differently in python 3 - use six for compatibility (#46)Thomas Cross2020-01-261-1/+1
|
* Update auth_tkt.py for python3 compatibility (#45)marzetas2020-01-262-20/+150
| | | | | | | | * Update auth_tkt.py urllib imports to work in python3 * Add tests for auth AuthTicket * Adapt auth_tkt to be python2 and python3 compatible
* Release 3.2.63.2.6Chris Dent2020-01-132-1/+7
| | | | * Correct HEAD handling accept-encoding: gzip
* Make gzip middleware stop producing a spurious response body on HEAD ↵Jason Madden2020-01-133-4/+27
| | | | | requests. (#44) Fixes #43
* release 3.2.53.2.5Chris Dent2020-01-091-1/+1
|
* python3 compatibility issues: list + keys concatenation, bool check (#42)Vitaly Haritonsky2020-01-091-1/+4
|
* release 3.2.43.2.4Chris Dent2020-01-052-1/+10
|
* Fix deprecation warnings (#41)Xtreak2020-01-052-7/+14
| | | | | | | | * Use is_alive instead of isAlive for Python 3.9 compatibility. * Use encodebytes instead of deprecated encodestring. * Fix Python 2 and 3 compatibility for base64.
* release 3.2.33.2.3Chris Dent2019-11-252-1/+6
|
* socket write expect bytes instead of str (#38)blidce2019-11-251-1/+1
|
* release 3.2.23.2.2Chris Dent2019-10-142-1/+6
| | | | * Avoid some reference cycles through tracebacks in httpserver.py
* Avoid some reference cycles through tracebacks. (#36)Benjamin Peterson2019-10-141-5/+3
|
* Release 3.2.1Chris Dent2019-10-142-1/+6
| | | | * Handle io.UnsupportedOperation from socket.tell()
* LimitedLengthFile: Handle io.UnsupportedOperation from socket.tell(). (#35)Benjamin Peterson2019-09-092-3/+27
| | | On Python 3, socket.makefile() returns an object with a tell() method, but one that always raises io.UnsupportedOperation.
* Simplify parse_formvars. (#34)Benjamin Peterson2019-09-061-40/+29
| | | If we don't want to parse the request body with cgi, we can just not use cgi rather than building a fake request.
* release 3.2.03.2.0Chris Dent2019-09-052-1/+11
| | | | | | * Ensure unicode URLs work in TestApp. * Make LimitedLengthFile file return empty bytes. * Protect against accidental close in FieldStorage.
* TestApp: Make unicode urls always work. (#33)Benjamin Peterson2019-09-042-0/+8
| | | Passing a unicode url to get() always worked (assuming the url contained only ASCII), but it didn't work to post(), put(), or delete() if query parameters were included. This change fixes the latter cases.
* Make LimitedLengthFile file return empty bytes rather than empty string when ↵Benjamin Peterson2019-09-042-2/+10
| | | | it's done. (#32)