commit a255bfcd9fcba79ef2e2c64565b759554d95c72da5b623aca498d3b650dece9d Author: Nico Krapp Date: Mon May 12 16:11:20 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WSGIProxy2?expand=0&rev=29 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/WSGIProxy2-0.5.1.tar.gz b/WSGIProxy2-0.5.1.tar.gz new file mode 100644 index 0000000..213c099 --- /dev/null +++ b/WSGIProxy2-0.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d9ecb141de720e2fd4f7a275a4a83a961ffeb6717483d940021ffa1c46f665c +size 16565 diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-WSGIProxy2.changes b/python-WSGIProxy2.changes new file mode 100644 index 0000000..21db08b --- /dev/null +++ b/python-WSGIProxy2.changes @@ -0,0 +1,100 @@ +------------------------------------------------------------------- +Mon May 12 15:51:26 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Tue May 9 13:49:43 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Fri Oct 14 18:11:57 UTC 2022 - pgajdos@suse.com + +- python-six is not required + +------------------------------------------------------------------- +Mon Aug 29 04:04:23 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 0.5.1: + * remove stale dep on six + * use github actions as CI + +- Update to 0.5.0: + * Drop support for python3.6 and bellow + +------------------------------------------------------------------- +Thu Oct 31 15:01:48 UTC 2019 - Tomáš Chvátal + +- Switch to pytest and skip one failing test + +------------------------------------------------------------------- +Wed Mar 6 10:44:27 UTC 2019 - Tomáš Chvátal + +- Update to 0.4.6: + * PATCH added into (default) list of allowed methods + * Allow to use URIs with no path + * Clean up connection before returning result. This removes some ResourceWarnings when testing +- Add multibuild to enable tests without cycle dependencies +- Add missing requirements found by tests + +------------------------------------------------------------------- +Tue Dec 4 12:56:09 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Sun May 7 22:41:52 UTC 2017 - toddrme2178@gmail.com + +- Source URL must be https. + +------------------------------------------------------------------- +Mon May 1 16:48:32 UTC 2017 - toddrme2178@gmail.com + +- Update to version 0.4.3 + * Add OPTIONS to defaults allowed methods + * Drop restkit support + * Drop py26 support +- Implement single-spec version +- Fix source URL. + +------------------------------------------------------------------- +Thu May 14 14:57:58 UTC 2015 - benoit.monin@gmx.fr + +- update to version 0.4.2: + * Undo webob's unquoting to handle paths with percent quoted utf8 + characters [Laurence Rowe] + +------------------------------------------------------------------- +Mon Jan 13 14:08:14 UTC 2014 - dmueller@suse.com + +- update to 0.4.1: + * fix tests. + * change the way requests iter response + +------------------------------------------------------------------- +Thu Oct 24 11:17:27 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Wed Sep 25 16:38:50 UTC 2013 - p.drouand@gmail.com + +- Update to version 0.3 + + Make allowed_methods check optional + +------------------------------------------------------------------- +Thu May 2 12:46:32 UTC 2013 - speilicke@suse.com + +- Conflict with python-WSGIProxy + +------------------------------------------------------------------- +Mon Apr 29 13:39:22 UTC 2013 - speilicke@suse.com + +- Add README.rst + +------------------------------------------------------------------- +Mon Apr 29 13:15:45 UTC 2013 - dmueller@suse.com + +- Initial package (0.1) + diff --git a/python-WSGIProxy2.spec b/python-WSGIProxy2.spec new file mode 100644 index 0000000..8f740f1 --- /dev/null +++ b/python-WSGIProxy2.spec @@ -0,0 +1,83 @@ +# +# spec file for package python-WSGIProxy2 +# +# Copyright (c) 2025 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/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +%{?sle15_python_module_pythons} +Name: python-WSGIProxy2%{psuffix} +Version: 0.5.1 +Release: 0 +Summary: WSGI Proxy Implementation +License: MIT +URL: https://github.com/gawel/WSGIProxy2/ +Source: https://files.pythonhosted.org/packages/source/W/WSGIProxy2/WSGIProxy2-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-WebOb +Requires: python-requests +Requires: python-urllib3 +Conflicts: python-WSGIProxy +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module WebOb} +BuildRequires: %{python_module WebTest} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module urllib3} +%endif +%python_subpackages + +%description +Proxy support for WebOb or classic WSGI applications + +%prep +%setup -q -n WSGIProxy2-%{version} + +%build +%pyproject_wheel + +%install +%if !%{with test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +# test_quoted_utf8_url: randomly fails +%pytest -k 'not test_quoted_utf8_url' +%endif + +%if !%{with test} +%files %{python_files} +%license COPYING +%doc CHANGES.rst README.rst +%{python_sitelib}/wsgiproxy +%{python_sitelib}/[Ww][Ss][Gg][Ii][Pp]roxy2-%{version}*-info +%endif + +%changelog