From 732f82e5497b91155838a0db5216a4f71e214565 Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:28:56 +0545 Subject: [PATCH] ci: support 3.13 (#62) --- .cruft.json | 2 +- .github/workflows/release.yaml | 16 ++++++---------- .github/workflows/tests.yaml | 14 +++++++------- pyproject.toml | 1 + 4 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.cruft.json b/.cruft.json index b8d1c0b..84c1020 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/iterative/cookiecutter-dvc-plugin", - "commit": "aa6adf593a1e9ecffbbe87c4b487e463dc774f62", + "commit": "d58214dd515da71aaabd50dcc5d8b0c71d645e8b", "checkout": null, "context": { "cookiecutter": { diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9fce569..79e3283 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,12 +8,12 @@ permissions: contents: read jobs: - pip: + build: environment: pypi permissions: contents: read id-token: write - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: @@ -21,13 +21,9 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 3.12 - - name: Install - run: | - pip install --upgrade pip wheel - pip install build twine - - name: Build - run: | - python -m build - twine check dist/* + - uses: astral-sh/setup-uv@v3 + - run: uv pip install twine --system + - run: uv build + - run: twine check dist/* - name: Publish packages to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b6dc5d1..9c2ca90 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04, windows-latest, macos-latest] - pyv: ["3.9", "3.10", "3.11", "3.12"] + pyv: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -34,14 +34,14 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.pyv }} - cache: 'pip' - cache-dependency-path: pyproject.toml + + - uses: astral-sh/setup-uv@v3 + with: + enable-cache: true + cache-dependency-glob: pyproject.toml - name: install - run: | - pip install --upgrade pip wheel - pip install -e ".[dev]" - pip install "dvc[testing] @ git+https://github.com/iterative/dvc" + run: uv pip install -e ".[dev]" "dvc[testing] @ git+https://github.com/iterative/dvc" --system - name: lint timeout-minutes: 10 diff --git a/pyproject.toml b/pyproject.toml index ad15ed9..5f0ef96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] dynamic = ["version"] dependencies = [