15
0

Accepting request 1097928 from home:benoit_monin:branches:devel:languages:python

- update to version 0.4
- drop skip_python2 and require python >= 3.7
- drop setuptools and requires pip and flit-core to build the rpm
- add pytest as a build requirement and run the tests

OBS-URL: https://build.opensuse.org/request/show/1097928
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-editables?expand=0&rev=5
This commit is contained in:
2023-07-10 12:33:07 +00:00
committed by Git OBS Bridge
parent ca336062f1
commit f13e50aa5f
4 changed files with 26 additions and 9 deletions

View File

@@ -16,17 +16,18 @@
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-editables
Version: 0.3
Version: 0.4
Release: 0
Summary: Editable installations
License: MIT
URL: https://github.com/pfmoore/editables
Source: https://files.pythonhosted.org/packages/source/e/editables/editables-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module flit-core >= 3.3}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -48,12 +49,15 @@ Python, without needing a reinstall.
dos2unix -c ascii README.md
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE.txt