15
0

- Update to 0.14.0:

* Do not run ``meson install`` to build a wheel.
  * Obey the ``--skip-subprojects`` when specified for the ``meson
    install`` command.
  * Implement support for the ``exclude_directories`` and
    ``exclude_files`` arguments to Meson ``install_subdir()`` function
    and similar installation functions. This requires Meson version
    1.1.0 or later.
  * Implement support for building wheels targeting the Python limited API.
  * When ``pyproject.toml`` does not contain a ``version`` field and
    ``version`` is not declared dynamic, raise an error instead of
    silently using the version declared in ``meson.build``.
  * Fix the mtime of source files in the sdist tarball.
  * Add ``objc`` and ``objcpp`` compilers to the cross file generated
    when the ``$ARCHFLAGS`` is set.
- Add patch no-build-isolation-in-test.patch, don't use an isolated
  environment.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-meson-python?expand=0&rev=18
This commit is contained in:
2023-09-21 06:02:50 +00:00
committed by Git OBS Bridge
parent 9766b3336c
commit 46a4425a2a
5 changed files with 42 additions and 4 deletions

View File

@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-meson-python
Version: 0.13.2
Version: 0.14.0
Release: 0
Summary: Meson Python build backend (PEP 517)
License: MIT
@@ -33,6 +33,8 @@ Source4: https://files.pythonhosted.org/packages/py3/t/typing_extensions/
Patch11: mesonpy-trim-deps.patch
# PATCH-FEATURE-OPENSUSE mesonpy-no-wheel-rebuild.patch code@bnavigator.de
Patch12: mesonpy-no-wheel-rebuild.patch
# PATCH-FEATURE-OPENSUSE
Patch14: no-build-isolation-in-test.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyproject-metadata >= 0.7.1}
@@ -44,6 +46,9 @@ BuildRequires: ninja
BuildRequires: python-rpm-macros
Requires: meson >= 0.63.3
Requires: python-pyproject-metadata >= 0.7.1
%if 0%{python_version_nodots} >= 312
Requires: python-setuptools
%endif
%if 0%{python_version_nodots} < 311
Requires: python-tomli >= 1.0.0
%endif
@@ -57,6 +62,7 @@ BuildRequires: %{python_module build}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools-wheel}
BuildRequires: %{python_module wheel}
BuildRequires: patchelf
# /SECTION
@@ -78,6 +84,7 @@ Python build backend (PEP 517) for Meson projects.
%check
export MESONPY_FORCE_LOCAL_LIB=1
export PIP_FIND_LINKS="%{python3_sitelib}/../wheels"
%python_expand cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} build/
%pytest