diff --git a/.cruft.json b/.cruft.json index df4bc59..f07db77 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 c8e82f0..8aa794c 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 466c919..3758cbf 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 = [