Accepting request 989018 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/989018 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-build?expand=0&rev=4
This commit is contained in:
commit
883ff6c1b2
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1f1a52767a0b92b37e53eb1fa6017b3d08fddf99e3341a37d2535bc03177b243
|
|
||||||
size 37127
|
|
3
build-0.8.0.tar.gz
Normal file
3
build-0.8.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8aba5ec4dcb52ede2a87a62d1bea4052ca4fbc09422a807c43f119033acb9cd8
|
||||||
|
size 40020
|
3
flit_core-2.3.0-py2.py3-none-any.whl
Normal file
3
flit_core-2.3.0-py2.py3-none-any.whl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a8f8904b534966712390e0a2e434cd33f76037730a0aaed299a286f9e18cac2b
|
||||||
|
size 40020
|
@ -1,3 +1,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 13 11:24:00 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to v0.8.0
|
||||||
|
* Accept `os.PathLike[str]` in addition to `str` for paths in
|
||||||
|
public API (PR #392, Fixes #372)
|
||||||
|
* Add schema validation for `build-system` table to check
|
||||||
|
conformity with PEP 517 and PEP 518 (PR #365, Fixes #364)
|
||||||
|
* Better support for Python 3.11 (sysconfig schemes PR #434, PR
|
||||||
|
#463, tomllib PR #443, warnings PR #420)
|
||||||
|
* Improved error printouts (PR #442)
|
||||||
|
* Avoid importing packaging unless needed (PR #395, Fixes #393)
|
||||||
|
* Failure to create a virtual environment in the `build.env`
|
||||||
|
module now raises `build.FailedProcessError` (PR #442)
|
||||||
|
- Rework test suite: provide wheels for testing
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 16 12:24:15 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
Sat Oct 16 12:24:15 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -27,17 +27,22 @@
|
|||||||
%{?!python_module:%define python_module() python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-build%{psuffix}
|
Name: python-build%{psuffix}
|
||||||
Version: 0.7.0
|
Version: 0.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Simple PEP517 package builder
|
Summary: Simple PEP517 package builder
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/pypa/build
|
URL: https://github.com/pypa/build
|
||||||
Source0: https://github.com/pypa/build/archive/%{version}.tar.gz#/build-%{version}.tar.gz
|
Source0: https://github.com/pypa/build/archive/%{version}.tar.gz#/build-%{version}.tar.gz
|
||||||
|
# Needs the wheels for wheel, flit-core (<3), pytoml, and tomli for testing
|
||||||
|
Source10: https://files.pythonhosted.org/packages/py2.py3/w/wheel/wheel-0.37.1-py2.py3-none-any.whl
|
||||||
|
Source11: https://files.pythonhosted.org/packages/py2.py3/f/flit-core/flit_core-2.3.0-py2.py3-none-any.whl
|
||||||
|
Source12: https://files.pythonhosted.org/packages/py2.py3/p/pytoml/pytoml-0.1.21-py2.py3-none-any.whl
|
||||||
|
Source13: https://files.pythonhosted.org/packages/py3/t/tomli/tomli-2.0.1-py3-none-any.whl
|
||||||
BuildRequires: %{python_module importlib-metadata >= 0.22 if %python-base < 3.8}
|
BuildRequires: %{python_module importlib-metadata >= 0.22 if %python-base < 3.8}
|
||||||
BuildRequires: %{python_module packaging >= 19.0}
|
BuildRequires: %{python_module packaging >= 19.0}
|
||||||
BuildRequires: %{python_module pep517 >= 0.9.1}
|
BuildRequires: %{python_module pep517 >= 0.9.1}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools >= 42}
|
||||||
BuildRequires: %{python_module tomli >= 1.0.0}
|
BuildRequires: %{python_module tomli >= 1.0.0}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -52,12 +57,13 @@ BuildArch: noarch
|
|||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module build = %{version}}
|
BuildRequires: %{python_module build = %{version}}
|
||||||
BuildRequires: %{python_module filelock >= 3}
|
BuildRequires: %{python_module filelock >= 3}
|
||||||
|
BuildRequires: %{python_module pytest >= 6}
|
||||||
BuildRequires: %{python_module pytest-mock >= 2}
|
BuildRequires: %{python_module pytest-mock >= 2}
|
||||||
BuildRequires: %{python_module pytest-rerunfailures >= 9.1}
|
BuildRequires: %{python_module pytest-rerunfailures >= 9.1}
|
||||||
BuildRequires: %{python_module pytest-xdist >= 1.34}
|
BuildRequires: %{python_module pytest-xdist >= 1.34}
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: %{python_module toml >= 0.10.0}
|
BuildRequires: %{python_module toml >= 0.10.0}
|
||||||
BuildRequires: %{python_module wheel >= 0.36}
|
BuildRequires: %{python_module wheel >= 0.36}
|
||||||
|
BuildRequires: python3-setuptools-wheel
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -68,10 +74,10 @@ It is a simple build tool and does not perform any dependency management.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n build-%{version}
|
%autosetup -p1 -n build-%{version}
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%if !%{with test}
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyproject-build
|
%python_clone -a %{buildroot}%{_bindir}/pyproject-build
|
||||||
@ -80,13 +86,10 @@ It is a simple build tool and does not perform any dependency management.
|
|||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
# obs can't download packages into "isolated" envs
|
mkdir -p wheels
|
||||||
donttest="test_build_package"
|
cp %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} wheels/
|
||||||
donttest+=" or (test_wheel_metadata and True)"
|
export PIP_FIND_LINKS="%{python3_sitelib}/../wheels $PWD/wheels"
|
||||||
donttest+=" or test_with_get_requires"
|
%pytest tests -n auto
|
||||||
donttest+=" or test_wheel_metadata_isolation"
|
|
||||||
donttest+=" or test_output and (via-sdist-isolation or wheel-direct-isolation)"
|
|
||||||
%pytest tests -n auto -k "not ($donttest)"
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
|
3
pytoml-0.1.21-py2.py3-none-any.whl
Normal file
3
pytoml-0.1.21-py2.py3-none-any.whl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:57a21e6347049f73bfb62011ff34cd72774c031b9828cb628a752225136dfc33
|
||||||
|
size 8537
|
BIN
tomli-2.0.1-py3-none-any.whl
(Stored with Git LFS)
Normal file
BIN
tomli-2.0.1-py3-none-any.whl
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
wheel-0.37.1-py2.py3-none-any.whl
(Stored with Git LFS)
Normal file
BIN
wheel-0.37.1-py2.py3-none-any.whl
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user