From 32864f367bd390a4dddc83200183adad00a567e59aee9b68ef698905feb1e976 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 5 Jul 2023 07:43:42 +0000 Subject: [PATCH] - Clean up SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-socks?expand=0&rev=13 --- python-python-socks.changes | 5 +++++ python-python-socks.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-python-socks.changes b/python-python-socks.changes index 04930f5..cd28ccd 100644 --- a/python-python-socks.changes +++ b/python-python-socks.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 5 07:43:34 UTC 2023 - Matej Cepl + +- Clean up SPEC file. + ------------------------------------------------------------------- Tue Jul 4 11:32:43 UTC 2023 - ecsos diff --git a/python-python-socks.spec b/python-python-socks.spec index 5c65405..4eceb99 100644 --- a/python-python-socks.spec +++ b/python-python-socks.spec @@ -24,7 +24,8 @@ 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 -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -37,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. %prep -%setup -q -n python-socks-%{version} +%autosetup -p1 -n python-socks-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # try at least a simple import -echo 'from python_socks import ProxyType' | $python +%python_exec -c 'from python_socks import ProxyType' %files %{python_files} %doc README.md %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/python_socks +%{python_sitelib}/python_socks-%{version}*-info %changelog