Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.13 #2611

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
12 changes: 6 additions & 6 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
shell: bash
env:
NODE_ENV: test
DEBUG: 'pw:webserver'
DEBUG: "pw:webserver"

steps:
- name: 🛑 Cancel Previous Runs
Expand All @@ -59,17 +59,17 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"

- name: 📦 Build frontend
run: make fe

- name: 🐍 Setup Python 3.12
- name: 🐍 Setup Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
python-version: "3.13"
cache: "pip"

# We tried to add uv, but marimo is unable to
# start when installed.
Expand Down
38 changes: 22 additions & 16 deletions .github/workflows/test_be.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,36 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
dependencies: ['core', 'core,optional']
python-version: ['3.9']
dependencies: ["core", "core,optional"]
python-version: ["3.9"]
include:
- os: ubuntu-latest
python-version: '3.10'
dependencies: 'core'
python-version: "3.10"
dependencies: "core"
- os: ubuntu-latest
python-version: '3.11'
dependencies: 'core'
python-version: "3.11"
dependencies: "core"
- os: ubuntu-latest
python-version: '3.12'
dependencies: 'core'
python-version: "3.12"
dependencies: "core"
- os: ubuntu-latest
python-version: '3.9'
dependencies: 'core,optional'
python-version: "3.13"
dependencies: "core"
- os: ubuntu-latest
python-version: '3.10'
dependencies: 'core,optional'
python-version: "3.9"
dependencies: "core,optional"
- os: ubuntu-latest
python-version: '3.11'
dependencies: 'core,optional'
python-version: "3.10"
dependencies: "core,optional"
- os: ubuntu-latest
python-version: '3.12'
dependencies: 'core,optional'
python-version: "3.11"
dependencies: "core,optional"
- os: ubuntu-latest
python-version: "3.12"
dependencies: "core,optional"
- os: ubuntu-latest
python-version: "3.13"
dependencies: "core,optional"
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test_cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"

- name: 📦 Build frontend
run: make fe
env:
NODE_OPTIONS: '--max_old_space_size=8192'
NODE_OPTIONS: "--max_old_space_size=8192"

- name: 🥚 Install Hatch
uses: pypa/hatch@install
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
strategy:
matrix:
# TODO(akshayka): consider adding 3.8, 3.9
python-version: ['3.12']
python-version: ["3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand All @@ -113,7 +113,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache: "pip"

- name: Install Python deps
run: |
Expand Down Expand Up @@ -145,11 +145,11 @@ jobs:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- uses: actions/checkout@v4
- name: Set up Python 3.12
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
python-version: "3.13"
cache: "pip"

- name: 🐍 Setup uv
uses: yezz123/setup-uv@v4
Expand Down
17 changes: 9 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
]

Expand Down Expand Up @@ -127,10 +128,10 @@ dependencies = ["uv>=0.4.17"]

[tool.hatch.envs.default]
features = ["dev"]
python = "3.12"
python = "3.13"
installer = "uv"
dependencies = [
"uv>=0.4.17", # so we can bump the version used by hatch
"uv>=0.4.20", # so we can bump the version used by hatch
# Typo checking
"typos~=1.23.6",
]
Expand All @@ -140,7 +141,7 @@ lint = "ruff check --fix"
format = "ruff format"

[tool.hatch.envs.typecheck]
python = "3.12"
python = "3.13"
installer = "uv"
dependencies = [
"mypy~=1.10.1",
Expand Down Expand Up @@ -169,7 +170,7 @@ extra-dependencies = [
]

[[tool.hatch.envs.test.matrix]]
python = ["3.9","3.10", "3.11", "3.12"]
python = ["3.9","3.10", "3.11", "3.12", "3.13"]

[tool.hatch.envs.test.scripts]
test = "pytest{env:HATCH_TEST_ARGS:} {args:tests}"
Expand Down Expand Up @@ -206,13 +207,13 @@ extra-dependencies = [
"nbformat >=5.10.4",
"sympy>=1.13.2",
# For standard scientific computing/ ML
"jax>=0.4.0; python_version == '3.12'",
"torch>=2.4.0; python_version == '3.12'",
"scikit-bio>=0.6.0; python_version == '3.12'",
"jax>=0.4.0; python_version >= '3.12'",
"torch>=2.4.0; python_version >= '3.12'",
"scikit-bio>=0.6.0; python_version >= '3.12'",
]

[[tool.hatch.envs.test-optional.matrix]]
python = ["3.9","3.10", "3.11", "3.12"]
python = ["3.9","3.10", "3.11", "3.12", "3.13"]

[tool.hatch.envs.docs]
features = ["docs"]
Expand Down
Loading