From ceb2688e0a6322ed71bcb18bdc3f3f3f60f2571c Mon Sep 17 00:00:00 2001 From: Max Grover Date: Thu, 17 Aug 2023 14:47:11 -0500 Subject: [PATCH 1/4] Make sure git history accessed --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f08d97c..1f18bec 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,6 +43,11 @@ jobs: path: ~/conda_pkgs_dir key: ${{ runner.os }}-conda-py${{ matrix.python-version }}-${{ hashFiles('ci/requirements/**.yml') }} + + - name: Fetch all history for all tags and branches + run: | + git fetch --prune --unshallow + - uses: mamba-org/setup-micromamba@v1 with: environment-file: ci/environment.yml From bad74f1631bd3b3993d0397eb9e7af4ace43a2f1 Mon Sep 17 00:00:00 2001 From: Max Grover Date: Thu, 17 Aug 2023 14:47:54 -0500 Subject: [PATCH 2/4] Update ci.yaml --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1f18bec..79b3f94 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -46,7 +46,7 @@ jobs: - name: Fetch all history for all tags and branches run: | - git fetch --prune --unshallow + git fetch --prune - uses: mamba-org/setup-micromamba@v1 with: From a2eb4db25c5c663ac11ac37f83132fa140b049ad Mon Sep 17 00:00:00 2001 From: mgrover1 Date: Thu, 17 Aug 2023 14:49:29 -0500 Subject: [PATCH 3/4] fix linting issue --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 79b3f94..9fa3511 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,10 +43,10 @@ jobs: path: ~/conda_pkgs_dir key: ${{ runner.os }}-conda-py${{ matrix.python-version }}-${{ hashFiles('ci/requirements/**.yml') }} - + - name: Fetch all history for all tags and branches run: | - git fetch --prune + git fetch --prune - uses: mamba-org/setup-micromamba@v1 with: From 412b2e36d8425227195e2906045561a41f865dff Mon Sep 17 00:00:00 2001 From: mgrover1 Date: Thu, 17 Aug 2023 14:52:03 -0500 Subject: [PATCH 4/4] FIX: Fix lack of scm in setuptools --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index c370da4..664b8ef 100644 --- a/setup.py +++ b/setup.py @@ -42,4 +42,8 @@ 'Tracker': 'https://github.com/openradar/cmweather/issues', }, zip_safe=False, + use_scm_version={ + 'version_scheme': 'post-release', + 'local_scheme': 'dirty-tag', + }, )