From f52eb007022c8b7e2176230db4eadc30230fd133 Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Mon, 28 Oct 2024 11:19:59 +0000 Subject: [PATCH] Update to python3.13 --- .github/workflows/benchmark.yml | 4 +--- .github/workflows/deploypypi.yml | 1 - .github/workflows/deploytestpypi.yml | 1 - .github/workflows/linter.yml | 6 +++--- .github/workflows/pytest.yml | 5 +++-- .python-version | 2 +- pyproject.toml | 3 ++- 7 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 69f323c..c65fd98 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -14,7 +14,7 @@ on: jobs: codspeed-benchmarks: timeout-minutes: 1440 - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 name: codspeed benchmarks steps: @@ -25,8 +25,6 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 - with: - python-version-file: .python-version - name: Install pynonthermal run: | diff --git a/.github/workflows/deploypypi.yml b/.github/workflows/deploypypi.yml index 9e38664..74bd690 100644 --- a/.github/workflows/deploypypi.yml +++ b/.github/workflows/deploypypi.yml @@ -17,7 +17,6 @@ jobs: - uses: actions/setup-python@v5 with: cache: pip - python-version-file: .python-version - name: Install dependencies run: | diff --git a/.github/workflows/deploytestpypi.yml b/.github/workflows/deploytestpypi.yml index 06e8bd6..9e6d14f 100644 --- a/.github/workflows/deploytestpypi.yml +++ b/.github/workflows/deploytestpypi.yml @@ -22,7 +22,6 @@ jobs: - uses: actions/setup-python@v5 with: cache: pip - python-version-file: .python-version - name: Install dependencies run: | diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index e3ee4df..05d5389 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -24,7 +24,6 @@ jobs: uses: actions/setup-python@v5 with: cache: pip - python-version-file: .python-version - name: Install dependencies run: | @@ -45,7 +44,6 @@ jobs: uses: actions/setup-python@v5 with: cache: pip - python-version-file: .python-version - name: Install dependencies run: | @@ -53,9 +51,11 @@ jobs: python3 -m pip install -r requirements.txt - name: Run Ruff - run: ruff check --output-format=github . + if: always() + run: ruff check --output-format=github --exit-non-zero-on-fix . - name: Run Ruff Format + if: always() run: ruff format --diff . - name: Run mypy diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 49a4099..659b334 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -18,8 +18,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-15] - python-version: ['3.10', '3.11', '3.12'] + os: [ubuntu-24.04, macos-15] + python-version: ['3.10', '3.11', '3.12', '3.13'] env: OS: ${{ matrix.os }} PYTHON: ${{ matrix.python-version }} @@ -36,6 +36,7 @@ jobs: with: cache: pip python-version: ${{ matrix.python-version }} + check-latest: true - name: Install pynonthermal run: | diff --git a/.python-version b/.python-version index fdcfcfd..24ee5b1 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.12 \ No newline at end of file +3.13 diff --git a/pyproject.toml b/pyproject.toml index 397e7b3..61884d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Intended Audience :: Science/Research", ] dynamic = ["version", "dependencies"] @@ -48,7 +49,7 @@ implicit_reexport = true packages = "pynonthermal" plugins = 'numpy.typing.mypy_plugin' pretty = true -python_version = '3.12' +python_version = '3.13' scripts_are_modules = true strict_equality = true extra_checks = true