Skip to content

Commit

Permalink
#232 Merge pull request from astropenguin/astropenguin/issue231
Browse files Browse the repository at this point in the history
Support Python 3.13
  • Loading branch information
astropenguin authored Dec 9, 2024
2 parents eeabc34 + 61e7aa2 commit 4d18ece
Show file tree
Hide file tree
Showing 8 changed files with 425 additions and 346 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "xarray-dataclasses",
"image":"python:3.12",
"onCreateCommand": "pip install poetry==1.6.1",
"image":"python:3.13",
"onCreateCommand": "pip install poetry==1.8.5",
"postCreateCommand": "poetry install",
"containerEnv": {
"POETRY_VIRTUALENVS_CREATE": "false"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
env:
POETRY_VIRTUALENVS_CREATE: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install project dependencies
run: pip install poetry && poetry install
- name: Build docs
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: "3.12"
python-version: "3.13"
- name: Publish package to PyPI
run: pip install poetry && poetry publish --build
run: pip install poetry==1.8.5 && poetry publish --build
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install project dependencies
run: pip install poetry && poetry install
run: pip install poetry==1.8.5 && poetry install
- name: Test code's formatting (Black)
run: black --check docs tests xarray_dataclasses
- name: Test code's typing (Pyright)
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ message: "If you use this software, please cite it as below."

title: "xarray-dataclasses"
abstract: "xarray data creation by data classes"
version: 1.8.0
date-released: 2024-06-13
version: 1.9.0
date-released: 2024-12-09
license: "MIT"
doi: "10.5281/zenodo.4624819"
url: "https://github.com/astropenguin/xarray-dataclasses"
Expand Down
733 changes: 406 additions & 327 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "xarray-dataclasses"
version = "1.8.0"
version = "1.9.0"
description = "xarray data creation by data classes"
authors = ["Akio Taniguchi <taniguchi@a.phys.nagoya-u.ac.jp>"]
keywords = ["xarray", "dataclass", "dataarray", "dataset", "typing"]
Expand All @@ -11,15 +11,15 @@ repository = "https://github.com/astropenguin/xarray-dataclasses/"
documentation = "https://astropenguin.github.io/xarray-dataclasses/"

[tool.poetry.dependencies]
python = ">=3.8, <3.13"
python = ">=3.8, <3.14"
numpy = [
{ version = ">=1.22, <1.25", python = ">=3.8, <3.9" },
{ version = "^1.22", python = ">=3.9, <3.13" },
{ version = ">=1.22", python = ">=3.9, <3.14" },
]
typing-extensions = "^4.0"
xarray = [
{ version = ">=2022.3, <2023.2", python = ">=3.8, <3.9" },
{ version = ">=2022.3, <2025.0", python = ">=3.9, <3.13" },
{ version = ">=2022.3, <2025.0", python = ">=3.9, <3.14" },
]

[tool.poetry.group.dev.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion xarray_dataclasses/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dataoptions",
"typing",
]
__version__ = "1.8.0"
__version__ = "1.9.0"


# submodules
Expand Down

0 comments on commit 4d18ece

Please sign in to comment.