Skip to content

Commit

Permalink
Support Python 3.13 (#901)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Huppmann <dh@dergelbesalon.at>
  • Loading branch information
glatterf42 and danielhuppmann authored Dec 19, 2024
1 parent 8e96f53 commit dc2e3a4
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
poetry add iam-units@2020.4.21 --lock
poetry add matplotlib@3.6.0 --lock
poetry add numpy@1.26.0 --lock
poetry add numpy@1.26.2 --lock
poetry add pandas@2.1.2 --lock
poetry add pint@0.13 --lock
poetry add xlrd@2.0.1 --optional --lock
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
# exclude Windows and 3.13 due to recurring segfault
exclude:
- os: windows-latest
python-version: 3.13

fail-fast: false

Expand Down Expand Up @@ -68,16 +73,16 @@ jobs:

# run tests without Matplotlib & CodeCode tests on earlier Python versions
- name: Test with pytest
if: ${{ matrix.python-version != '3.12' }}
if: ${{ matrix.python-version != '3.13' }}
run: poetry run pytest tests

# run tests with Matplotlib & CodeCov on latest Python version
- name: Test with pytest including Matplotlib & Codecov
if: ${{ matrix.python-version == '3.12' }}
if: ${{ matrix.python-version == '3.13' }}
run: poetry run pytest tests --mpl --cov=./ --cov-report=xml

- name: Upload coverage report to Codecov
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' }}
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pyam: analysis & visualization <br /> of integrated-assessment and macro-energy

<!-- replace python version by dynamic reference to pypi once Python versions are configured there -->
[![Code style: ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![python](https://img.shields.io/badge/python-≥3.10,<3.13-blue?logo=python&logoColor=white)](https://github.com/IAMconsortium/pyam)
[![python](https://img.shields.io/badge/python-≥3.10,<3.14-blue?logo=python&logoColor=white)](https://github.com/IAMconsortium/pyam)
[![pytest](https://img.shields.io/github/actions/workflow/status/iamconsortium/pyam/pytest.yml?logo=GitHub&label=pytest)](https://github.com/IAMconsortium/pyam/actions/workflows/pytest.yml)
[![ReadTheDocs](https://readthedocs.org/projects/pyam-iamc/badge/?version=latest)](https://pyam-iamc.readthedocs.io/en/latest/?badge=latest)
[![codecov](https://codecov.io/gh/IAMconsortium/pyam/branch/main/graph/badge.svg)](https://codecov.io/gh/IAMconsortium/pyam)
Expand Down
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

The next release must be bumped to v3.0.0.

- [#901](https://github.com/IAMconsortium/pyam/pull/901) Add support for Python 3.13
- [#899](https://github.com/IAMconsortium/pyam/pull/899) Add `to_netcdf()` method
- [#896](https://github.com/IAMconsortium/pyam/pull/896) Add `sort_data()` method
- [#896](https://github.com/IAMconsortium/pyam/pull/896) Sort columns of `timeseries()` with mixed time domain
Expand Down
Loading

0 comments on commit dc2e3a4

Please sign in to comment.