From b0ac819b9a25c552990f349cb90551509477e9ea Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Mon, 14 Oct 2024 12:06:19 -0400 Subject: [PATCH] just use __version__ --- .github/workflows/build.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2ce03d9b..d6fe8f42b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,14 +40,11 @@ jobs: conda init-shell: none generate-run-shell: true - - id: version - name: retrieve package version with dunamai - run: | - micromamba install -y dunamai - echo version=$(dunamai from any --strict --pattern "default-unprefixed" --style semver) >> $GITHUB_OUTPUT - micromamba remove -y dunamai - run: pip install . - run: pip list + - id: version + name: retrieve package version + run: echo version=$(python -c "import jwql; print(jwql.__version__)") >> $GITHUB_OUTPUT - id: filename run: echo "filename=jwql_${{ steps.version.outputs.version }}_conda_${{ runner.os }}_${{ runner.arch }}_py${{ matrix.python-version }}.yml" >> $GITHUB_OUTPUT - run: conda env export --no-build | grep -v "name:" | grep -v "prefix:" > ${{ steps.filename.outputs.filename }}