14
0

Accepting request 1162364 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1162364
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sshtunnel?expand=0&rev=8
This commit is contained in:
2024-03-27 19:42:26 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 3 deletions

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Mar 26 18:57:48 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Switch build system from setuptools to pyproject.toml
+ Add python-pip and python-wheel to BuildRequires
+ Replace %python_build with %pyproject_wheel
+ Replace %python_install with %pyproject_install
- Limit Python files matched in %files section
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 15 13:49:41 UTC 2024 - Antonio Larrosa <alarrosa@suse.com> Mon Jan 15 13:49:41 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>

View File

@@ -26,8 +26,10 @@ Group: Development/Languages/Python
URL: https://github.com/pahaz/sshtunnel/ URL: https://github.com/pahaz/sshtunnel/
Source: https://files.pythonhosted.org/packages/source/s/sshtunnel/sshtunnel-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/sshtunnel/sshtunnel-%{version}.tar.gz
BuildRequires: %{python_module paramiko >= 2.7.2} BuildRequires: %{python_module paramiko >= 2.7.2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# for the tests to validate some things # for the tests to validate some things
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: openssh BuildRequires: openssh
@@ -49,10 +51,10 @@ and -R parameters.
sed -i '1{\,^#!%{_bindir}/env python,d}' sshtunnel.py sed -i '1{\,^#!%{_bindir}/env python,d}' sshtunnel.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/sshtunnel %python_clone -a %{buildroot}%{_bindir}/sshtunnel
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -71,6 +73,8 @@ sed -i 's:import mock:from unittest import mock:' tests/test_forwarder.py
%license LICENSE %license LICENSE
%doc *.rst %doc *.rst
%python_alternative %{_bindir}/sshtunnel %python_alternative %{_bindir}/sshtunnel
%{python_sitelib}/* %{python_sitelib}/__pycache__/sshtunnel*pyc
%{python_sitelib}/sshtunnel.py
%{python_sitelib}/sshtunnel-*.dist-info
%changelog %changelog