From 1cd88fa034c82a5404691b7b9204d5fc3c6160ad Mon Sep 17 00:00:00 2001 From: "Lumberbot (aka Jack)" <39504233+meeseeksmachine@users.noreply.github.com> Date: Tue, 17 Sep 2024 08:03:07 -0700 Subject: [PATCH] Backport PR #3239 on branch 1.10.x (Fix release note building and check) (#3240) Co-authored-by: Philipp A --- .github/workflows/check-pr.yml | 8 ++++---- .readthedocs.yml | 1 + pyproject.toml | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index 88d78c9b43..5eaa4dacb3 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -49,13 +49,13 @@ jobs: with: fetch-depth: 0 filter: blob:none - - name: Find out if relevant release notes are modified - uses: dorny/paths-filter@v2 + - name: Find out if a relevant release fragment is added + uses: dorny/paths-filter@v3 id: changes with: filters: | # this is intentionally a string - relnotes: 'docs/release-notes/${{ github.event.pull_request.milestone.title }}.md' - - name: Check if relevant release notes are modified + relnotes: 'docs/release-notes/${{ github.event.pull_request.number }}.*.md' + - name: Check if a relevant release fragment is added uses: flying-sheep/check@v1 with: success: ${{ steps.changes.outputs.relnotes }} diff --git a/.readthedocs.yml b/.readthedocs.yml index 4ffa520491..adcdfb80d7 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -21,4 +21,5 @@ python: path: . extra_requirements: - doc + - dev # for towncrier - leiden diff --git a/pyproject.toml b/pyproject.toml index d4e85bf676..ec5c6e0541 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -157,6 +157,7 @@ dask-ml = ["dask-ml", "scanpy[dask]"] # Dask-ML for sklearn-like API packages = ["src/testing", "src/scanpy"] [tool.hatch.version] source = "vcs" +raw-options.version_scheme = "release-branch-semver" [tool.hatch.build.hooks.vcs] version-file = "src/scanpy/_version.py"