- 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:
Steve Kowalik 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

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

BIN
meson_python-0.14.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,10 @@
Index: meson_python-0.14.0/tests/test_pep518.py
===================================================================
--- meson_python-0.14.0.orig/tests/test_pep518.py
+++ meson_python-0.14.0/tests/test_pep518.py
@@ -27,4 +27,4 @@ def test_pep518(package, build_arg, tmp_
with chdir(package_dir / package), in_git_repo_context():
build_args = [build_arg] if build_arg else []
- subprocess.run([sys.executable, '-m', 'build', '--outdir', str(dist), *build_args], check=True)
+ subprocess.run([sys.executable, '-m', 'build', '-n', '--outdir', str(dist), *build_args], check=True)

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Thu Sep 21 06:01:08 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- 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.
-------------------------------------------------------------------
Thu Aug 17 12:57:55 UTC 2023 - Markéta Machová <mmachova@suse.com>

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