Accepting request 925548 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/925548
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flit-core?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2021-10-25 13:17:01 +00:00 committed by Git OBS Bridge
commit 284f97b761
5 changed files with 81 additions and 13 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff87f25c5dbc24ef30ea334074e35030e4885e4c5de3bf4e21f15746f6d99431
size 27417

3
flit_core-3.4.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29468fa2330969167d1f5c23eb9c0661cb6dacfcd46f361a274609a7f4197530
size 27151

View File

@ -1,3 +1,46 @@
-------------------------------------------------------------------
Fri Oct 15 19:27:43 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Break build cycle by using upstream recommended bootstrap method
https://flit.readthedocs.io/en/latest/bootstrap.html
-------------------------------------------------------------------
Fri Oct 15 17:32:51 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to Version 3.4
* Python 3.6 or above is now required, both for flit and
flit_core.
* Add a --setup-py option to flit build and flit publish,
and a warning when neither this nor --no-setup-py are
specified (PR #431). A future version will stop
generating setup.py files in sdists by default.
* Add support for standardised editable installs - pip
install -e - according to PEP 660 (PR #400).
* Add a --pypirc option for flit publish to specify an
alternative path to a .pypirc config file describing
package indexes (PR #434).
* Fix installing dependencies specified in a [project]
table (PR #433)
* Fix building wheels when SOURCE_DATE_EPOCH (see
Reproducible builds) is set to a date before 1980 (PR
#448).
* Switch to using the tomli TOML parser, in common with
other packaging projects (PR #438). This supports TOML
version 1.0.
* Add a document on Bootstrapping (PR #441).
- Release Version 3.3
* PKG-INFO files in sdists are now generated the same way
as METADATA in wheels, fixing some issues with sdists
(PR #410).
* flit publish now sends SHA-256 hashes, fixing uploads
to GitLab package repositories (PR #416).
* The [project] metadata table from PEP 621 is now fully
supported and documented. Projects using this can now
specify requires = ["flit_core >=3.2,<4"] in the
[build-system] table.
- Multibuild: break another depcycle with
pytest/importlib-metadata/tomli
-------------------------------------------------------------------
Wed Apr 14 19:29:23 UTC 2021 - Matthias Bach <marix@marix.org>

View File

@ -1,5 +1,5 @@
#
# spec file for package python-flit-core
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
@ -16,21 +16,33 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-flit-core
Version: 3.2.0
Name: python-flit-core%{psuffix}
Version: 3.4.0
Release: 0
Summary: Distribution-building parts of Flit
License: BSD-3-Clause
URL: https://github.com/takluyver/flit
Source: https://files.pythonhosted.org/packages/source/f/flit-core/flit_core-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module base >= 3.6}
%if %{with test}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module testpath}
BuildRequires: %{python_module toml}
BuildRequires: %{python_module tomli}
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-toml
BuildRequires: unzip
Requires: python-tomli
BuildArch: noarch
%python_subpackages
@ -41,19 +53,29 @@ Flit is a simple way to put Python packages and modules on PyPI.
%setup -q -n flit_core-%{version}
%build
%pyproject_wheel
# https://flit.readthedocs.io/en/latest/bootstrap.html
python3 build_dists.py
%if !%{with test}
%install
%pyproject_install
%{python_expand rm -r %{buildroot}%{$python_sitelib}/flit_core/tests
%fdupes %{buildroot}%{$python_sitelib}
%{python_expand # do manually what pip would do
mkdir -p %{buildroot}%{$python_sitelib}
unzip dist/flit_core-%{version}-py3-none-any.whl -d %{buildroot}%{$python_sitelib}
rm -r %{buildroot}%{$python_sitelib}/flit_core/tests
}
%python_compileall
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%pytest
%endif
%if !%{with test}
%files %{python_files}
%{python_sitelib}/flit_core
%{python_sitelib}/flit_core-%{version}*-info
%endif
%changelog