Skip to content

Commit

Permalink
Support Python 3.13 (#356)
Browse files Browse the repository at this point in the history
* support python 3.13

* fix test
  • Loading branch information
kevinsung authored Jan 27, 2025
1 parent 8e5f43e commit 1881435
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Install dependencies
Expand All @@ -38,7 +38,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
python-version: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -56,7 +56,7 @@ jobs:
runs-on: macos-13
strategy:
matrix:
python-version: ["3.9", "3.12"]
python-version: ["3.9", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -83,7 +83,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
python-version: "3.13"
- name: Install tox
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Rust",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
Expand Down
4 changes: 2 additions & 2 deletions tests/python/operators/fermion_operator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ def test_str_equivalent():
(ffsim.cre_b(2), ffsim.des_b(1)): 1 - 0.5j,
}
)
exec("from ffsim import cre_a, cre_b, des_a, des_b")
assert eval(str(op)) == op
exec("from ffsim import cre_a, cre_b, des_a, des_b", globals())
assert eval(str(op), globals()) == op


def test_copy():
Expand Down

0 comments on commit 1881435

Please sign in to comment.