python-meson-python/no-build-isolation-in-test.patch
Steve Kowalik 46a4425a2a - 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
2023-09-21 06:02:50 +00:00

11 lines
606 B
Diff

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)