Sync from SUSE:SLFO:Main python-WSGIProxy2 revision 96d9a04a2de9c3050be2e3e3593b9eeb

This commit is contained in:
Adrian Schröter 2024-05-03 19:59:02 +02:00
commit d410e09197
5 changed files with 205 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
WSGIProxy2-0.5.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

95
python-WSGIProxy2.changes Normal file
View File

@ -0,0 +1,95 @@
-------------------------------------------------------------------
Tue May 9 13:49:43 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- 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 <yarunachalam@suse.com>
- 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 <tchvatal@suse.com>
- Switch to pytest and skip one failing test
-------------------------------------------------------------------
Wed Mar 6 10:44:27 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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 <mcepl@suse.com>
- 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)

81
python-WSGIProxy2.spec Normal file
View File

@ -0,0 +1,81 @@
#
# spec file
#
# Copyright (c) 2023 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 setuptools}
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
%python_build
%install
%if !%{with test}
%python_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}/*
%endif
%changelog