diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 18c8fce2be9..16f87c22822 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -38,8 +38,6 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # fetch all history so that setuptools-scm works - fetch-depth: 0 persist-credentials: false - name: Get current week number of year diff --git a/.github/workflows/cache_data.yaml b/.github/workflows/cache_data.yaml index 6994fe6ad93..44ec399ba1d 100644 --- a/.github/workflows/cache_data.yaml +++ b/.github/workflows/cache_data.yaml @@ -44,8 +44,6 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # fetch all history so that setuptools-scm works - fetch-depth: 0 persist-credentials: false # Install Micromamba with conda-forge dependencies diff --git a/.github/workflows/ci_docs.yml b/.github/workflows/ci_docs.yml index 5cf865b8bbb..6698d3a9a2a 100644 --- a/.github/workflows/ci_docs.yml +++ b/.github/workflows/ci_docs.yml @@ -77,8 +77,6 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # fetch all history so that setuptools-scm works - fetch-depth: 0 persist-credentials: false - name: Get current week number of year @@ -197,8 +195,6 @@ jobs: ref: gh-pages # Checkout to this folder instead of the current one path: deploy - # Download the entire history - fetch-depth: 0 persist-credentials: true if: (github.event_name == 'release' || github.event_name == 'push') && (matrix.os == 'ubuntu-latest') diff --git a/.github/workflows/ci_doctests.yaml b/.github/workflows/ci_doctests.yaml index c6ce9b0a27a..f384ea0d341 100644 --- a/.github/workflows/ci_doctests.yaml +++ b/.github/workflows/ci_doctests.yaml @@ -39,8 +39,6 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # fetch all history so that setuptools-scm works - fetch-depth: 0 persist-credentials: false # Install Micromamba with conda-forge dependencies diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index 3d346c9c2c1..ef866da89d7 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -111,8 +111,6 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # fetch all history so that setuptools-scm works - fetch-depth: 0 persist-credentials: false lfs: false diff --git a/.github/workflows/ci_tests_dev.yaml b/.github/workflows/ci_tests_dev.yaml index 593029c2859..943a4d2b9b2 100644 --- a/.github/workflows/ci_tests_dev.yaml +++ b/.github/workflows/ci_tests_dev.yaml @@ -54,8 +54,6 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # fetch all history so that setuptools-scm works - fetch-depth: 0 persist-credentials: false lfs: false diff --git a/.github/workflows/ci_tests_legacy.yaml b/.github/workflows/ci_tests_legacy.yaml index 6e563b6aada..34995ffc210 100644 --- a/.github/workflows/ci_tests_legacy.yaml +++ b/.github/workflows/ci_tests_legacy.yaml @@ -48,8 +48,6 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # fetch all history so that setuptools-scm works - fetch-depth: 0 persist-credentials: false # Install Micromamba with conda-forge dependencies diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 9eb71dcbf17..e2579edc7a4 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -45,8 +45,6 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # fetch all history so that setuptools-scm works - fetch-depth: 0 persist-credentials: false - name: Set up Python diff --git a/pyproject.toml b/pyproject.toml index 6b936f8b7fa..43e081b3458 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=80", "setuptools-scm>=9.2"] +requires = ["setuptools>=80", "setuptools-scm>=10.0.4"] build-backend = "setuptools.build_meta" [project] @@ -70,6 +70,9 @@ version_scheme = "release-branch-semver" local_scheme = "node-and-date" fallback_version = "999.999.999+unknown" +[tool.setuptools_scm.scm.git] +pre_parse = "fetch_on_shallow" + [tool.codespell] ignore-words-list = "astroid,te,tripel,trough"