From 2da1ab7246df1ddccc77b00b3acd4bfc63eb3941 Mon Sep 17 00:00:00 2001 From: Bob Yantosca Date: Wed, 31 Jan 2024 16:49:22 -0500 Subject: [PATCH 1/6] Split RTD python packages into a separate conda environment docs/environment_files/read_the_docs_environment.yml - New Mamba/Conda environment file containing pegged package versions for ReadTheDocs documentation. Uses Python 12 and more recent package versions, to avoid dependabot warnings. docs/environment_files/environment.yml docs/environment_files/testing.yml - Removed RTD dependencies from these environment files .github/workflows/build-rtd-environment.yml - GitHub action to test if we can build a Mamba/Conda environment from read_the_docs_environment.yml CHANGELOG.md - Updated accordingly Signed-off-by: Bob Yantosca --- .github/workflows/build-rtd-environment.yml | 37 +++++++++++++++++++ CHANGELOG.md | 4 ++ docs/environment_files/environment.yml | 14 +++---- .../read_the_docs_environment.yml | 20 ++++++++++ docs/environment_files/testing.yml | 6 --- 5 files changed, 66 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/build-rtd-environment.yml create mode 100644 docs/environment_files/read_the_docs_environment.yml diff --git a/.github/workflows/build-rtd-environment.yml b/.github/workflows/build-rtd-environment.yml new file mode 100644 index 0000000..6524431 --- /dev/null +++ b/.github/workflows/build-rtd-environment.yml @@ -0,0 +1,37 @@ +--- +# +# GitHub action to build the ReadTheDocs environment with micromamba +# See: https://github.com/marketplace/actions/setup-micromamba +# +name: build-rtd-environment + +on: + push: + branches: [ "main", "dev", "dependabot/*" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main", "dev" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + steps: + - name: Checkout the GCPy repository + uses: actions/checkout@v4 + - name: Create "rtd_env" environment + uses: mamba-org/setup-micromamba@v1 + with: + micromamba-version: 'latest' + environment-file: docs/environment_files/read_the_docs_environment.yml + init-shell: bash + cache-environment: true + generate-run-shell: true + post-cleanup: 'all' + - name: Get version numbers of packages + run: | + python --version + sphinx-autobuild --version + shell: micromamba-shell {0} diff --git a/CHANGELOG.md b/CHANGELOG.md index 8512c55..2721333 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Badges in `docs/source/index.rst` - GitHub action to push GCPy releases to PyPi - Script `./release/changeVersionNumbers.sh`, used to update version numbers in various files before release +- Mamba/Conda enviroment file `docs/environment_files/read_the_docs_environment.yml`, for building ReadTheDocs documentation ### Changed - Bump pip from 23.2.1 to 23.3 (dependabot suggested this) @@ -23,6 +24,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - CS inquiry functions in `gcpy/cstools.py` now work properly for `xr.Dataset` and `xr.DataArray` objects - Prevent an import error by using `seaborn-v0_8-darkgrid` in`gcpy/benchmark/modules/benchmark_models_vs_obs.py` +### Removed +- Python packages for RTD documenation builds from `docs/environment_files/environment.yml` + ## [1.4.2] - 2024-01-26 ### Added - Example script `create_test_plot.py`, which can be used to check that GCPy has been installed properly diff --git a/docs/environment_files/environment.yml b/docs/environment_files/environment.yml index 312999b..2e8ae95 100644 --- a/docs/environment_files/environment.yml +++ b/docs/environment_files/environment.yml @@ -7,6 +7,10 @@ # # These package versions have been proven to work together. # See: https://github.com/geoschem/gcpy/issues/284 +# +# NOTE: Use the YAML file read_the_docs_environment.yml to generate +# a separate Mamba/Conda environment for generating the ReadTheDocs +# documentation. # ====================================================================== name: gcpy_env channels: @@ -29,9 +33,8 @@ dependencies: - pip==23.3 # Install packages from PyPi - pylint==2.17.5 # Python linter - pyproj==3.6.1 # Python map projections library - - python==3.9.18 # Any python version prior to 3.10 + - python==3.9.18 # Python language - pypdf==3.17.0 # PDF utilities (bookmarks, etc.) - - recommonmark==0.7.1 # Dependency for Sphinx - requests==2.31.0 # HTTP library - scipy==1.11.2 # Scientific python package - sparselt==0.1.3 # Regridding earth system model data @@ -41,10 +44,3 @@ dependencies: - esmf==8.1.1 # Earth system modeling framework - esmpy==8.1.1 # Python wrapper for ESMF - xesmf==0.5.1 # Universal regridder - - docutils==0.16 # Convert text to other formats - - jinja2==3.0.3 # Dependency for Sphinx - - sphinx==3.5.4 # Generate ReadTheDocs output - - sphinx-autoapi==1.9.0 # Sphinx autodoc style documentation - - sphinx-autobuild==2021.3.14 # Build ReadTheDos live in browser - - sphinxcontrib-bibtex==2.2.0 # ReadTheDocs bibliography style - - sphinx_rtd_theme==0.5.2 # ReadTheDocs HTML theme files diff --git a/docs/environment_files/read_the_docs_environment.yml b/docs/environment_files/read_the_docs_environment.yml new file mode 100644 index 0000000..1c2e0db --- /dev/null +++ b/docs/environment_files/read_the_docs_environment.yml @@ -0,0 +1,20 @@ +--- +# ====================================================================== +# Environment for building ReadTheDocs documentation +# This uses a newer Python version than the GCPy environment. +# ====================================================================== +name: rtd_env +channels: + - conda-forge + - nodefaults +dependencies: + - python==3.12 + - sphinx==7.2.6 + - sphinx_rtd_theme==2.0.0 + - sphinxcontrib-bibtex==2.6.2 + - sphinx-autobuild==2021.3.14 + - recommonmark==0.7.1 + - docutils==0.20.1 + - jinja2==3.1.3 + + diff --git a/docs/environment_files/testing.yml b/docs/environment_files/testing.yml index 3c6c9de..abca0f5 100644 --- a/docs/environment_files/testing.yml +++ b/docs/environment_files/testing.yml @@ -44,9 +44,3 @@ dependencies: - esmpy==8.1.1 # Python wrapper for ESMF - xesmf==0.5.1 # Universal regridder - docutils==0.16 # Convert text to other formats - - jinja2==3.0.3 # Dependency for Sphinx - - sphinx==3.5.4 # Generate ReadTheDocs output - - sphinx-autoapi==1.9.0 # Sphinx autodoc style documentation - - sphinx-autobuild==2021.3.14 # Build ReadTheDos live in browser - - sphinxcontrib-bibtex==2.2.0 # ReadTheDocs bibliography style - - sphinx_rtd_theme==0.5.2 # ReadTheDocs HTML theme files From a1e737f52c5cde05374d61b20d49ee6ae70cda12 Mon Sep 17 00:00:00 2001 From: Bob Yantosca Date: Wed, 31 Jan 2024 17:13:53 -0500 Subject: [PATCH 2/6] Set cache-environment: false in setup-micromamba GitHub actions .github/workflows/build-*-environment.yml - Set "cache_environment: false". This will prevent warnings that say that caches cannot be created. This can happen if multiple instances of setup-micromamba are running (such as we have). Signed-off-by: Bob Yantosca --- .github/workflows/build-gcpy-environment.yml | 2 +- .github/workflows/build-rtd-environment.yml | 2 +- .github/workflows/build-test-environment.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-gcpy-environment.yml b/.github/workflows/build-gcpy-environment.yml index e57f735..df1efe9 100644 --- a/.github/workflows/build-gcpy-environment.yml +++ b/.github/workflows/build-gcpy-environment.yml @@ -27,7 +27,7 @@ jobs: micromamba-version: 'latest' environment-file: docs/environment_files/environment.yml init-shell: bash - cache-environment: true + cache-environment: false generate-run-shell: true post-cleanup: 'all' - name: Test if "import gcpy" works diff --git a/.github/workflows/build-rtd-environment.yml b/.github/workflows/build-rtd-environment.yml index 6524431..4bdc587 100644 --- a/.github/workflows/build-rtd-environment.yml +++ b/.github/workflows/build-rtd-environment.yml @@ -27,7 +27,7 @@ jobs: micromamba-version: 'latest' environment-file: docs/environment_files/read_the_docs_environment.yml init-shell: bash - cache-environment: true + cache-environment: false generate-run-shell: true post-cleanup: 'all' - name: Get version numbers of packages diff --git a/.github/workflows/build-test-environment.yml b/.github/workflows/build-test-environment.yml index 0941c28..b3efb37 100644 --- a/.github/workflows/build-test-environment.yml +++ b/.github/workflows/build-test-environment.yml @@ -27,7 +27,7 @@ jobs: micromamba-version: 'latest' environment-file: docs/environment_files/testing.yml init-shell: bash - cache-environment: true + cache-environment: false generate-run-shell: true post-cleanup: 'all' - name: Test if "import gcpy" works From 22d7073a4b53f99dbcb113267a06d2ca90fde650 Mon Sep 17 00:00:00 2001 From: Bob Yantosca Date: Thu, 1 Feb 2024 12:21:20 -0500 Subject: [PATCH 3/6] Remove "runs" YAML tags from .github/workflows/codeql.yml This was causing the CodeQL GitHub action not to run. Signed-off-by: Bob Yantosca --- .github/workflows/codeql.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a6164e8..7564906 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -80,8 +80,3 @@ jobs: uses: github/codeql-action/analyze@v2 with: category: "/language:${{matrix.language}}" - -# Use Node.js version 20 to avoid deprecation warnings -runs: - using: 'node20' - main: 'main.js' From 9049a963c5a28ee0bb4c7ec6da0220b0fe6c5486 Mon Sep 17 00:00:00 2001 From: Bob Yantosca Date: Fri, 2 Feb 2024 15:51:08 -0500 Subject: [PATCH 4/6] Remove awscli from the GCPy environment; Update environment files docs/environment_files/gcpy_environment.yml - Renamed from docs/environment_files/environment.yml - Removed awscli, since v2 is not available via PyPI anymore - Updated comment header docs/environment_files/gcpy_requirements.txt - Added GCPy dependencies from gcpy_environment.yml here, but in PyPi "requirements.txt" form. docs/enviroment_files/read_the_docs_environment.yml - Updated comment header docs/environment_files/read_the_docs_requirements.txt - Added ReadTheDocs dependencies from gcpy_environment.yml here, but in PyPi "requirements.txt" form. docs/environment_files/environment.yml docs/environment_files/requirements.txt - Removed environment.yml - Symbolic link to docs/environment_files/gcpy_environment.yml requirements.txt - Symbolic link to docs/environment_files/gcpy_requirements.txt CHANGELOG.md - Updated accordingly Signed-off-by: Bob Yantosca --- CHANGELOG.md | 9 +++- docs/environment_files/README.md | 50 +++++++++++++++++++ .../{environment.yml => gcpy_environment.yml} | 11 ++-- docs/environment_files/gcpy_requirements.txt | 36 +++++++++++++ .../read_the_docs_environment.yml | 8 ++- .../read_the_docs_requirements.txt | 18 +++++++ docs/environment_files/testing.yml | 46 ----------------- docs/requirements.txt | 16 ------ environment.yml | 2 +- requirements.txt | 1 + 10 files changed, 124 insertions(+), 73 deletions(-) create mode 100644 docs/environment_files/README.md rename docs/environment_files/{environment.yml => gcpy_environment.yml} (88%) create mode 100644 docs/environment_files/gcpy_requirements.txt create mode 100644 docs/environment_files/read_the_docs_requirements.txt delete mode 100644 docs/environment_files/testing.yml delete mode 100644 docs/requirements.txt create mode 120000 requirements.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 2721333..8a1ef7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,11 +14,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - GitHub action to push GCPy releases to PyPi - Script `./release/changeVersionNumbers.sh`, used to update version numbers in various files before release - Mamba/Conda enviroment file `docs/environment_files/read_the_docs_environment.yml`, for building ReadTheDocs documentation +- Environment files `docs/environment_files/gcpy_requirements.txt` and `docs/environment_files/read_the_docs_requirements.txt` ### Changed - Bump pip from 23.2.1 to 23.3 (dependabot suggested this) - Bump pypdf from 3.16.1 to 3.17.0 (dependabot suggested this) - YAML tag `operations_budget` is now `ops_budget_table` in `gcpy/benchmark/config/1yr_tt_benchmark.yml` +- Renamed `docs/environment_files/environment.yml` to `gcpy_environment.yml` +- `environment.yml` links to `docs/environment_files/gcpy_environment.yml` +- `requirements.txt` links to `docs/environment_files/requirements.txt` ### Fixed - CS inquiry functions in `gcpy/cstools.py` now work properly for `xr.Dataset` and `xr.DataArray` objects @@ -26,6 +30,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Removed - Python packages for RTD documenation builds from `docs/environment_files/environment.yml` +- Environment file `docs/environment_files/environment.yml` +- Environment file `docs/environment_files/requirements.txt` +- Removed `awscli` from the GCPy environment; version 2 is no longer available on conda-forge or PyPi ## [1.4.2] - 2024-01-26 ### Added @@ -35,7 +42,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - GitHub action `build-test-environment` to test the environment specified in `testing.yml` ### Changed -- `build-gcpy-environment` GitHub action now runs with several Python versions +- `build-gcpy-environment` GitHub action now runs with several Python versions ### Fixed - Prevent overwriting of the `results` variable when parallel plotting is deactivated (`n_cores: 1`) diff --git a/docs/environment_files/README.md b/docs/environment_files/README.md new file mode 100644 index 0000000..c98697f --- /dev/null +++ b/docs/environment_files/README.md @@ -0,0 +1,50 @@ +# Environment files + +This folder contains environment files that are used to install dependencies for GCPy and the ReadTheDocs documentation. + +NOTE: Most users will install GCPy with: + +```console +$ pip install geoschem-gcpy +``` +but GCPy developers may need to install the dependencies separately using the environment files in this folder. + +## Installing GCPy dependencies + +### With Mamba or Conda + +Use one of these commands to build a Mamba/Conda environment with all of the GCPy dependencies. + +```console +$ mamba env create -n gcpy_env --file=gcpy_environment.yml +``` +or +```console +$ conda env create -n gcpy_env --file=gcpy_environment.yml +``` + +### With pip +Or use this command to install the dependencies from PyPI: +```console +$ pip install -r gcpy_requirements.txt +``` + +## Installing ReadTheDocs dependencies + +### With Mamba or Conda + +Use one of these commands to build a Mamba/Conda environment with the dependencies for building the GCPy ReadTheDocs documentation: + +```console +$ mamba env create -n rtd_env --file=read_the_docs_environment.yml +``` +or +```console +$ conda env create -n rtd_env --file=read_the_docs_environment.yml +``` + +### With pip +Or use this command to install the dependencies from PyPi: +```console +$ pip install -r read_the_docs_requirements.txt +``` diff --git a/docs/environment_files/environment.yml b/docs/environment_files/gcpy_environment.yml similarity index 88% rename from docs/environment_files/environment.yml rename to docs/environment_files/gcpy_environment.yml index 2e8ae95..fb33b0c 100644 --- a/docs/environment_files/environment.yml +++ b/docs/environment_files/gcpy_environment.yml @@ -2,22 +2,19 @@ # ====================================================================== # GCPy environment file # -# Recommended installation: with Mambaforge +# If you wish to build a Mamba/Conda environment with the dependencies +# for GCPy, use this command: +# # $ mamba env create -n gcpy_env --file=/path/to/gcpy/environment.yml # # These package versions have been proven to work together. # See: https://github.com/geoschem/gcpy/issues/284 -# -# NOTE: Use the YAML file read_the_docs_environment.yml to generate -# a separate Mamba/Conda environment for generating the ReadTheDocs -# documentation. -# ====================================================================== +# ===================================================================== name: gcpy_env channels: - conda-forge - nodefaults dependencies: - - awscli==2.13.39 # Utilities for AWS cloud - cartopy==0.22.0 # Geospatial data processing - cf_xarray==0.8.4 # CF conventions for xarray - dask==2023.9.2 # Parallel library; backend for xarray diff --git a/docs/environment_files/gcpy_requirements.txt b/docs/environment_files/gcpy_requirements.txt new file mode 100644 index 0000000..bcc9aff --- /dev/null +++ b/docs/environment_files/gcpy_requirements.txt @@ -0,0 +1,36 @@ +# ====================================================================== +# ReadTheDocs requirements file +# +# If you wish to install the dependencies for GCPy from PyPI, use: +# +# $ pip install -r gcpy_requirements.txt +# +# These package versions have been proven to work together. +# See: https://github.com/geoschem/gcpy/issues/284 +# ====================================================================== +cartopy==0.22.0 # Geospatial data processing +cf_xarray==0.8.4 # CF conventions for xarray +dask==2023.9.2 # Parallel library; backend for xarray +gridspec==0.1.0 # Define Earth System Model grids +ipython==8.15.0 # Interactive Python (used by Jupyter) +joblib==1.3.2 # Parallelize python code +jupyter==1.0.0 # Jupyter Notebook +matplotlib==3.8.0 # Creates plots and visualizations +netcdf4==1.6.0 # Python wrapper for netCDF +netcdf-fortran==4.5.4 # Python wrapper for netCDF-Fortran +numpy==1.26.0 # Optimized mathematical functions +pandas==2.1.1 # Tables/timeseries manipulation +pip==23.3 # Install packages from PyPi +pylint==2.17.5 # Python linter +pyproj==3.6.1 # Python map projections library +python==3.9.18 # Python language +pypdf==3.17.0 # PDF utilities (bookmarks, etc.) +requests==2.31.0 # HTTP library +scipy==1.11.2 # Scientific python package +sparselt==0.1.3 # Regridding earth system model data +tabulate==0.9.0 # Pretty-printing for column data +tk==8.6.12 # Tcl/tk library +xarray==2023.8.0 # Read data from netCDF etc files +esmf==8.1.1 # Earth system modeling framework +esmpy==8.1.1 # Python wrapper for ESMF +xesmf==0.5.1 # Universal regridder diff --git a/docs/environment_files/read_the_docs_environment.yml b/docs/environment_files/read_the_docs_environment.yml index 1c2e0db..8bd813b 100644 --- a/docs/environment_files/read_the_docs_environment.yml +++ b/docs/environment_files/read_the_docs_environment.yml @@ -1,7 +1,11 @@ --- # ====================================================================== -# Environment for building ReadTheDocs documentation -# This uses a newer Python version than the GCPy environment. +# ReadTheDocs environment file +# +# If you wish to build a Mamba/Conda environment with the dependencies +# needed for building the ReadTheDocs documentation, use: +# +# $ mamba env create -n rtd_env --file=read_the_docs_environment.yml # ====================================================================== name: rtd_env channels: diff --git a/docs/environment_files/read_the_docs_requirements.txt b/docs/environment_files/read_the_docs_requirements.txt new file mode 100644 index 0000000..8a5fe45 --- /dev/null +++ b/docs/environment_files/read_the_docs_requirements.txt @@ -0,0 +1,18 @@ +# ====================================================================== +# ReadTheDocs requirements file +# +# If you wish to install the dependencies for building the ReadTheDocs +# ReadTheDocs documentation from PyPI (the Python Package Index), use: +# +# $ pip install -r read_the_docs_requirements.txt +# ====================================================================== +python==3.12 +sphinx==7.2.6 +sphinx_rtd_theme==2.0.0 +sphinxcontrib-bibtex==2.6.2 +sphinx-autobuild==2021.3.14 +recommonmark==0.7.1 +docutils==0.22.1 +jinja2==3.1.3 + + diff --git a/docs/environment_files/testing.yml b/docs/environment_files/testing.yml deleted file mode 100644 index abca0f5..0000000 --- a/docs/environment_files/testing.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -# ====================================================================== -# GCPy testing environment file. -# Intended to be used by the GCST for testing purposes. -# -# GCPy users should build the environment from "environment.yml", -# as this will specify package versions that are known to work. -# See: https://github.com/geoschem/gcpy/issues/284 -# ====================================================================== -name: testing -channels: - - conda-forge - - nodefaults -dependencies: - - awscli # Utilities for AWS cloud - - cartopy # Geospatial data processing - - cf_xarray # CF conventions for xarray - - dask # Parallel library; backend for xarray - - gridspec # Define Earth System Model grids - - ipython # Interactive Python (used by Jupyter) - - joblib # Parallelize python code - - jupyter # Jupyter Notebook - - matplotlib>=3.8 # Creates plots and visualizations - - netcdf4 # Python wrapper for netCDF - - netcdf-fortran # Python wrapper for netCDF-Fortran - - numpy # Optimized mathematical functions - - pandas # Tables/timeseries manipulation - - pip # Install packages from PyPi - - pylint # Python linter - - pyproj # Python map projections library - - python # Any python version prior to 3.10 - - pypdf # PDF utilities (bookmarks, etc.) - - recommonmark # Dependency for Sphinx - - requests # HTTP library - - scipy # Scientific python package - - sparselt # Regridding earth system model data - - tabulate # Pretty-printing for column data - - tk # Tcl/tk library - - xarray # Read data from netCDF etc files - # - # NOTE: These packages are known to work, so peg these versions - # - - esmf==8.1.1 # Earth system modeling framework - - esmpy==8.1.1 # Python wrapper for ESMF - - xesmf==0.5.1 # Universal regridder - - docutils==0.16 # Convert text to other formats diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index 5e364b5..0000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,16 +0,0 @@ -# Requirements for building the GCPy documentation -# -# NOTE: Use specific versions for Python packages instead of upper -# bounds. Using an upper bound will not necessarily install the -# intended version if there already is a version that meets the -# criteria present in the Python environment. -# -- Bob Yantosca and Lizzie Lundgren (27 Sep 2022) -# -# The following package versions have been proven to work together: -# -sphinx==3.5.4 -sphinx_rtd_theme==0.5.2 -sphinxcontrib-bibtex==2.2.0 -recommonmark -docutils==0.16 -jinja2==3.0.3 diff --git a/environment.yml b/environment.yml index bea0bd1..f9a2976 120000 --- a/environment.yml +++ b/environment.yml @@ -1 +1 @@ -docs/environment_files/environment.yml \ No newline at end of file +docs/environment_files/gcpy_environment.yml \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 120000 index 0000000..a1ba061 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +docs/environment_files/gcpy_requirements.txt \ No newline at end of file From c21c69c7ec78efd737a4aef100f669d3d0e50a6e Mon Sep 17 00:00:00 2001 From: Bob Yantosca Date: Fri, 2 Feb 2024 16:00:35 -0500 Subject: [PATCH 5/6] Bug fix: Now use proper environment file in Github Actions .github/workflows/build-gcpy-environment.yml - Changed filename "docs/environment_files/environment.yml" to "docs/environment_files.gcpy_environment.yml" Signed-off-by: Bob Yantosca --- .github/workflows/build-gcpy-environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-gcpy-environment.yml b/.github/workflows/build-gcpy-environment.yml index df1efe9..0e1da74 100644 --- a/.github/workflows/build-gcpy-environment.yml +++ b/.github/workflows/build-gcpy-environment.yml @@ -25,7 +25,7 @@ jobs: uses: mamba-org/setup-micromamba@v1 with: micromamba-version: 'latest' - environment-file: docs/environment_files/environment.yml + environment-file: docs/environment_files/gcpy_environment.yml init-shell: bash cache-environment: false generate-run-shell: true From 9233b99e34fc1ab0eb87b634971f3ff80e9b7c35 Mon Sep 17 00:00:00 2001 From: Bob Yantosca Date: Tue, 6 Feb 2024 09:33:41 -0500 Subject: [PATCH 6/6] Fixed incorrect information in CHANGELOG.md CHANGELOG.md - Moved a sentence about the RTD environment from the "Removed" section to the "Changed" section. Signed-off-by: Bob Yantosca --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a1ef7b..7fc2652 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,13 +23,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Renamed `docs/environment_files/environment.yml` to `gcpy_environment.yml` - `environment.yml` links to `docs/environment_files/gcpy_environment.yml` - `requirements.txt` links to `docs/environment_files/requirements.txt` +- Python packages for RTD documenation builds from `docs/environment_files/environment.yml` ### Fixed - CS inquiry functions in `gcpy/cstools.py` now work properly for `xr.Dataset` and `xr.DataArray` objects - Prevent an import error by using `seaborn-v0_8-darkgrid` in`gcpy/benchmark/modules/benchmark_models_vs_obs.py` ### Removed -- Python packages for RTD documenation builds from `docs/environment_files/environment.yml` - Environment file `docs/environment_files/environment.yml` - Environment file `docs/environment_files/requirements.txt` - Removed `awscli` from the GCPy environment; version 2 is no longer available on conda-forge or PyPi