Markéta Machová
f13e50aa5f
- 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
68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-editables
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-editables
|
|
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 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
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python library for creating "editable wheels"
|
|
|
|
This library supports the building of wheels which, when installed, will expose
|
|
packages in a local directory on sys.path in "editable mode". In other words,
|
|
changes to the package source will be reflected in the package visible to
|
|
Python, without needing a reinstall.
|
|
|
|
%prep
|
|
%setup -q -n editables-%{version}
|
|
|
|
# fix end of lines for the readme
|
|
dos2unix -c ascii README.md
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/editables
|
|
%{python_sitelib}/editables-%{version}*-info
|
|
|
|
%changelog
|