commit 2168e888a8a98b5f94f7f041cc0ca70f85612671c4ffce1299cb0a23cc4f1a0a Author: Markéta Machová Date: Wed Feb 24 10:07:16 2021 +0000 Accepting request 874646 from home:jayvdb:py-submit test dep of httpcore/httpx OBS-URL: https://build.opensuse.org/request/show/874646 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pproxy?expand=0&rev=1 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.4.tar.gz b/pproxy-2.7.4.tar.gz new file mode 100644 index 0000000..daccf6d --- /dev/null +++ b/pproxy-2.7.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e013818b1325603a08769a1c1e36e1ce79482b35069cf64fcdc1c11d34f52fdb +size 59435 diff --git a/python-pproxy.changes b/python-pproxy.changes new file mode 100644 index 0000000..4464da7 --- /dev/null +++ b/python-pproxy.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +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..792bcbc --- /dev/null +++ b/python-pproxy.spec @@ -0,0 +1,83 @@ +# +# spec file for package python-pproxy +# +# Copyright (c) 2020 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() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-pproxy +Version: 2.7.4 +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 setuptools} +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 +%python_build + +%install +%python_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}/* + +%changelog