forked from pool/python-python-socks
Compare commits
13 Commits
ff6c4bc2ba
...
40cf959487
Author | SHA256 | Date | |
---|---|---|---|
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,29 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
@@ -12,7 +38,7 @@ Wed Feb 22 07:28:56 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 6 22:53:00 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- Update to 2.0.3:
|
||||
- Update to 2.0.3:
|
||||
* Fix anyio exception handling
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@@ -21,7 +47,7 @@ Sat Jan 15 16:53:04 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
- update to 2.0.2:
|
||||
* Added anyio backend
|
||||
* Added new (v2) API for sync and trio backends
|
||||
* The code base has been completely redesigned
|
||||
* The code base has been completely redesigned
|
||||
* Fixed #14 anyio.BrokenResourceError
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-python-socks
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 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.4.4
|
||||
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.4.4.tar.gz
Normal file
3
python-socks-2.4.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2fd4a78f8ddeee7e01a93752115efa92dfb3f371bb2ac0566d0bb64c959f25b1
|
||||
size 31998
|
Reference in New Issue
Block a user