Skip to content
Open
Show file tree
Hide file tree
Changes from 5 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
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/python:1-3.10-bookworm
FROM mcr.microsoft.com/devcontainers/python:1-3.11-bookworm
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive && apt-get install -y libboost-dev \
&& apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*
Expand Down
1 change: 0 additions & 1 deletion .python-versions
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Supported versions. The first one is considered the default
3.10
3.11
3.12
3.13
20 changes: 10 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,36 +47,36 @@ Ready to start contributing? We use a [fork and pull request](https://www.atlass
2. Clone your fork locally and check out the relevant branch:

```bash
$ git clone [email protected]:your_name_here/gt4py.git
$ cd gt4py
$ git checkout main
git clone [email protected]:your_name_here/gt4py.git
cd gt4py
git checkout main
```

3. Follow instructions in the [README.md](README.md) file to set up an environment for local development.

4. Create a branch for local development:

```bash
$ git checkout -b name-of-your-bugfix-or-feature
git checkout -b name-of-your-bugfix-or-feature
```

Now you can make your changes locally. Make sure you follow the project code style documented in [CODING_GUIDELINES.md](CODING_GUIDELINES.md).

5. When you're done making changes, check that your code complies with the project code style and other quality assurance (QA) practices using `pre-commit`. Additionally, make sure that unit and regression tests pass for all supported Python versions by running `nox`:

```bash
$ pre-commit run
$ nox
pre-commit run
nox
```

Read [Testing](#testing) section below for further details.

6. Commit your changes and push your branch to GitHub:

```bash
$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin name-of-your-bugfix-or-feature
git add .
git commit -m "Your detailed description of your changes."
git push origin name-of-your-bugfix-or-feature
```

7. Submit a pull request (PR) on [GT4Py's GitHub page](https://github.com/gridtools/gt4py).
Expand Down Expand Up @@ -145,7 +145,7 @@ We recommended you to use `nox` for running the test suite in different environm
nox --list

# Run a specific session
nox -s "test_cartesian-3.10(internal, cpu)"
nox -s "test_cartesian-3.11(internal, cpu)"
```

Check `nox` documentation (`nox --help`) for the complete reference.
Expand Down
2 changes: 1 addition & 1 deletion ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ENV UV_PROJECT_ENVIRONMENT=${WORKDIR_PATH}/venv
ENV UV_PYTHON_INSTALL_DIR="/opt/uv-python"

# Create and activate the python venv
ARG PY_VERSION=3.10
ARG PY_VERSION=3.11
ENV VIRTUAL_ENV=${UV_PROJECT_ENVIRONMENT}
RUN uv venv -p ${PY_VERSION} --link-mode copy ${VIRTUAL_ENV}
ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
Expand Down
2 changes: 1 addition & 1 deletion ci/cscs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ variables: # Default values for base variables (can be overriden in jobs defini
UBUNTU_VERSION: '24.04'
UV_VERSION: '0.6.12'

.test_python_versions: &test_python_versions ['3.10', '3.13']
.test_python_versions: &test_python_versions ['3.11', '3.13']

stages:
- build
Expand Down
9 changes: 1 addition & 8 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# SPDX-License-Identifier: BSD-3-Clause
#
# /// script
# requires-python = ">=3.10"
# requires-python = ">=3.11"
# dependencies = ["nox>=2025.02.09", "uv>=0.6.10"]
# ///

Expand All @@ -29,31 +29,24 @@
# -- nox configuration --
nox.options.default_venv_backend = "uv"
nox.options.sessions = [
"test_cartesian-3.10(internal, cpu)",
"test_cartesian-3.10(dace, cpu)",
"test_cartesian-3.11(internal, cpu)",
"test_cartesian-3.11(dace, cpu)",
"test_cartesian-3.12(internal, cpu)",
"test_cartesian-3.12(dace, cpu)",
"test_cartesian-3.13(internal, cpu)",
"test_cartesian-3.13(dace, cpu)",
"test_eve-3.10",
"test_eve-3.11",
"test_eve-3.12",
"test_eve-3.13",
"test_next-3.10(internal, cpu, nomesh)",
"test_next-3.10(dace, cpu, nomesh)",
"test_next-3.11(internal, cpu, nomesh)",
"test_next-3.11(dace, cpu, nomesh)",
"test_next-3.12(internal, cpu, nomesh)",
"test_next-3.12(dace, cpu, nomesh)",
"test_next-3.13(internal, cpu, nomesh)",
"test_next-3.13(dace, cpu, nomesh)",
"test_package-3.10",
"test_package-3.11",
"test_package-3.12",
"test_package-3.13",
"test_storage-3.10(cpu)",
"test_storage-3.11(cpu)",
"test_storage-3.12(cpu)",
"test_storage-3.13(cpu)",
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ classifiers = [
'Intended Audience :: Science/Research',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
Expand Down Expand Up @@ -128,7 +127,7 @@ license = 'BSD-3-Clause'
license-files = ['LICENSE']
name = 'gt4py'
readme = 'README.md'
requires-python = '>=3.10, <3.14'
requires-python = '>=3.11, <3.14'

[project.optional-dependencies]
cartesian = ['gt4py[jax,standard,testing]']
Expand Down Expand Up @@ -314,7 +313,7 @@ line-length = 100 # It should be the same as in `tool.black.line-length` above
respect-gitignore = true
show-fixes = true
# show-source = true
target-version = 'py310'
target-version = 'py311'

[tool.ruff.format]
docstring-code-format = true
Expand Down
2 changes: 1 addition & 1 deletion scripts/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
import enum
import re
import subprocess
import tomllib

import rich
import tomllib
import typer

from . import _common as common
Expand Down
2 changes: 1 addition & 1 deletion src/gt4py/cartesian/frontend/gtscript_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
from gt4py.cartesian.utils import meta as gt_meta


PYTHON_AST_VERSION: Final = (3, 10)
PYTHON_AST_VERSION: Final = (3, 11)


class AssertionChecker(ast.NodeTransformer):
Expand Down
2 changes: 1 addition & 1 deletion src/gt4py/next/constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def as_connectivity(
if shape != actual_domain.shape:
raise ValueError(f"Cannot construct 'Field' from array of shape '{shape}'.")
if dtype is None:
dtype = storage_utils.asarray(data).dtype
dtype = core_defs.dtype(storage_utils.asarray(data).dtype)
dtype = core_defs.dtype(dtype)
assert dtype.tensor_shape == () # TODO

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.