17
0

Compare commits

2 Commits

2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 12 12:06:15 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 4 22:57:54 UTC 2022 - Matej Cepl <mcepl@suse.com> Tue Oct 4 22:57:54 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-siosocks # spec file for package python-siosocks
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-siosocks Name: python-siosocks
Version: 0.3.0 Version: 0.3.0
Release: 0 Release: 0
@@ -26,11 +24,13 @@ License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/pohmelie/siosocks URL: https://github.com/pohmelie/siosocks
Source: https://files.pythonhosted.org/packages/source/s/siosocks/siosocks-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/siosocks/siosocks-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-trio} BuildRequires: %{python_module pytest-trio}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module trio} BuildRequires: %{python_module trio}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-trio Requires: python-trio
@@ -59,19 +59,20 @@ Sans-io (https://sans-io.readthedocs.io/) socks 4/5 client/server library/framew
%setup -q -n siosocks-%{version} %setup -q -n siosocks-%{version}
%build %build
%python_build %pyproject_wheel
%check %check
# hangs for unclear reason (January 2022) # hangs for unclear reason (January 2022)
%pytest -k 'not test_connection_socks_success' %pytest -k 'not test_connection_socks_success'
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%doc readme.md %doc readme.md
%license license.txt %license license.txt
%{python_sitelib}/* %{python_sitelib}/siosocks
%{python_sitelib}/siosocks-%{version}*-info
%changelog %changelog