From 74676d71b91b5f9ec0d62be06c8030ae0bc55bca999fbee0781161fc2a0d9b3e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 13 Jul 2022 15:43:08 +0000 Subject: [PATCH] Accepting request 989003 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/989003 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-build?expand=0&rev=6 --- build-0.7.0.tar.gz | 3 --- build-0.8.0.tar.gz | 3 +++ flit_core-2.3.0-py2.py3-none-any.whl | 3 +++ python-build.changes | 16 ++++++++++++++++ python-build.spec | 27 +++++++++++++++------------ pytoml-0.1.21-py2.py3-none-any.whl | 3 +++ tomli-2.0.1-py3-none-any.whl | 3 +++ wheel-0.37.1-py2.py3-none-any.whl | 3 +++ 8 files changed, 46 insertions(+), 15 deletions(-) delete mode 100644 build-0.7.0.tar.gz create mode 100644 build-0.8.0.tar.gz create mode 100644 flit_core-2.3.0-py2.py3-none-any.whl create mode 100644 pytoml-0.1.21-py2.py3-none-any.whl create mode 100644 tomli-2.0.1-py3-none-any.whl create mode 100644 wheel-0.37.1-py2.py3-none-any.whl diff --git a/build-0.7.0.tar.gz b/build-0.7.0.tar.gz deleted file mode 100644 index ced2a17..0000000 --- a/build-0.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1f1a52767a0b92b37e53eb1fa6017b3d08fddf99e3341a37d2535bc03177b243 -size 37127 diff --git a/build-0.8.0.tar.gz b/build-0.8.0.tar.gz new file mode 100644 index 0000000..020b91f --- /dev/null +++ b/build-0.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8aba5ec4dcb52ede2a87a62d1bea4052ca4fbc09422a807c43f119033acb9cd8 +size 40020 diff --git a/flit_core-2.3.0-py2.py3-none-any.whl b/flit_core-2.3.0-py2.py3-none-any.whl new file mode 100644 index 0000000..db83957 --- /dev/null +++ b/flit_core-2.3.0-py2.py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8f8904b534966712390e0a2e434cd33f76037730a0aaed299a286f9e18cac2b +size 40020 diff --git a/python-build.changes b/python-build.changes index 089aa52..24adc67 100644 --- a/python-build.changes +++ b/python-build.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Wed Jul 13 11:24:00 UTC 2022 - Ben Greiner + +- 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 diff --git a/python-build.spec b/python-build.spec index 367d7f3..e167a4b 100644 --- a/python-build.spec +++ b/python-build.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,17 +27,22 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-build%{psuffix} -Version: 0.7.0 +Version: 0.8.0 Release: 0 Summary: Simple PEP517 package builder License: MIT Group: Development/Languages/Python URL: https://github.com/pypa/build 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 packaging >= 19.0} BuildRequires: %{python_module pep517 >= 0.9.1} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 42} BuildRequires: %{python_module tomli >= 1.0.0} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -52,12 +57,13 @@ BuildArch: noarch %if %{with test} BuildRequires: %{python_module build = %{version}} BuildRequires: %{python_module filelock >= 3} +BuildRequires: %{python_module pytest >= 6} BuildRequires: %{python_module pytest-mock >= 2} BuildRequires: %{python_module pytest-rerunfailures >= 9.1} BuildRequires: %{python_module pytest-xdist >= 1.34} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module toml >= 0.10.0} BuildRequires: %{python_module wheel >= 0.36} +BuildRequires: python3-setuptools-wheel %endif %python_subpackages @@ -68,10 +74,10 @@ It is a simple build tool and does not perform any dependency management. %prep %autosetup -p1 -n build-%{version} +%if !%{with test} %build %python_build -%if !%{with test} %install %python_install %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} %check -# obs can't download packages into "isolated" envs -donttest="test_build_package" -donttest+=" or (test_wheel_metadata and True)" -donttest+=" or test_with_get_requires" -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)" +mkdir -p wheels +cp %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} wheels/ +export PIP_FIND_LINKS="%{python3_sitelib}/../wheels $PWD/wheels" +%pytest tests -n auto %endif %if !%{with test} diff --git a/pytoml-0.1.21-py2.py3-none-any.whl b/pytoml-0.1.21-py2.py3-none-any.whl new file mode 100644 index 0000000..acf6bcf --- /dev/null +++ b/pytoml-0.1.21-py2.py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57a21e6347049f73bfb62011ff34cd72774c031b9828cb628a752225136dfc33 +size 8537 diff --git a/tomli-2.0.1-py3-none-any.whl b/tomli-2.0.1-py3-none-any.whl new file mode 100644 index 0000000..a9ecc74 --- /dev/null +++ b/tomli-2.0.1-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc +size 12757 diff --git a/wheel-0.37.1-py2.py3-none-any.whl b/wheel-0.37.1-py2.py3-none-any.whl new file mode 100644 index 0000000..2e406a4 --- /dev/null +++ b/wheel-0.37.1-py2.py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a +size 35301