Skip to content

Commit 7e5845d

Browse files
committed
MNT: Enable Python 3.12 support
This adds a 3.12 test runner and removes the upper pins that prevented us from working with Python 3.12.
1 parent 2ebe549 commit 7e5845d

3 files changed

Lines changed: 34 additions & 72 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [windows-2019, ubuntu-latest, macos-latest]
15-
python-version: ['3.9', '3.10', '3.11']
15+
python-version: ['3.9', '3.10', '3.11', '3.12']
1616
defaults:
1717
run:
1818
shell: bash

poetry.lock

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

pyproject.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3.9",
2020
"Programming Language :: Python :: 3.10",
2121
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
2223
"Topic :: Software Development",
2324
"Topic :: Scientific/Engineering",
2425
"Operating System :: Microsoft :: Windows",
@@ -28,24 +29,24 @@ classifiers = [
2829
]
2930

3031
[tool.poetry.dependencies]
31-
python = ">=3.9,<3.12"
32+
python = ">=3.9,<4"
3233
xarray = '>=2023.0.0'
33-
space_packet_parser = ">=4.1.0,<5"
34-
spiceypy = "^6.0.0"
35-
bitstring = ">=4.0.1,<5"
34+
space_packet_parser = ">=4.1.0"
35+
spiceypy = ">=6.0.0"
36+
bitstring = ">=4.0.1"
3637
cdflib = "^1.2.3"
3738

3839
# Optional dependencies
39-
pre-commit = {version="^3.3.3,<4", optional=true}
40+
pre-commit = {version="^3.3.3", optional=true}
4041
pydata-sphinx-theme = {version="*", optional=true}
41-
pytest = {version=">=6.2.5,<7", optional=true}
42+
pytest = {version=">=6.2.5", optional=true}
4243
pytest-cov = {version="^4.0.0", optional=true}
4344
ruff = {version=">=0.1.7", optional=true}
4445
sphinx = {version="*", optional=true}
4546
myst-parser = {version="^2.0.0", optional=true}
4647
numpydoc = {version="^1.5.0", optional=true}
47-
pandas = {version=">=2.0.0,<3", optional=true}
48-
openpyxl = {version=">=3.0.7,<4", optional=true}
48+
pandas = {version=">=2.0.0", optional=true}
49+
openpyxl = {version=">=3.0.7", optional=true}
4950

5051

5152
[tool.poetry.extras]
@@ -76,7 +77,6 @@ ignore = ["D104", "PLR2004", "S101"]
7677
# TODO: Too many statements, this could be refactored and removed
7778
# by creating a loop over a predefined mapping
7879
"imap_processing/idex/idex_packet_parser.py" = ["PLR0915"]
79-
"imap_processing/write_to_cdf.py" = ["PLR0913"]
8080

8181
[tool.ruff.pydocstyle]
8282
convention = "numpy"

0 commit comments

Comments
 (0)