Skip to content

Commit

Permalink
Build Python 3.13 (#11)
Browse files Browse the repository at this point in the history
* add support for python 3.13

* update pre-commit

* fix tags

* add ninja for source build

* add ninja to the sdist build step
  • Loading branch information
akaszynski authored Dec 2, 2024
1 parent e5726da commit eeb2ca9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
submodules: true

- name: Build wheels
uses: pypa/cibuildwheel@v2.19.2
uses: pypa/cibuildwheel@v2.22.0

- uses: actions/upload-artifact@v4
with:
Expand All @@ -42,7 +42,10 @@ jobs:
submodules: true

- name: Build sdist
run: pipx run build --sdist
run: |
sudo apt-get update
sudo apt-get install ninja-build -y
pipx run build --sdist
- name: Validate wheel
run: |
Expand Down Expand Up @@ -76,7 +79,7 @@ jobs:
- name: List artifacts
run: ls -R

- uses: pypa/gh-action-pypi-publish@v1.9.0
- uses: pypa/gh-action-pypi-publish@v1.12.2
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.2
rev: v0.8.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -32,7 +32,7 @@ repos:
files: ^src/pyminiply/.*\.py

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: debug-statements
Expand All @@ -47,12 +47,12 @@ repos:
args: [--autofix, --indent, '2']

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
rev: v19.1.4
hooks:
- id: clang-format

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.0
rev: 0.29.4
hooks:
- id: check-github-workflows

Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ classifiers = [
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
]
dependencies = [
"numpy"
Expand All @@ -31,7 +31,7 @@ pyvista = ["pyvista"]

[tool.cibuildwheel]
archs = ["auto64"] # 64-bit only
skip = "cp36-* cp37-* pp* *musllinux*" # disable PyPy and musl-based wheels
skip = "cp38-* pp* *musllinux* cp314-*" # disable PyPy and musl-based wheels
test-command = "pytest {project}/tests"
test-requires = "pytest pyvista"

Expand Down

0 comments on commit eeb2ca9

Please sign in to comment.