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
4 changes: 2 additions & 2 deletions .github/workflows/freethreading_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
uses: astral-sh/setup-uv@v7
with:
version: "latest"
python-version: 3.13t
python-version: 3.14t
enable-cache: false
- name: Create virtual environment
run: uv venv --python 3.13t
run: uv venv --python 3.14t
- name: Install Dependencies
run: |
uv pip install numpy pytest-cov pytest-timeout pytest-durations pytest-run-parallel sympy hypothesis
Expand Down
42 changes: 23 additions & 19 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ jobs:
- name: List contents of sdist
run: python -m tarfile --list dist/ndindex-*.tar.gz

- name: Get sdist filename
run: echo "SDIST_FILE=$(ls dist/*.tar.gz)" >> $GITHUB_ENV

- name: Upload distribution artifact
uses: actions/upload-artifact@v7
with:
Expand All @@ -73,20 +70,15 @@ jobs:
needs: [build_sdist]
strategy:
matrix:
include:
# Build native x86_64 wheels on x86_64 runner
- os: ubuntu-latest
cibw_archs: "x86_64"
# Build native aarch64 wheels on ARM64 runner
- os: ubuntu-24.04-arm
cibw_archs: "aarch64"
- os: windows-latest
cibw_archs: "auto"
# Each runner builds wheels for its native architecture(s)
os:
- ubuntu-latest
- ubuntu-24.04-arm
- windows-latest
- windows-11-arm
# macos-15-intel is an intel runner, macos-14 is apple silicon
- os: macos-15-intel
cibw_archs: "auto"
- os: macos-14
cibw_archs: "auto"
- macos-15-intel
- macos-14

steps:
- uses: actions/checkout@v7
Expand All @@ -98,17 +90,29 @@ jobs:
path: dist

- name: Get sdist filename
run: echo "SDIST_FILE=$(ls dist/*.tar.gz)" >> $GITHUB_ENV
shell: bash
# Fail here rather than letting an empty SDIST_FILE make cibuildwheel
# silently build from the (shallow, untagged) checkout instead.
run: |
set -euo pipefail
shopt -s nullglob
sdists=(dist/*.tar.gz)
if [ "${#sdists[@]}" -ne 1 ]; then
echo "Expected exactly one sdist in dist/, found: ${sdists[*]:-none}" >&2
ls -la dist/ >&2 || true
exit 1
fi
echo "SDIST_FILE=${sdists[0]}" >> "$GITHUB_ENV"

- name: Build wheels
uses: pypa/cibuildwheel@v4.3.0
with:
package-dir: ${{ env.SDIST_FILE }}
output-dir: dist/
env:
CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs }}
# Versioneer gives "0+untagged..." when it can't find a release tag
CIBW_TEST_COMMAND: >
python -c "import ndindex; assert '1.' in ndindex.__version__"
python -c "import ndindex; assert not ndindex.__version__.startswith('0+'), ndindex.__version__"

- uses: actions/upload-artifact@v7
with:
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ requires = [
]
build-backend = "setuptools.build_meta"

[tool.cibuildwheel]
enable = ["cpython-freethreading"]
skip = "*t*_i686"
[tool.cibuildwheel.linux]
archs = ["auto64"]

[tool.cibuildwheel.macos]
environment = { CXXFLAGS="-std=c++11" }
Loading