diff --git a/meson_python-0.13.2.tar.gz b/meson_python-0.13.2.tar.gz deleted file mode 100644 index 958356c..0000000 --- a/meson_python-0.13.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:80bc9de898acd36eb4b945afaaf7a2b4ca00189c51870d535e329761910cf8ea -size 68636 diff --git a/meson_python-0.14.0.tar.gz b/meson_python-0.14.0.tar.gz new file mode 100644 index 0000000..12c246c --- /dev/null +++ b/meson_python-0.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b96866690326544dfe452583753ac3f43313227e9fd9416701a8df90af212234 +size 78824 diff --git a/no-build-isolation-in-test.patch b/no-build-isolation-in-test.patch new file mode 100644 index 0000000..ae7aa70 --- /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 3bccb74..091b8e7 100644 --- a/python-meson-python.changes +++ b/python-meson-python.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +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á diff --git a/python-meson-python.spec b/python-meson-python.spec index 7ba3a9c..30297b0 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