Skip to content

Commit

Permalink
feat: add support for Python 3.13, closes #58
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnhan authored Feb 2, 2025
1 parent cd397d8 commit df4f479
Show file tree
Hide file tree
Showing 4 changed files with 375 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.11", "3.12", "3.13"]
qt-api: ["pyqt6", "pyside6"]
steps:
- uses: actions/checkout@v4
Expand All @@ -43,7 +43,7 @@ jobs:

- name: Install project with all extras
run: |
uv sync --all-extras --dev --group ${{ matrix.qt-api }}
uv sync --all-extras --dev --group ${{ matrix.qt-api }} --upgrade
export QT_API=${{ matrix.qt-api }}
- name: Test with pytest
Expand Down Expand Up @@ -103,11 +103,12 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --pre numba
python -m pip install commitizen cz-changeup
- name: Generate changelog
Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "3.5.1"
authors = [{ name = "Kimoon Han", email = "khan@kaist.ac.kr" }]
description = "Python package for ARPES data analysis and visualization."
readme = "README.md"
requires-python = ">=3.11,<3.13"
requires-python = ">=3.11,<3.14"
keywords = ["Condensed Matter Physics", "ARPES"]
license = { file = "LICENSE" }
classifiers = [
Expand All @@ -15,6 +15,7 @@ classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
dependencies = [
Expand All @@ -25,7 +26,7 @@ dependencies = [
"lazy-loader>=0.4",
"lmfit>=1.3.2",
"matplotlib>=3.8.0",
"numba>=0.59.0",
"numba>=0.61.0",
"numpy>=1.26.0",
"pickleshare>=0.7.5",
"pyperclip>=1.8.2",
Expand Down Expand Up @@ -57,6 +58,7 @@ dev = [
"pytest>=8.3.0",
"pytest-cov>=5.0.0",
"pytest-datadir>=1.5.0",
"pytest-env>=1.1.5",
"pytest-qt>=4.4.0",
"ruff>=0.9.1",
]
Expand Down Expand Up @@ -235,6 +237,10 @@ log_cli_level = "INFO"
xfail_strict = true
filterwarnings = ["always"]

[tool.pytest_env]
NUMBA_JIT_COVERAGE = 1
DISPLAY = ":99.0"

[tool.coverage.run]
source = ["src"]
omit = ["*/_deprecated/*"]
Expand Down
2 changes: 1 addition & 1 deletion tests/io/test_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def file_dialog_methods(self):
errno.ENOENT, os.strerror(errno.ENOENT), "some_nonexistent_dir"
)
)
),
).replace("some_nonexistent_dir", ".*some_nonexistent_dir"),
):
erlab.io.loaders.set_data_dir("some_nonexistent_dir")

Expand Down
Loading

0 comments on commit df4f479

Please sign in to comment.