Accepting request 989208 from home:bnavigator:branches:devel:languages:python
- Remove devendoring of tomli, so that we can put this in Ring0 OBS-URL: https://build.opensuse.org/request/show/989208 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flit-core?expand=0&rev=23
This commit is contained in:
parent
62dbf8e654
commit
0fb345f613
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 14 15:34:09 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Remove devendoring of tomli, so that we can put this in Ring0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 25 12:10:11 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -30,7 +30,7 @@ Name: python-flit-core%{psuffix}
|
||||
Version: 3.7.1
|
||||
Release: 0
|
||||
Summary: Distribution-building parts of Flit
|
||||
License: BSD-3-Clause
|
||||
License: BSD-3-Clause AND MIT
|
||||
URL: https://github.com/pypa/flit
|
||||
Source0: https://files.pythonhosted.org/packages/source/f/flit-core/flit_core-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.6}
|
||||
@ -41,13 +41,12 @@ BuildRequires: %{python_module testpath}
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
Requires: python-tomli
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Flit is a simple way to put Python packages and modules on PyPI.
|
||||
This provides a PEP 517 build backend for packages using Flit.
|
||||
The only public interface is the API specified by PEP 517, at flit_core.buildapi.
|
||||
|
||||
%prep
|
||||
%setup -q -n flit_core-%{version}
|
||||
@ -61,9 +60,6 @@ python3 -m flit_core.wheel
|
||||
%{python_expand #
|
||||
mkdir -p %{buildroot}%{$python_sitelib}
|
||||
$python bootstrap_install.py dist/flit_core-%{version}-py3-none-any.whl -i %{buildroot}%{$python_sitelib}
|
||||
# debundle after the bootstrap. See vendor/README
|
||||
sed -i 's/from .vendor import tomli/import tomli/' %{buildroot}%{$python_sitelib}/flit_core/config.py
|
||||
rm -r %{buildroot}%{$python_sitelib}/flit_core/vendor
|
||||
# Don't package the tests
|
||||
rm -r %{buildroot}%{$python_sitelib}/flit_core/tests
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user