From 6a9515e7e5d8c970f286ce4829cbc9315b37909f Mon Sep 17 00:00:00 2001 From: zssherman Date: Wed, 20 Apr 2022 15:16:53 -0500 Subject: [PATCH 1/3] MNT: Utilize conda for build due to trmm_rsl. --- .github/workflows/pypi-release.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 497d4cba72..e6d8c8549f 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -8,23 +8,37 @@ jobs: build-artifacts: runs-on: ubuntu-latest if: github.repository == 'ARM-DOE/pyart' + defaults: + run: + shell: bash -l {0} steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - - uses: actions/setup-python@v2 - name: Install Python + # Install dependencies + - name: Setup Conda Environment + uses: conda-incubator/setup-miniconda@v2 with: - python-version: 3.8 + environment-file: continuous_integration/environment-ci.yml + activate-environment: pyart-dev + auto-activate-base: false + mamba-version: '*' + use-mamba: true + miniforge-variant: Mambaforge + extra-specs: python=3.8 + + - name: Set TRMM RSL path + run: | + export RSL_PATH=$CONDA/pkgs/trmm_rsl-1.49-3 - - name: Install dependencies + - name: Install pip dependencies run: | python -m pip install --upgrade pip python -m pip install build - python -m pip install -r requirements.txt + python -m pip install twine - name: Build tarball and wheels run: | - python -m pip install -e . + python -m pip install -e . --no-deps --force-reinstall git clean -xdf git restore -SW . python -m build --sdist --wheel . From 1e46720938dd96d80ac857ef8143761431770351 Mon Sep 17 00:00:00 2001 From: zssherman Date: Wed, 20 Apr 2022 15:22:30 -0500 Subject: [PATCH 2/3] MNT: Adding trmm_rsl to conda environment file. --- continuous_integration/environment-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/continuous_integration/environment-ci.yml b/continuous_integration/environment-ci.yml index 5ad619586f..3b651e5a31 100644 --- a/continuous_integration/environment-ci.yml +++ b/continuous_integration/environment-ci.yml @@ -4,6 +4,7 @@ channels: - defaults dependencies: - gdal + - trmm_rsl - numpy - scipy - matplotlib @@ -23,4 +24,3 @@ dependencies: - pip: - pooch - versioneer - From 47b2146d4a3f8853f100cddcfdb05080eb5997c4 Mon Sep 17 00:00:00 2001 From: zssherman Date: Wed, 20 Apr 2022 16:20:35 -0500 Subject: [PATCH 3/3] MNT: Adding mamba install trmm_rsl. --- .github/workflows/pypi-release.yml | 1 + continuous_integration/environment-ci.yml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index e6d8c8549f..b3e379b6ba 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -29,6 +29,7 @@ jobs: - name: Set TRMM RSL path run: | + mamba install -c conda-forge trmm_rsl export RSL_PATH=$CONDA/pkgs/trmm_rsl-1.49-3 - name: Install pip dependencies diff --git a/continuous_integration/environment-ci.yml b/continuous_integration/environment-ci.yml index 3b651e5a31..8be6f63393 100644 --- a/continuous_integration/environment-ci.yml +++ b/continuous_integration/environment-ci.yml @@ -4,7 +4,6 @@ channels: - defaults dependencies: - gdal - - trmm_rsl - numpy - scipy - matplotlib