commit 514e61ca116a75c89c8c57f303eba37b4c59a16555e95cc86b1d88cbedbb03ce Author: Dirk Mueller Date: Mon Jul 29 17:00:57 2024 +0000 - Update to 3.10.1 * Correct packaging and testing when not in a clean virtualenv - from version 3.10.0 * Move development to https://github.com/pasteorg/paste * Vendor cgi.FieldStorage and cgitb.Hook * More cleaning of Python 2 style code. - Adjust upstream source name in spec file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=72 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Paste-3.9.0.tar.gz b/Paste-3.9.0.tar.gz new file mode 100644 index 0000000..afacc91 --- /dev/null +++ b/Paste-3.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:556e3c24208fcfae269684fc3b888f46783c80208516bcecc410c00c7f678fef +size 637286 diff --git a/paste-3.10.1.tar.gz b/paste-3.10.1.tar.gz new file mode 100644 index 0000000..18e5f9f --- /dev/null +++ b/paste-3.10.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c3d12065a5e8a7a18c0c7be1653a97cf38cc3e9a5a0c8334a9dd992d3a05e4a +size 652629 diff --git a/python-Paste.changes b/python-Paste.changes new file mode 100644 index 0000000..d535736 --- /dev/null +++ b/python-Paste.changes @@ -0,0 +1,344 @@ +------------------------------------------------------------------- +Mon Jul 29 14:43:27 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 3.10.1 + * Correct packaging and testing when not in a clean virtualenv +- from version 3.10.0 + * Move development to https://github.com/pasteorg/paste + * Vendor cgi.FieldStorage and cgitb.Hook + * More cleaning of Python 2 style code. +- Adjust upstream source name in spec file + +------------------------------------------------------------------- +Mon Apr 15 06:11:49 UTC 2024 - Dirk Müller + +- update to 3.9.0: + * misc bugs + please pyflakes + * Remove unused format_environ method in watchthreads APP + +------------------------------------------------------------------- +Fri Mar 22 20:46:48 UTC 2024 - Dirk Müller + +- update to 3.8.0: + * remove most python2 compatibility + +------------------------------------------------------------------- +Tue Dec 12 13:21:29 UTC 2023 - Dirk Müller + +- update to 3.7.1: + * The main change for 3.7.0 and beyond is dropping support for + Python 2. In the past it was possible to get Paste to work in + Python 2 with some effort. That's now no longer possible. If + Python 2 is required for some reason, use an older version of + Paste. +- update to 3.6.1: + * Turn on github action for tests on pull requests + * Add a Makefile for simple automation + +------------------------------------------------------------------- +Mon Aug 28 04:41:38 UTC 2023 - Steve Kowalik + +- Update to 3.5.3: + * Use importlib instead of imp with Python 3. +- Drop patch support-python-311.patch, something similar now included + upstream. +- Switch to pyproject macros. +- Stop using greedy globs in %files. + +------------------------------------------------------------------- +Tue May 9 13:53:17 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Mon Jan 9 05:47:04 UTC 2023 - Steve Kowalik + +- Add patch support-python-311.patch: + * Filter Deprecationwarning for one test script. +- Remove Python 2 gubbins. + +------------------------------------------------------------------- +Fri Sep 9 11:24:27 UTC 2022 - Yogalakshmi Arunachalam + +- update to 3.5.2: + * Fix py3 compatibility in paste.wsgilib.catch_errors (#70) + * 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. + +------------------------------------------------------------------- +Fri Jul 15 19:15:51 UTC 2022 - Dirk Müller + +- update to 3.5.1: + * Replace deprecated threading.currentThread, getName and setDaemon + with threading.current_thread, name and daemon. + +------------------------------------------------------------------- +Tue Feb 23 15:59:59 UTC 2021 - Markéta Machová + +- Get rid of broken %ifpython3 macro + +------------------------------------------------------------------- +Thu Nov 26 09:07:17 UTC 2020 - Dirk Mueller + +- update to 3.5.0: + * Python 3 fixes to auth and wsgi.errors handling; notably making + wsgi.errors text. + +------------------------------------------------------------------- +Fri Oct 9 04:10:19 UTC 2020 - Steve Kowalik + +- Update to 3.4.6: + * Explicit pkg_resource dependency to easy packaging. + * Remove deprecated dependencies paste/fixture.py. + * Update setup.py to work with setuptools 50.1.0+ + +------------------------------------------------------------------- +Tue Aug 4 12:08:43 UTC 2020 - Dirk Mueller + +- update to 3.4.3: + * Patch auth ticket to be python3 compatible. + +------------------------------------------------------------------- +Fri Jul 17 07:20:06 UTC 2020 - Dirk Mueller + +- update to 3.4.2: + * Correct sorting of items() in EvalHTMLFormatter. + * Fix next in iterators in wsgilib.py. + +------------------------------------------------------------------- +Thu Mar 26 16:10:35 UTC 2020 - Marketa Calabkova + +- update to 3.4.0 + * Python 3 updates for use of StringIO and auth_tkt.py. + * Use six.BytesIO when reading wsgi.input. + * Allow binding IPv6 address when starting a server. + +------------------------------------------------------------------- +Wed Jan 15 10:54:10 UTC 2020 - Marketa Calabkova + +- update to 3.2.6 + * Correctly handle HEAD requests (to send empty body) when gzip encoding requested. + * 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. + +------------------------------------------------------------------- +Fri Dec 20 19:27:02 UTC 2019 - Dirk Mueller + +- update to 3.2.3: + * Correct ``100 Continue`` in Python 3 + * Avoid some reference cycles through tracebacks in httpserver.py + +------------------------------------------------------------------- +Mon Oct 7 14:54:45 UTC 2019 - Tomáš Chvátal + +- Update to 3.2.1: + * no changelog + +------------------------------------------------------------------- +Tue Sep 24 09:25:15 UTC 2019 - Tomáš Chvátal + +- Update to 3.2.0: + * Ensure unicode URLs work in TestApp. + * Make LimitedLengthFile file return empty bytes. + * Protect against accidental close in FieldStorage. + +------------------------------------------------------------------- +Mon Jul 29 07:45:13 UTC 2019 - pgajdos@suse.com + +- version update to 3.1.0 + * Allow anything that can read() for a file-like response, not just + a ``file`` instance. + +------------------------------------------------------------------- +Fri Mar 8 09:27:42 UTC 2019 - John Vandenberg + +- Add test_modified-fixup.patch to re-enable the test +- Remove build dependency on pytest-runner +- Update to v3.0.8 + * Fix quoting of bytestrings + +------------------------------------------------------------------- +Tue Mar 5 19:12:58 UTC 2019 - Tomáš Chvátal + +- Do not bother with sphinx docu, it is online anyway + +------------------------------------------------------------------- +Tue Mar 5 17:00:52 UTC 2019 - Tomáš Chvátal + +- Update to 3.0.7: + * Write bytestrings when calling wsgi_write_chunk + * Revert "Remove use of OpenSSL.tsafe, which links to OpenSSL.SSL + +------------------------------------------------------------------- +Thu Jan 3 07:17:00 UTC 2019 - Tomáš Chvátal + +- Disable test_modified as it fails on non 64b arches due to + slightly different reported string +- Drop nose dep, not needed +- Fix URL to point to current homepage + +------------------------------------------------------------------- +Mon Dec 17 21:04:26 UTC 2018 - Thomas Bechtold + +- update to 3.0.5: + * make tests pass after 2031 + * Use correct variable when building message for exception + * Remove use of OpenSSL.tsafe, which links to OpenSSL.SSL anyways. (#16) + * Fix error on httpserver shutdown + * Add support for limited testing with travis-ci + * Merged in hroncok/paste/py37 (pull request #41) + * Don't raise StopIteration from generator, return instead + * Fix up testing after switch to pytest + * Make iterators Python3-compatible + * Remove use of future + * Don't raise StopIteration inside a generator + * add link to read the docs to README + * Release 3.0.2 + * Release 3.0.5 + * Prepare docs for publishing to RTFD + * Run tox with Python 3.6 and 3.7 + * Prepare a 3.0.0 release + * release 3.0.1 + * py3 fixes for form handling in paste.fixture (#8) + * release 3.0.3 + * Special case py37 + * release 3.0.4 + * Switch from nose to pytest + * Pytest fixes (#9) + * paste.fixture: fix form offset handling (#12) + * Add a simple .gitignore + * Don't delete dict item while iterating over same dict (#14) + * Depend on pytest instead of nose (#13) + * Fix proxy test + * Enable coverage reporting via codecov (#10) + * Update README and setup.py for new location + * Added tag 2.0.3 for changeset 768835f3c1b7 +- Drop python37.patch. No longer needed + +------------------------------------------------------------------- +Thu Oct 18 09:19:55 UTC 2018 - Tomáš Chvátal + +- Fix build on python 3.7: + * python37.patch + +------------------------------------------------------------------- +Tue Mar 6 17:00:13 UTC 2018 - aplanas@suse.com + +- Allows Recommends and Suggest in Fedora + +------------------------------------------------------------------- +Tue Feb 27 13:47:03 UTC 2018 - aplanas@suse.com + +- Suggest only for SUSE +- Use %{__python3} macro + +------------------------------------------------------------------- +Wed Aug 9 16:21:38 UTC 2017 - tbechtold@suse.com + +- Remove unused BuildRequires +- Use Suggests for openid and flup. Both are optional deps + +------------------------------------------------------------------- +Fri May 5 21:59:21 UTC 2017 - toddrme2178@gmail.com + +- Fix Provides/Obsoletes. + +------------------------------------------------------------------- +Wed Apr 19 02:23:02 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. + +------------------------------------------------------------------- +Fri Jun 3 15:31:42 UTC 2016 - tbechtold@suse.com + +- update to 2.0.3: + * prepare release 2.0.1 + * Added tag 2.0.1 for changeset a0ef0e57e057 + * set version to 2.0.2 + * Add tests/test_httpserver.py + * Fix improper commas in request headers in wsgi_environ + * tests/test_httpserver.py: Use `email` module instead of `mimetools` + * tests/test_httpserver.py: Add test_environ_with_multiple_values + * Make get all values of a header work on both Python 2 and 3 + * Make get_headers default to Python 3; fallback to Python 2 + * Make utility function private: _get_headers + * Fix Python 3 issue in paste/fixture.py + * test_wsgirequest_charset: Use UTF-8 instead of iso-8859-1 + * Replace cgi.parse_qsl w/ six.moves.urllib.parse.parse_sql + * replace ``has_key`` method to ``in`` operator #9 + * Don't display invalid error message when socket in use + * Update docs/news.txt for 2.0.2 + * Added tag 2.0.2 for changeset 53f5c2cd7f50 + * Python 3: App must always return binary type. + * Python 3: Always encode params if passed as text types + * Python 3: Don't mangle strangely encoded input + * Python 3: Use the same python interpreter for CGI scripts. + * Python 3: add workarounds for cgi.FieldStorage + * Python 3: avoid spurious warnings + * Python 3: dict.items() doesn't return a list anymore + * Python 3: ignore exception details in doctests + * Python 3: let html_quote() and url() always return the same type + * Python 3: use compatible print syntax in example text + * Change six requirement to >=1.4.0 + * tox.ini: Add py35 to envlist + * Enable testing with pypy + * tox.ini: Measure test coverage + * paste.wsgilib.add_close: Add __next__ method + * Add tests for `add_close` class + * Uncomment/cleanup paste.wsgilib.app_close.__next__ + * Check paste.wsgilib.add_close._closed + * Make add_close.next() leverage add_close.__next__() + * Bump version to 2.0.3 + * Close branch 2.0.3 +- Remove .orig files + +------------------------------------------------------------------- +Sun Mar 13 20:57:49 UTC 2016 - dmueller@suse.com + +- add license.txt + +------------------------------------------------------------------- +Fri May 8 09:10:53 UTC 2015 - benoit.monin@gmx.fr + +- update to version 2.0.1: + * Fix setup.py for six dependency: move the six dependency from + extras_require to install_requires + * Port paste.proxy to Python 3 + * Fix paste.exceptions.serial_number_generator.hash_identifier() + on Python 3 + * Fix paste.util.threadedprint.uninstall() + * Add README.rst file +- additional changes from version 2.0: + * Experimental Python 3 support + * paste now requires the six module + * Drop support of Python 2.5 and older + * Fixed egg:Paste#cgi + * In paste.httpserver: give a 100 Continue response even when the + server has been configured as an HTTP/1.0 server + * Fixed parsing of paths beginning with multiple forward slashes + * Add tox.ini to run tests with tox on Python 2.6, 2.7 and 3.4 +- add python-six as dependency +- add python-flup, python-nose and python-python-openid as test + dependencies +- remove test requiring internet access: test_proxy.py +- reenable the tests + +------------------------------------------------------------------- +Thu Oct 24 11:09:46 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Thu Nov 22 15:35:29 UTC 2012 - saschpe@suse.de + +- Require python-python-openid instead of non-existing python-openid +- Build HTML documentation + +------------------------------------------------------------------- +Wed Jun 22 09:48:40 UTC 2011 - saschpe@suse.de + +- Initial version, obsoletes 'python-paste' + diff --git a/python-Paste.spec b/python-Paste.spec new file mode 100644 index 0000000..d5b54e6 --- /dev/null +++ b/python-Paste.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-Paste +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-Paste +Version: 3.10.1 +Release: 0 +Summary: Tools for using a Web Server Gateway Interface stack +License: MIT +URL: https://github.com/cdent/paste +Source: https://files.pythonhosted.org/packages/source/p/paste/paste-%{version}.tar.gz +Patch0: test_modified-fixup.patch +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six > 1.4.0} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-setuptools +Requires: python-six > 1.4.0 +Suggests: python-flup +Suggests: python-python3-openid +BuildArch: noarch +%python_subpackages + +%description +These provide several pieces of "middleware" (or filters) that can be nested +to build web applications. Each piece of middleware uses the WSGI (PEP 333) +interface, and should be compatible with other middleware based on those +interfaces. + +%prep +%autosetup -p1 -n paste-%{version} +sed -i '/pytest-runner/d' setup.py +# remove test requiring internet access +rm tests/test_proxy.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license docs/license.txt +%doc README.rst +%{python_sitelib}/paste +%{python_sitelib}/Paste-%{version}.dist-info +%{python_sitelib}/Paste-%{version}-py*-nspkg.pth + +%changelog diff --git a/test_modified-fixup.patch b/test_modified-fixup.patch new file mode 100644 index 0000000..70226f6 --- /dev/null +++ b/test_modified-fixup.patch @@ -0,0 +1,14 @@ +diff -ru Paste-3.0.8-orig/tests/test_fileapp.py Paste-3.0.8/tests/test_fileapp.py +--- Paste-3.0.8-orig/tests/test_fileapp.py 2019-02-28 22:09:41.000000000 +0700 ++++ Paste-3.0.8/tests/test_fileapp.py 2019-03-08 17:40:52.558943604 +0700 +@@ -96,7 +96,9 @@ + res = harness.get("/",status=400, + headers={'if-modified-since': + 'Thu, 22 Dec 3030 01:01:01 GMT'}) +- assert 400 == res.status and b"check your system clock" in res.body ++ assert 400 == res.status and ( ++ b"check your system clock" in res.body or ++ b"ill-formed timestamp" in res.body) + + def test_file(): + tempfile = "test_fileapp.%s.txt" % (random.random())