Skip to content

Commit 4d18ece

Browse files
authored
#232 Merge pull request from astropenguin/astropenguin/issue231
Support Python 3.13
2 parents eeabc34 + 61e7aa2 commit 4d18ece

File tree

8 files changed

+425
-346
lines changed

8 files changed

+425
-346
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "xarray-dataclasses",
3-
"image":"python:3.12",
4-
"onCreateCommand": "pip install poetry==1.6.1",
3+
"image":"python:3.13",
4+
"onCreateCommand": "pip install poetry==1.8.5",
55
"postCreateCommand": "poetry install",
66
"containerEnv": {
77
"POETRY_VIRTUALENVS_CREATE": "false"

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
env:
1313
POETRY_VIRTUALENVS_CREATE: false
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-python@v2
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
1717
with:
18-
python-version: "3.12"
18+
python-version: "3.13"
1919
- name: Install project dependencies
2020
run: pip install poetry && poetry install
2121
- name: Build docs

.github/workflows/pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
env:
1313
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- uses: actions/setup-python@v2
1717
with:
18-
python-version: "3.12"
18+
python-version: "3.13"
1919
- name: Publish package to PyPI
20-
run: pip install poetry && poetry publish --build
20+
run: pip install poetry==1.8.5 && poetry publish --build

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
20+
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2121
steps:
22-
- uses: actions/checkout@v2
23-
- uses: actions/setup-python@v2
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python }}
2626
- name: Install project dependencies
27-
run: pip install poetry && poetry install
27+
run: pip install poetry==1.8.5 && poetry install
2828
- name: Test code's formatting (Black)
2929
run: black --check docs tests xarray_dataclasses
3030
- name: Test code's typing (Pyright)

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ message: "If you use this software, please cite it as below."
33

44
title: "xarray-dataclasses"
55
abstract: "xarray data creation by data classes"
6-
version: 1.8.0
7-
date-released: 2024-06-13
6+
version: 1.9.0
7+
date-released: 2024-12-09
88
license: "MIT"
99
doi: "10.5281/zenodo.4624819"
1010
url: "https://github.com/astropenguin/xarray-dataclasses"

poetry.lock

Lines changed: 406 additions & 327 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "xarray-dataclasses"
3-
version = "1.8.0"
3+
version = "1.9.0"
44
description = "xarray data creation by data classes"
55
authors = ["Akio Taniguchi <[email protected]>"]
66
keywords = ["xarray", "dataclass", "dataarray", "dataset", "typing"]
@@ -11,15 +11,15 @@ repository = "https://github.com/astropenguin/xarray-dataclasses/"
1111
documentation = "https://astropenguin.github.io/xarray-dataclasses/"
1212

1313
[tool.poetry.dependencies]
14-
python = ">=3.8, <3.13"
14+
python = ">=3.8, <3.14"
1515
numpy = [
1616
{ version = ">=1.22, <1.25", python = ">=3.8, <3.9" },
17-
{ version = "^1.22", python = ">=3.9, <3.13" },
17+
{ version = ">=1.22", python = ">=3.9, <3.14" },
1818
]
1919
typing-extensions = "^4.0"
2020
xarray = [
2121
{ version = ">=2022.3, <2023.2", python = ">=3.8, <3.9" },
22-
{ version = ">=2022.3, <2025.0", python = ">=3.9, <3.13" },
22+
{ version = ">=2022.3, <2025.0", python = ">=3.9, <3.14" },
2323
]
2424

2525
[tool.poetry.group.dev.dependencies]

xarray_dataclasses/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dataoptions",
1818
"typing",
1919
]
20-
__version__ = "1.8.0"
20+
__version__ = "1.9.0"
2121

2222

2323
# submodules

0 commit comments

Comments
 (0)