Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ on:
# This is spelt like this to do not ignore the docs/examples/ folder.
- '**'
- '!docs/**'
- 'docs/examples/**'
- '!CHANGELOG.rst'
- '!LICENSE'
- '!LICENSES/**'
Expand Down Expand Up @@ -103,10 +102,10 @@ jobs:
meson: '~=1.8.0'
# Test with Meson master branch.
- os: ubuntu-latest
python: '3.12'
python: '3.14'
meson: '@git+https://github.com/mesonbuild/meson.git'
- os: windows-latest
python: '3.12'
python: '3.14'
meson: '@git+https://github.com/mesonbuild/meson.git'

steps:
Expand Down
10 changes: 6 additions & 4 deletions tests/test_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import mesonpy

from .conftest import in_git_repo_context, metadata
from .conftest import MESON_VERSION, in_git_repo_context, metadata


def test_meson_build_metadata(sdist_library):
Expand Down Expand Up @@ -217,9 +217,11 @@ def test_reproducible(package_pure, tmp_path):
assert sdist_path_a == sdist_path_b
assert tmp_path.joinpath('a', sdist_path_a).read_bytes() == tmp_path.joinpath('b', sdist_path_b).read_bytes()

# ``meson dist`` does not handle tarballs containing symbolic links to absolute
# paths on Python 3.14, see https://github.com/mesonbuild/meson/issues/15142
@pytest.mark.skipif(sys.version_info >= (3, 14), reason='incompatible Python version')

# ``meson dist`` before Meson 1.9.2 does not handle tarballs
# containing symbolic links to absolute paths on Python 3.14.
# See https://github.com/mesonbuild/meson/issues/15142
@pytest.mark.skipif(sys.version_info >= (3, 14) and MESON_VERSION < (1, 9, 2), reason='incompatible Python version')
@pytest.mark.filterwarnings('ignore:symbolic link')
def test_symlinks(tmp_path, sdist_symlinks):
with tarfile.open(sdist_symlinks, 'r:gz') as sdist:
Expand Down
Loading