forked from pool/python-python-socks
Compare commits
23 Commits
ff6c4bc2ba
...
factory
Author | SHA256 | Date | |
---|---|---|---|
ebe263120f | |||
c9f4175d27 | |||
47fbfbacac | |||
c2bbd7d528 | |||
16a5299b4d | |||
96a9c2aa1a | |||
bd12f95046 | |||
f925c81324 | |||
eea2cfaf1d | |||
0edec62bb6 | |||
40cf959487 | |||
18c0142f7c | |||
0ab73f0412 | |||
ec04dcfc01 | |||
ecd6230236 | |||
a374ae03d7 | |||
c3e7415bcf | |||
32864f367b | |||
a5bd6dfa15 | |||
c52b16b7ac | |||
851cfcb7c7 | |||
9bf6a761dd | |||
6f508564b6 |
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
@@ -1,3 +1,59 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 6 09:08:33 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 2.7.2
|
||||
* Avoid leaking an open socket (trio) by @aaugustin (#44)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 28 16:42:31 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
- update to 2.5.3:
|
||||
* Fix socks5 reply reading
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 1 12:44:51 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.5.2:
|
||||
* Use builtin async-timeout for Python>=3.11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 31 12:10:16 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.5.1:
|
||||
* Fix socks5 reply reading
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 22 06:46:07 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
- 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 <mcepl@suse.com>
|
||||
|
||||
- Clean up SPEC file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 4 11:32:43 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-python-socks
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# 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
|
||||
@@ -16,18 +16,46 @@
|
||||
#
|
||||
|
||||
|
||||
%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
|
||||
Version: 2.1.1
|
||||
Name: python-python-socks%{psuffix}
|
||||
Version: 2.7.2
|
||||
Release: 0
|
||||
Summary: Core proxy client functionality for Python
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/romis2012/python-socks
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-socks/python-socks-%{version}.tar.gz
|
||||
# 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
|
||||
@@ -37,22 +65,31 @@ Supports SOCKS4(a), SOCKS5, HTTP (tunneling) proxy and provides sync and async
|
||||
directly. It is used internally by aiohttp-socks and httpx-socks packages.
|
||||
|
||||
%prep
|
||||
%setup -q -n python-socks-%{version}
|
||||
%autosetup -p1 -n python-socks-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%if %{without test}
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%if %{without test}
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
# try at least a simple import
|
||||
%{python_expand echo 'from python_socks import ProxyType' | $python}
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%if %{without test}
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/python_socks
|
||||
%{python_sitelib}/python_socks-%{version}.dist-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3bb68964c97690d5a3eab6c12a772f415725f295b148cbe1ca8870cb47ebcb96
|
||||
size 25118
|
3
python-socks-2.7.2.tar.gz
Normal file
3
python-socks-2.7.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6d97a84f30db3d6827479d6df5f2ddefeab242c59c5c8d61d4cf1aa761a10b3f
|
||||
size 32394
|
Reference in New Issue
Block a user