Skip to content
Open
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
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
ref: ${{ github.event.inputs.tag || github.ref }}
- run: python -m pip install --group docs
- run: python -m sphinx -W docs/ build/docs/
- uses: actions/upload-pages-artifact@v3
- uses: actions/upload-pages-artifact@v5
with:
path: build/docs/

Expand All @@ -48,4 +48,4 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/deploy-pages@v4
- uses: actions/deploy-pages@v5
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.14'
- run: python -m pip install build
- run: python -m build
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
path: dist/*

Expand All @@ -37,7 +37,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
merge-multiple: true
path: dist
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
python:
- '3.9'
- '3.14'
- '3.15'
meson:
-
dependencies:
Expand Down Expand Up @@ -108,12 +109,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up target Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
allow-prereleases: true

- name: Install Ninja
run: sudo apt-get install ninja-build
Expand Down Expand Up @@ -142,7 +144,7 @@ jobs:
run: python -m pytest --showlocals -vv --cov --cov-report=xml

- name: Upload coverage report
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v7
if: ${{ always() }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -159,10 +161,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up target Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

Expand Down Expand Up @@ -196,10 +198,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Cygwin
uses: cygwin/cygwin-install-action@v2
uses: cygwin/cygwin-install-action@v6
with:
packages: >-
python39
Expand Down Expand Up @@ -231,7 +233,7 @@ jobs:
# Cygwin Python cannot use binary wheels from PyPI. Building
# some dependencies takes considerable time. Caching the built
# wheels speeds up the CI job quite a bit.
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ${{ steps.pip-cache-path.outputs.path }}
key: cygwin-pip-${{ github.sha }}
Expand Down Expand Up @@ -272,7 +274,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install Homebrew Python
run: |
Expand Down Expand Up @@ -300,10 +302,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: 3.9

Expand Down
10 changes: 9 additions & 1 deletion mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,15 @@ def sdist(self, directory: Path) -> pathlib.Path:
# in all cases.
while member.issym():
name = member.name
target = posixpath.normpath(posixpath.join(posixpath.dirname(member.name), member.linkname))
# Normalize the link target to use forward slashes. On
# Windows on Python 3.15 rewrites slashes to backslashes in
# symbolic link targets when extracting tar archives (see
# CPython gh-57911), and Meson propagates these backslashed
# targets into the dist tarball. Without this normalization
# the ``posixpath`` resolution below would fail to match the
# link target, dropping links that point inside the archive.
linkname = member.linkname.replace('\\', '/')
target = posixpath.normpath(posixpath.join(posixpath.dirname(member.name), linkname))
try:
# This can be implemented using the .replace() method
# in Python 3.12 and later. The .replace() method was
Expand Down
Loading