Skip to content

Commit

Permalink
Python 3.13 Support (#246)
Browse files Browse the repository at this point in the history
* Update to Python 3.13 across CI workflows and configurations

* Update myst-nb dependency to version 1.1.2

Bump the myst-nb package from version 1.1.1 to 1.1.2 in pyproject.toml. This ensures compatibility improvements or bug fixes provided in the latest release.

* Add Python 3.13 to CI test matrix

This update introduces Python 3.13 to the CI workflow across various test sessions, including pre-commit, tests, mypy, typeguard, xdoctest, and docs-build. It ensures compatibility and validation for Python 3.13 on Ubuntu, Windows, and macOS platforms.

* Ignore Poetry directory in .gitignore

Added `.poetry/` to the `.gitignore` file to prevent local Poetry configuration files from being included in version control. This helps maintain a cleaner repository and avoids unnecessary file tracking.

* Allow py3.13

* allow numba pre-release

* Update `llvmlite` and `numba` to new release candidates.

* rebuild lock file

* Update dependency version syntax in minimum only deps.

* Update numba version constraint to released version in dependencies

---------

Co-authored-by: Altay Sansal <[email protected]>
  • Loading branch information
tasansal and Altay Sansal authored Jan 24, 2025
1 parent 7898449 commit afccd0d
Show file tree
Hide file tree
Showing 7 changed files with 199 additions and 177 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.12"
python-version: "3.13"

- name: Upgrade pip
run: |
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,20 @@ jobs:
fail-fast: false
matrix:
include:
- { python: "3.12", os: "ubuntu-latest", session: "pre-commit" }
- { python: "3.13", os: "ubuntu-latest", session: "pre-commit" }
- { python: "3.13", os: "ubuntu-latest", session: "mypy" }
- { python: "3.12", os: "ubuntu-latest", session: "mypy" }
- { python: "3.11", os: "ubuntu-latest", session: "mypy" }
- { python: "3.10", os: "ubuntu-latest", session: "mypy" }
- { python: "3.13", os: "ubuntu-latest", session: "tests" }
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
- { python: "3.12", os: "windows-latest", session: "tests" }
- { python: "3.12", os: "macos-latest", session: "tests" }
- { python: "3.12", os: "ubuntu-latest", session: "typeguard" }
- { python: "3.12", os: "ubuntu-latest", session: "xdoctest" }
- { python: "3.12", os: "ubuntu-latest", session: "docs-build" }
- { python: "3.13", os: "windows-latest", session: "tests" }
- { python: "3.13", os: "macos-latest", session: "tests" }
- { python: "3.13", os: "ubuntu-latest", session: "typeguard" }
- { python: "3.13", os: "ubuntu-latest", session: "xdoctest" }
- { python: "3.13", os: "ubuntu-latest", session: "docs-build" }

env:
NOXSESSION: ${{ matrix.session }}
Expand Down Expand Up @@ -124,7 +126,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.12"
python-version: "3.13"

- name: Upgrade pip
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ docs/jupyter_execute/
.pybuilder/
target/

# Poetry
.poetry/

# Jupyter Notebook
.ipynb_checkpoints

Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2
build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
python: "3.12"
python: "3.13"
sphinx:
configuration: docs/conf.py
formats: all
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@


package = "segy"
python_versions = ["3.12", "3.11", "3.10"]
nox.needs_version = ">=2023.04.22"
python_versions = ["3.13", "3.12", "3.11", "3.10"]
nox.needs_version = ">=2024.10.9"
nox.options.sessions = (
"pre-commit",
"mypy",
Expand Down
341 changes: 179 additions & 162 deletions poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ authors = [{ name = "Altay Sansal", email = "[email protected]" }]
license = "Apache-2.0"
readme = "README.md"
keywords = ["segy", "seismic", "data", "geophysics"]
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10,<3.14"
dependencies = [
"fsspec (>=2024.10.0)",
"numpy (>=2.0.0,<3.0.0)",
"pydantic (>=2.9.2,<3.0.0)",
"pydantic-settings (>=2.6.1,<3.0.0)",
"numba (>=0.59.1,<0.70.0)",
"numba (>=0.61.0,<0.70.0)",
"pandas (>=2.2.2,<3.0.0)",
"typer (>=0.13.1,<0.14.0)",
"rapidfuzz (>=3.10.1,<4.0.0)",
Expand Down Expand Up @@ -55,7 +55,7 @@ sphinx = "7.4.7"
sphinx-design = "^0.6.1"
sphinx-copybutton = "^0.5.2"
furo = ">=2024.8.6"
myst-nb = "^1.1.1"
myst-nb = "^1.1.2"
linkify-it-py = "^2.0.3"
autodoc-pydantic = "^2.2.0"
sphinxcontrib-typer = "^0.5.0"
Expand Down

0 comments on commit afccd0d

Please sign in to comment.