14
0

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
This commit is contained in:
2023-07-05 13:31:01 +00:00
committed by Git OBS Bridge
2 changed files with 19 additions and 8 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
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>
- Add %{?sle15_python_module_pythons}
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 22 07:28:56 UTC 2023 - ecsos <ecsos@opensuse.org> Wed Feb 22 07:28:56 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -16,8 +16,7 @@
# #
%define skip_python2 1 %{?sle15_python_module_pythons}
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-python-socks Name: python-python-socks
Version: 2.1.1 Version: 2.1.1
Release: 0 Release: 0
@@ -25,7 +24,8 @@ Summary: Core proxy client functionality for Python
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/romis2012/python-socks URL: https://github.com/romis2012/python-socks
Source: https://files.pythonhosted.org/packages/source/p/python-socks/python-socks-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/python-socks/python-socks-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@@ -38,22 +38,23 @@ Supports SOCKS4(a), SOCKS5, HTTP (tunneling) proxy and provides sync and async
directly. It is used internally by aiohttp-socks and httpx-socks packages. directly. It is used internally by aiohttp-socks and httpx-socks packages.
%prep %prep
%setup -q -n python-socks-%{version} %autosetup -p1 -n python-socks-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# try at least a simple import # try at least a simple import
echo 'from python_socks import ProxyType' | python3 %python_exec -c 'from python_socks import ProxyType'
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE.txt %license LICENSE.txt
%{python_sitelib}/* %{python_sitelib}/python_socks
%{python_sitelib}/python_socks-%{version}*-info
%changelog %changelog