Skip to content

Commit

Permalink
support Python 3.12 (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcxve authored Dec 6, 2024
1 parent 5820ced commit 831f1ae
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
#include:
# - os: "macos-latest"
# python-version: "3.9"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ environment as follows:
```

Note that you can customize the environment name to your preference,
and the ``Python`` version should range from 3.9 to 3.11.
and the ``Python`` version should range from 3.9 to 3.12.

2. Activate the environment we just created:

Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ environment as follows:
```

Note that you can customize the environment name to your preference,
and the ``Python`` version should range from 3.9 to 3.11.
and the ``Python`` version should range from 3.9 to 3.12.

2. Activate the environment we just created:

Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import nox

PYTHON_VERSIONS = ['3.9', '3.10', '3.11']
PYTHON_VERSIONS = ['3.9', '3.10', '3.11', '3.12']


@nox.session(python=PYTHON_VERSIONS)
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "astro-elisa"
dynamic = ["version"]
description = "Efficient library for spectral analysis in high-energy astrophysics."
readme = "README.md"
requires-python = ">=3.9, <3.12"
requires-python = ">=3.9, <3.13"
license = "GPL-3.0-or-later"
keywords = []
authors = [
Expand All @@ -19,6 +19,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"arviz>=0.17.1; python_version < '3.10'",
Expand Down Expand Up @@ -86,7 +87,7 @@ build.targets.sdist.only-include = ["src", "tests"]
build.targets.wheel.packages = ["src/elisa"]

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

[tool.ruff]
line-length = 79
Expand Down

0 comments on commit 831f1ae

Please sign in to comment.