commit c2bbd7d52821b93ea832aa5b53cb9affdacdf78e3f799b9d66d2a1fefc04316e Author: Dirk Mueller Date: Mon Apr 28 16:42:39 2025 +0000 - update to 2.7.1: * Close socket on loop.sock_connect(...) error by @aaugustin OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-socks?expand=0&rev=27 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/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-python-socks.changes b/python-python-socks.changes new file mode 100644 index 0000000..8587b06 --- /dev/null +++ b/python-python-socks.changes @@ -0,0 +1,80 @@ +------------------------------------------------------------------- +Mon Apr 28 16:42:31 UTC 2025 - Dirk Müller + +- update to 2.7.1: + * Close socket on loop.sock_connect(...) error by @aaugustin + +------------------------------------------------------------------- +Mon Oct 28 17:01:58 UTC 2024 - Dirk Müller + +- update to 2.5.3: + * Fix socks5 reply reading + +------------------------------------------------------------------- +Tue Oct 1 12:44:51 UTC 2024 - Dirk Müller + +- update to 2.5.2: + * Use builtin async-timeout for Python>=3.11 + +------------------------------------------------------------------- +Sat Aug 31 12:10:16 UTC 2024 - Dirk Müller + +- update to 2.5.1: + * Fix socks5 reply reading + +------------------------------------------------------------------- +Mon Apr 22 06:46:07 UTC 2024 - Matej Cepl + +- Use tarball from GitHub (gh#romis2012/python-socks#30) to make + running the test suite possible. +- Fix dependencies (bsc#1223181). + +------------------------------------------------------------------- +Mon Jan 1 20:31:36 UTC 2024 - Dirk Müller + +- update to 2.4.4: + * Handle IndexError when loading socks5 reply + * Fix connection logic (api v2) + * Change empty reply error message (socks5) + * ConnectReply.loads: fix IndexError in case no data + * Redesign code base + * Remove obsolete protocol implementation + * Add Sans I/O based http proxy protocol implementation + * Add Sans I/O socks4 implementation + * Add simple Sans I/O based socks5 implementation + +------------------------------------------------------------------- +Wed Jul 5 07:43:34 UTC 2023 - Matej Cepl + +- Clean up SPEC file. + +------------------------------------------------------------------- +Tue Jul 4 11:32:43 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Feb 22 07:28:56 UTC 2023 - ecsos + +- Update to 2.1.1 + - No changelog from upstream. + +------------------------------------------------------------------- +Thu Oct 6 22:53:00 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 2.0.3: + * Fix anyio exception handling + +------------------------------------------------------------------- +Sat Jan 15 16:53:04 UTC 2022 - Dirk Müller + +- update to 2.0.2: + * Added anyio backend + * Added new (v2) API for sync and trio backends + * The code base has been completely redesigned + * Fixed #14 anyio.BrokenResourceError + +------------------------------------------------------------------- +Wed Apr 21 06:07:29 UTC 2021 - Jiri Slaby + +- initial package (1.2.4) diff --git a/python-python-socks.spec b/python-python-socks.spec new file mode 100644 index 0000000..a7dd3d5 --- /dev/null +++ b/python-python-socks.spec @@ -0,0 +1,95 @@ +# +# spec file for package python-python-socks +# +# 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/ +# + + +%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-python-socks%{psuffix} +Version: 2.7.1 +Release: 0 +Summary: Core proxy client functionality for Python +License: Apache-2.0 +URL: https://github.com/romis2012/python-socks +# gh#romis2012/python-socks#30 +Source: https://github.com/romis2012/python-socks/archive/refs/tags/v%{version}.tar.gz#/python-socks-%{version}.tar.gz +BuildRequires: %{python_module anyio} +BuildRequires: %{python_module async-timeout} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +# Source: https://files.pythonhosted.org/packages/source/p/python-socks/python-socks-%%{version}.tar.gz +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module Flask} +BuildRequires: %{python_module async_timeout} +BuildRequires: %{python_module attrs} +BuildRequires: %{python_module flake8} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest-trio} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module tiny-proxy} +BuildRequires: %{python_module trio} +BuildRequires: %{python_module trustme} +BuildRequires: %{python_module yarl} +%endif +%python_subpackages + +%description +The python-socks package provides a core proxy client functionality for Python. +Supports SOCKS4(a), SOCKS5, HTTP (tunneling) proxy and provides sync and async +(asyncio, trio, curio) APIs. You probably don't need to use python-socks +directly. It is used internally by aiohttp-socks and httpx-socks packages. + +%prep +%autosetup -p1 -n python-socks-%{version} + +%build +%if %{without test} +%pyproject_wheel +%endif + +%install +%if %{without test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +# try at least a simple import +%pytest +%endif + +%if %{without test} +%files %{python_files} +%doc README.md +%license LICENSE.txt +%{python_sitelib}/python_socks +%{python_sitelib}/python_socks-%{version}.dist-info +%endif + +%changelog diff --git a/python-socks-2.4.4.tar.gz b/python-socks-2.4.4.tar.gz new file mode 100644 index 0000000..0ad07ce --- /dev/null +++ b/python-socks-2.4.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fd4a78f8ddeee7e01a93752115efa92dfb3f371bb2ac0566d0bb64c959f25b1 +size 31998 diff --git a/python-socks-2.5.1.tar.gz b/python-socks-2.5.1.tar.gz new file mode 100644 index 0000000..e4cca59 --- /dev/null +++ b/python-socks-2.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ceeff799a2dc848e8c93cb27fef1ed716b7f17ba0e34b2c196e075057359769 +size 32387 diff --git a/python-socks-2.5.3.tar.gz b/python-socks-2.5.3.tar.gz new file mode 100644 index 0000000..f93ccd1 --- /dev/null +++ b/python-socks-2.5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd0f8304a750076baa5c8fa3b0502171db4afe1e02a49c2dbecbf83bb8c3146a +size 32399 diff --git a/python-socks-2.7.1.tar.gz b/python-socks-2.7.1.tar.gz new file mode 100644 index 0000000..76e725a --- /dev/null +++ b/python-socks-2.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:358e949c60c4f58283e03aaf6431a1c7564a804367a6d1b801f50ca461612ee5 +size 32377