1
0

Compare commits

...

13 Commits

Author SHA256 Message Date
40cf959487 Accepting request 1169638 from devel:languages:python
- Use tarball from GitHub (gh#romis2012/python-socks#30) to make
  running the test suite possible.
- Fix dependencies (bsc#1223181).

OBS-URL: https://build.opensuse.org/request/show/1169638
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-socks?expand=0&rev=7
2024-04-23 16:55:54 +00:00
18c0142f7c - Use tarball from GitHub (gh#romis2012/python-socks#30) to make
running the test suite possible.
- Fix dependencies (bsc#1223181).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-socks?expand=0&rev=19
2024-04-22 08:20:21 +00:00
0ab73f0412 Accepting request 1136322 from devel:languages:python
- 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

- Update to 2.0.3:
  * The code base has been completely redesigned

OBS-URL: https://build.opensuse.org/request/show/1136322
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-socks?expand=0&rev=6
2024-01-03 11:28:03 +00:00
ec04dcfc01 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-socks?expand=0&rev=17 2024-01-02 22:49:45 +00:00
ecd6230236 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-socks?expand=0&rev=16 2024-01-01 20:34:45 +00:00
a374ae03d7 - 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
- Update to 2.0.3:
  * The code base has been completely redesigned

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-socks?expand=0&rev=15
2024-01-01 20:34:16 +00:00
c3e7415bcf Accepting request 1096900 from devel:languages:python
- Clean up SPEC file.
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1096900
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-socks?expand=0&rev=5
2023-07-05 13:31:01 +00:00
32864f367b - Clean up SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-socks?expand=0&rev=13
2023-07-05 07:43:42 +00:00
a5bd6dfa15 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-socks?expand=0&rev=12 2023-07-04 17:26:46 +00:00
c52b16b7ac later
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-socks?expand=0&rev=11
2023-07-04 16:01:34 +00:00
851cfcb7c7 Accepting request 1068359 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1068359
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-socks?expand=0&rev=4
2023-03-01 15:14:27 +00:00
9bf6a761dd Accepting request 1008705 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1008705
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-socks?expand=0&rev=3
2022-10-07 23:25:23 +00:00
6f508564b6 Accepting request 948134 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/948134
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-socks?expand=0&rev=2
2022-01-23 11:16:05 +00:00
5 changed files with 80 additions and 14 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -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
-------------------------------------------------------------------

View File

@@ -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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3bb68964c97690d5a3eab6c12a772f415725f295b148cbe1ca8870cb47ebcb96
size 25118

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2fd4a78f8ddeee7e01a93752115efa92dfb3f371bb2ac0566d0bb64c959f25b1
size 31998