forked from pool/python-sshtunnel
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:
@@ -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>
|
||||
|
||||
|
@@ -26,8 +26,10 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/pahaz/sshtunnel/
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sshtunnel/sshtunnel-%{version}.tar.gz
|
||||
BuildRequires: %{python_module paramiko >= 2.7.2}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
# for the tests to validate some things
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: openssh
|
||||
@@ -49,10 +51,10 @@ and -R parameters.
|
||||
sed -i '1{\,^#!%{_bindir}/env python,d}' sshtunnel.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/sshtunnel
|
||||
%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
|
||||
%doc *.rst
|
||||
%python_alternative %{_bindir}/sshtunnel
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/__pycache__/sshtunnel*pyc
|
||||
%{python_sitelib}/sshtunnel.py
|
||||
%{python_sitelib}/sshtunnel-*.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user