From 94669ee6d0b2b0b0ffee48ee0184eb850bad71b5 Mon Sep 17 00:00:00 2001 From: StevenK <> Date: Sep 27 2023 23:27:31 +0000 Subject: Update python-meson-python to version 0.14.0 / rev 9 via SR 1112687 https://build.opensuse.org/request/show/1112687 by user StevenK + anag+factory - 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 --- diff --git a/.files b/.files index 75a2174..1d3fdf4 100644 Binary files a/.files and b/.files differ diff --git a/.rev b/.rev index 4da278c..1439bc6 100644 --- a/.rev +++ b/.rev @@ -69,4 +69,28 @@ 1105266 + + 87e32eef16d03d9f3346956667293321 + 0.14.0 + + anag+factory + - 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. + 1112687 + diff --git a/meson_python-0.13.2.tar.gz b/meson_python-0.13.2.tar.gz deleted file mode 120000 index 36a91cb..0000000 --- a/meson_python-0.13.2.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafkreieaxso6rgfm2nxljokfv6vppivuziabrhcrq4gvgxrss5qzcdhy5i \ No newline at end of file diff --git a/meson_python-0.14.0.tar.gz b/meson_python-0.14.0.tar.gz new file mode 120000 index 0000000..775b22d --- /dev/null +++ b/meson_python-0.14.0.tar.gz @@ -0,0 +1 @@ +/ipfs/bafkreifznbtgsazgkrg74rjfqn2tvq7ugmjse7u73fawoani36ik6ijcgq \ No newline at end of file diff --git a/no-build-isolation-in-test.patch b/no-build-isolation-in-test.patch new file mode 100644 index 0000000..cd0d5da --- /dev/null +++ b/no-build-isolation-in-test.patch @@ -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) diff --git a/python-meson-python.changes b/python-meson-python.changes index f364b97..4807b51 100644 --- a/python-meson-python.changes +++ b/python-meson-python.changes @@ -1,4 +1,25 @@ ------------------------------------------------------------------- +Thu Sep 21 06:01:08 UTC 2023 - Steve Kowalik + +- 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á - Update to 0.13.2 diff --git a/python-meson-python.spec b/python-meson-python.spec index 9251435..31c8f87 100644 --- a/python-meson-python.spec +++ b/python-meson-python.spec @@ -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