Accepting request 939973 from home:bnavigator:branches:devel:languages:python

required by aiohttp 3.8 testing

OBS-URL: https://build.opensuse.org/request/show/939973
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proxy.py?expand=0&rev=1
This commit is contained in:
Dirk Mueller 2021-12-11 23:51:10 +00:00 committed by Git OBS Bridge
commit 12d7bd4663
5 changed files with 106 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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
proxy.py-2.3.1-gh.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e48bef954861cd73aa116f9a1f603fceb72274753df019aad3d478ff067def8
size 705484

5
python-proxy.py.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Sat Dec 11 19:50:52 UTC 2021 - Ben Greiner <code@bnavigator.de>
- initial specfile for version 2.3.1
- required by aiohttp 3.8 testing

74
python-proxy.py.spec Normal file
View File

@ -0,0 +1,74 @@
#
# spec file for package python-proxy.py
#
# Copyright (c) 2021 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/
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-proxy.py
Version: 2.3.1
Release: 0
Summary: TLS interception capable proxy server
License: BSD-3-Clause
URL: https://github.com/abhinavsingh/proxy.py
# PyPI sdist does not have tests, use Github source
Source: https://github.com/abhinavsingh/proxy.py/archive/refs/tags/v%{version}.tar.gz#/proxy.py-%{version}-gh.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-typing-extensions >= 3.7.4.3
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module typing-extensions >= 3.7.4.3}
BuildRequires: openssl
# /SECTION
%python_subpackages
%description
Fast, Lightweight, Pluggable, TLS interception capable proxy server
focused on Network monitoring, controls & Application development, testing, debugging.
%prep
%setup -q -n proxy.py-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/proxy
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative proxy
%postun
%python_uninstall_alternative proxy
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/proxy
%{python_sitelib}/proxy
%{python_sitelib}/proxy.py-%{version}*-info
%changelog