From 188697000680fc9c590fcc8c9c7a27416bb9b1496ab445ce818cc53ea3477e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 12:02:46 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pproxy?expand=0&rev=10 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + pproxy-2.7.8.tar.gz | 3 ++ python-pproxy.changes | 48 ++++++++++++++++++++++++ python-pproxy.spec | 86 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 161 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pproxy-2.7.8.tar.gz create mode 100644 python-pproxy.changes create mode 100644 python-pproxy.spec 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/pproxy-2.7.8.tar.gz b/pproxy-2.7.8.tar.gz new file mode 100644 index 0000000..8ca6eb9 --- /dev/null +++ b/pproxy-2.7.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fab73cc13b2bb10c9fc4d9c1a8ec8011a354c9bcbffa446d91229e13c5d996c8 +size 58261 diff --git a/python-pproxy.changes b/python-pproxy.changes new file mode 100644 index 0000000..444680d --- /dev/null +++ b/python-pproxy.changes @@ -0,0 +1,48 @@ +------------------------------------------------------------------- +Tue Jun 3 12:02:35 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Tue Oct 24 12:13:06 UTC 2023 - Dirk Müller + +- use the versioned metadata (requires setuptools_scm) + +------------------------------------------------------------------- +Tue Jul 4 13:08:24 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Fri Sep 17 07:03:50 UTC 2021 - Dominique Leuenberger + +- Do not build for python 3.6: the required dependency uvloop does + no longer support Python 3.6 since version 0.16. + +------------------------------------------------------------------- +Thu Jun 3 09:29:40 UTC 2021 - Antonio Larrosa + +- Update to v2.7.8 + * ssh reconnect +- Update to v2.7.7 + * UDP multiple jumps not working +- Update to v2.7.6 + * quic config +- Update to v2.7.5 + * quic param + +------------------------------------------------------------------- +Tue Feb 23 14:30:31 UTC 2021 - John Vandenberg + +- Update to v2.7.4 + +------------------------------------------------------------------- +Mon Dec 7 18:18:14 UTC 2020 - John Vandenberg + +- Activate test suite +- Update to v2.5 + +------------------------------------------------------------------- +Sat Nov 21 01:01:30 PM UTC 2020 - John Vandenberg + +- Initial spec for v2.4.6 diff --git a/python-pproxy.spec b/python-pproxy.spec new file mode 100644 index 0000000..5f4bd04 --- /dev/null +++ b/python-pproxy.spec @@ -0,0 +1,86 @@ +# +# spec file for package python-pproxy +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pproxy +Version: 2.7.8 +Release: 0 +Summary: Proxy server that can tunnel among remote servers by regex rules +License: MIT +URL: https://github.com/qwj/python-proxy +Source: https://files.pythonhosted.org/packages/source/p/pproxy/pproxy-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Suggests: python-aioquic >= 0.9.7 +Suggests: python-asyncssh >= 2.5.0 +Suggests: python-pycryptodome >= 3.7.2 +Suggests: python-python-daemon >= 2.2.3 +Suggests: python-uvloop >= 0.13.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module aioquic >= 0.9.7} +BuildRequires: %{python_module asyncssh >= 2.5.0} +BuildRequires: %{python_module pycryptodome >= 3.7.2} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-daemon >= 2.2.3} +BuildRequires: %{python_module uvloop >= 0.13.0} +# /SECTION +%python_subpackages + +%description +Proxy server that can tunnel among remote servers by regex rules. + +%prep +%setup -q -n pproxy-%{version} +# See https://github.com/qwj/python-proxy/issues/101 for status of these tests +# cipher_* doesnt allow any cli args, so easiest way to run them is removing other tests +rm tests/api_*.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/pproxy +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative pproxy + +%postun +%python_uninstall_alternative pproxy + +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +for file in tests/*.py; do + $python $file +done +} + +%files %{python_files} +%doc README.rst +%license LICENSE +%python_alternative %{_bindir}/pproxy +%{python_sitelib}/pproxy-%{version}*-info +%{python_sitelib}/pproxy + +%changelog