python-proxy.py/python-proxy.py.spec
Daniel Garcia b47a246161 - Update to 2.4.3:
* v2.4.2 by @abhinavsingh in #1158
  * pip prod(deps): bump blacksheep from 1.2.2 to 1.2.7 by @dependabot in #1161
  * Bump fregante/setup-git-user from 1.0.1 to 1.1.0 by @dependabot in #1160
  * npm: bump ts-node from 10.7.0 to 10.8.0 in /dashboard by @dependabot in #1159
  * npm: bump ws from 8.5.0 to 8.6.0 in /dashboard by @dependabot in #1165
  * pip prod(deps): bump pytest from 6.2.5 to 7.0.1 by @dependabot in #1164
  * pip prod(deps): bump rope from 0.22.0 to 1.1.1 by @dependabot in #1167
  * pip prod(deps): bump starlette from 0.17.1 to 0.19.1 by @dependabot in #1168
  * pip prod(deps): bump mypy from 0.940 to 0.960 by @dependabot in #1170
  * Bump actions/cache from 3.0.2 to 3.0.4 by @dependabot in #1185
  * Bump actions/setup-python from 3 to 4 by @dependabot in #1186
  * pip prod(deps): bump py-spy from 0.3.11 to 0.3.12 by @dependabot in #1174
  * pip prod(deps): bump mypy from 0.960 to 0.961 by @dependabot in #1187
  * Add support for dynamic reverse proxy routing by @abhinavsingh in #1180
  * [v2.4.3] Support for dynamic reverse proxy routes by @abhinavsingh in #1188
- 2.4.2:
  * Bump actions/setup-python from 2 to 3 by @dependabot in #1110
  * npm: bump chrome-devtools-frontend from 1.0.956881 to 1.0.980332 in /dashboard by @dependabot in #1109
  * pip prod(deps): bump mypy from 0.931 to 0.940 by @dependabot in #1111
  * pip prod(deps): bump furo from 2022.1.2 to 2022.3.4 by @dependabot in #1113
  * Fix Towncrier link by @abhinavsingh in #1119
  * Bump actions/cache from 2.1.7 to 3.0.1 by @dependabot in #1118
  * pip prod(deps): bump paramiko from 2.9.2 to 2.10.3 by @dependabot in #1116
  * npm: bump @types/jquery from 3.5.13 to 3.5.14 in /dashboard by @dependabot in #1115
  * Bump ncipollo/release-action from 1.9.0 to 1.10.0 by @dependabot in #1120
  * Bump actions/upload-artifact from 2 to 3 by @dependabot in #1124
  * npm: bump async from 2.6.3 to 2.6.4 in /dashboard by @dependabot in #1125
  * Fix myst_parser config by @abhinavsingh in #1128
  * [FilterByClientIpPlugin] Implement the whitelist logic by @LetMeR00t in #1127

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proxy.py?expand=0&rev=6
2023-05-05 09:03:58 +00:00

83 lines
2.6 KiB
RPMSpec

#
# spec file for package python-proxy.py
#
# 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/
#
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-proxy.py
Version: 2.4.3
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
# PATCH-FIX-OPENSUSE proxy.py-command.patch -- deconflict with libproxy, code@bnavigator.de
Patch0: proxy.py-command.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-mock}
BuildRequires: openssl
# /SECTION
%python_subpackages
%description
Fast, Lightweight, Pluggable, TLS interception capable proxy server
focused on Network monitoring, controls & Application development, testing, debugging.
Note: On SUSE distributions, the command is installed as proxy-py not as proxy.
%prep
%autosetup -p1 -n proxy.py-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/proxy-py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest --ignore tests/http/proxy/test_http2.py --ignore tests/integration/test_integration.py
%post
%python_install_alternative proxy-py
%postun
%python_uninstall_alternative proxy-py
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/proxy-py
%{python_sitelib}/proxy
%{python_sitelib}/proxy.py-%{version}*-info
%changelog