diff --git a/.github/workflows/check-compset-aliases.yml b/.github/workflows/check-compset-aliases.yml index bdafb7aa9b..ccad0dba3d 100644 --- a/.github/workflows/check-compset-aliases.yml +++ b/.github/workflows/check-compset-aliases.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Checkout submodules run: | diff --git a/.github/workflows/check-testlists.yml b/.github/workflows/check-testlists.yml index 172fa6d2f5..6567c08a40 100644 --- a/.github/workflows/check-testlists.yml +++ b/.github/workflows/check-testlists.yml @@ -17,20 +17,23 @@ on: - 'cime_config/testdefs/testlist_clm.xml' - '.github/workflows/check-testlists.yml' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + jobs: testlist-supertestlists: runs-on: ubuntu-latest steps: # Checkout the code - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Set up the conda environment - - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages run: conda list diff --git a/.github/workflows/docker-image-build-publish.yml b/.github/workflows/docker-image-build-publish.yml index d22ab701e6..d3c382a4d6 100644 --- a/.github/workflows/docker-image-build-publish.yml +++ b/.github/workflows/docker-image-build-publish.yml @@ -39,14 +39,15 @@ jobs: packages: write attestations: write id-token: write + artifact-metadata: write steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -54,18 +55,16 @@ jobs: # This step sets up Docker Buildx, which is needed for the multi-platform build in the next step # https://docs.docker.com/build/ci/github-actions/multi-platform/ - # v3.1.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 # This step uses the `docker/build-push-action` action to build the image, based on the ctsm-docs `Dockerfile`. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. # Note that we should avoid relying on the "latest" tag for anything, but it's good practice to have one. - # v6.15.0 - name: Push Docker image id: push - uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: context: doc/ctsm-docs_container platforms: linux/amd64,linux/arm64 @@ -78,7 +77,7 @@ jobs: # This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see [Using artifact attestations to establish provenance for builds](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). - name: Generate artifact attestation - uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2 + uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2 with: subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} subject-digest: ${{ steps.push.outputs.digest }} diff --git a/.github/workflows/docker-image-common.yml b/.github/workflows/docker-image-common.yml index 86de4fc2f2..82ac552772 100644 --- a/.github/workflows/docker-image-common.yml +++ b/.github/workflows/docker-image-common.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Ensure that the repository part of IMAGE_NAME is lowercase. This is needed because Docker requires image names to be entirely lowercase. Note that the *image name* part, set as IMAGE_BASENAME in the env block above, is *not* converted. This will cause the check-version job to fail if the IMAGE_BASENAME contains capitals. We don't want to silently fix that here; rather, we require the user to specify a lowercase IMAGE_BASENAME. - name: Get image name with lowercase repo @@ -46,7 +46,7 @@ jobs: # Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -55,17 +55,16 @@ jobs: # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels. - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0 with: images: ${{ env.REGISTRY }}/${{ steps.set-image-name.outputs.IMAGE_NAME }} # This step uses the `docker/build-push-action` action to build the image, based on the ctsm-docs `Dockerfile`. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. - # v6.15.0 - name: Build Docker image id: build-image - uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: context: doc/ctsm-docs_container push: false diff --git a/.github/workflows/docker-image-get-version.yml b/.github/workflows/docker-image-get-version.yml index c405b861b5..5e728cbd85 100644 --- a/.github/workflows/docker-image-get-version.yml +++ b/.github/workflows/docker-image-get-version.yml @@ -42,7 +42,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Get version number from Dockerfile and check it id: get-check-version diff --git a/.github/workflows/docs-build-and-deploy.yml b/.github/workflows/docs-build-and-deploy.yml index f004f688b1..ad8700c822 100644 --- a/.github/workflows/docs-build-and-deploy.yml +++ b/.github/workflows/docs-build-and-deploy.yml @@ -46,13 +46,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: # Get all history, ensuring all branches are available for checkout fetch-depth: 0 - name: Setup Pages - uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5 + uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 # Check out all submodules because we might :literalinclude: something from one - name: Checkout all submodules @@ -66,11 +66,11 @@ jobs: ./build_docs_to_publish -d --site-root https://escomp.github.io/CTSM - name: Upload artifact - uses: actions/upload-pages-artifact@0252fc4ba7626f0298f0cf00902a25c6afc77fa8 # v3 + uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: # Upload publish dir path: 'doc/_publish' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@f33f41b675f0ab2dc5a6863c9a170fe83af3571e # v4 + uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 diff --git a/.github/workflows/docs-common.yml b/.github/workflows/docs-common.yml index 974cb489e2..d2e157e327 100644 --- a/.github/workflows/docs-common.yml +++ b/.github/workflows/docs-common.yml @@ -21,7 +21,7 @@ jobs: build-docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 lfs: true @@ -35,12 +35,12 @@ jobs: # Based on https://github.com/actions/cache/blob/main/examples.md#python---pip - name: Install python if: ${{ ! inputs.use_conda }} - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: - python-version: '3.13.2' # needs to be coordinated with version in python/conda_env_ctsm_py.yml + python-version: '3.13.13' # needs to be coordinated with version in python/conda_env_ctsm_py.yml - name: Cache pip if: ${{ ! inputs.use_conda }} - uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('doc/ctsm-docs_container/requirements.txt') }} @@ -54,15 +54,15 @@ jobs: # Do this if using conda - name: Set up conda environment if: ${{ inputs.use_conda }} - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages - run: conda list + run: ${{ inputs.use_conda && 'conda list' || 'pip list' }} - name: Build Sphinx docs with makefile run: | diff --git a/.github/workflows/docs-omnibus.yml b/.github/workflows/docs-omnibus.yml index f698478ef3..231e6e66c7 100644 --- a/.github/workflows/docs-omnibus.yml +++ b/.github/workflows/docs-omnibus.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 lfs: true @@ -36,12 +36,12 @@ jobs: # Set up conda - name: Set up conda environment - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages run: conda list diff --git a/.github/workflows/docs-pr-failure-post-comment.yml b/.github/workflows/docs-pr-failure-post-comment.yml index 2a8928b28c..83c9e5d9c6 100644 --- a/.github/workflows/docs-pr-failure-post-comment.yml +++ b/.github/workflows/docs-pr-failure-post-comment.yml @@ -35,7 +35,7 @@ jobs: - name: Download logs if: steps.check.outputs.found == 'true' - uses: actions/download-artifact@v4 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: ${{ env.DOCS_FAILURE_ARTIFACT }} path: ${{ env.DOCS_FAILURE_ARTIFACT }} diff --git a/.github/workflows/docs-update-ctsm_pylib.yml b/.github/workflows/docs-update-ctsm_pylib.yml index 18d703a4f7..e4bd1800a3 100644 --- a/.github/workflows/docs-update-ctsm_pylib.yml +++ b/.github/workflows/docs-update-ctsm_pylib.yml @@ -55,10 +55,10 @@ jobs: contents: read issues: write steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Create issue - uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 + uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2.9.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/docs-update-dependency-common.yml b/.github/workflows/docs-update-dependency-common.yml index 37adc0ff98..d6498f1e72 100644 --- a/.github/workflows/docs-update-dependency-common.yml +++ b/.github/workflows/docs-update-dependency-common.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 lfs: true @@ -38,12 +38,12 @@ jobs: bin/git-fleximod update -o - name: Set up conda environment - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages run: conda list @@ -56,7 +56,7 @@ jobs: makefile-method: runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 lfs: true @@ -67,12 +67,12 @@ jobs: bin/git-fleximod update -o - name: Set up conda environment - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ${{ inputs.conda_env_name }} environment-file: ${{ inputs.conda_env_file }} channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Check that Makefile method works run: | diff --git a/.github/workflows/docs-update-doc-builder.yml b/.github/workflows/docs-update-doc-builder.yml index 1194e1c153..a5ea9477ca 100644 --- a/.github/workflows/docs-update-doc-builder.yml +++ b/.github/workflows/docs-update-doc-builder.yml @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 lfs: true diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b1a5ce9250..1c6c36076e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -55,7 +55,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Check out all submodules because we might :literalinclude: something from one - name: Checkout all submodules @@ -82,7 +82,7 @@ jobs: - name: Upload logs on failure if: failure() && steps.build-docs.outcome == 'failure' - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: test-build-docs-container_failed path: build-logs/ @@ -94,7 +94,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Disallow fake degree signs if: always() diff --git a/.github/workflows/fleximod_test.yaml b/.github/workflows/fleximod_test.yaml index d85958f972..bea1aaefb0 100644 --- a/.github/workflows/fleximod_test.yaml +++ b/.github/workflows/fleximod_test.yaml @@ -9,6 +9,9 @@ on: branches: ['*'] pull_request: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + jobs: fleximod-test: runs-on: ubuntu-latest @@ -19,7 +22,7 @@ jobs: python-version: ["3.7", "3.x"] steps: - id: checkout-CTSM - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - id: run-fleximod run: | $GITHUB_WORKSPACE/bin/git-fleximod update -o diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index a6b0af2b2a..1440729ea9 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -17,12 +17,15 @@ on: - 'cime_config/buildlib/**' - 'cime_config/buildnml/**' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + jobs: python-unit-tests: runs-on: ubuntu-latest steps: # Checkout the code - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: lfs: true @@ -32,12 +35,12 @@ jobs: bin/git-fleximod update cime # Set up the conda environment - - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages run: conda list @@ -52,15 +55,15 @@ jobs: runs-on: ubuntu-latest steps: # Checkout the code - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Set up the conda environment - - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 + - uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0 with: activate-environment: ctsm_pylib environment-file: python/conda_env_ctsm_py.yml channels: conda-forge - auto-activate-base: false + auto-activate: false - name: Print installed Python packages run: conda list diff --git a/.github/workflows/xml-check.yml b/.github/workflows/xml-check.yml index d944222dfc..aa87714306 100644 --- a/.github/workflows/xml-check.yml +++ b/.github/workflows/xml-check.yml @@ -2,17 +2,17 @@ name: Check that XML files are well-formed # Only check files in our repo that AREN'T in submodules # Use a Python command to check each file because xmllint isn't available on GH runners -on: [push, pull_request] # Trigger on push or pull request +on: [push, pull_request, workflow_dispatch] # Trigger on push or pull request, or manually jobs: check-xml: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Python - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: '3.x' diff --git a/doc/ctsm-docs_container/Dockerfile b/doc/ctsm-docs_container/Dockerfile index c38a384f80..22937da769 100644 --- a/doc/ctsm-docs_container/Dockerfile +++ b/doc/ctsm-docs_container/Dockerfile @@ -2,7 +2,7 @@ # A base linux install + packages for building CTSM documentation # ################################################################### -FROM python:3.13.2-alpine +FROM python:3.13.13-alpine # Update the default packages and install some other necessary ones RUN apk update @@ -29,4 +29,4 @@ CMD ["/bin/bash", "-l"] LABEL org.opencontainers.image.title="Container for building CTSM documentation" LABEL org.opencontainers.image.source=https://github.com/ESCOMP/CTSM -LABEL org.opencontainers.image.version="v2.0.1a" +LABEL org.opencontainers.image.version="v2.0.2" diff --git a/py_env_create b/py_env_create index cf34131e41..ac59a1d169 100755 --- a/py_env_create +++ b/py_env_create @@ -17,9 +17,9 @@ cd "${SCRIPT_DIR}" condadir="${SCRIPT_DIR}/python" default_new_env_name=ctsm_pylib -default_old_env_name=ctsm_pylib_3_7_9 +default_old_env_name=ctsm_pylib_3_13_2 default_condafile="${condadir}/conda_env_ctsm_py.yml" -default_condafile_old="${condadir}/conda_env_ctsm_py_old_3.7.9.yml" +default_condafile_old="${condadir}/conda_env_ctsm_py_old_3.13.2.yml" condafile="${default_condafile}" quiet="" @@ -109,7 +109,7 @@ usage() { echo "[-o|--overwrite] " echo " Overwrite existing env with same name, if any. Incompatible with -r/--rename-existing." echo "[--old] " - echo " Install the previous version of ctsm_pylib (Python 3.7.9). Changes these to old-version defaults:" + echo " Install the previous version of ctsm_pylib. Changes these to old-version defaults:" echo " env name: ${default_old_env_name}" echo " file: ${default_condafile_old}" echo "[-q|--quiet] " diff --git a/python/conda_env_ctsm_py.yml b/python/conda_env_ctsm_py.yml index 13dec57601..66a739186d 100644 --- a/python/conda_env_ctsm_py.yml +++ b/python/conda_env_ctsm_py.yml @@ -4,7 +4,7 @@ channels: - conda-forge - defaults dependencies: - - python=3.13.2 + - python=3.13.13 - dask=2025.7.0 - xarray=2025.1.2 - tqdm=4.67.1 diff --git a/python/conda_env_ctsm_py_old_3.13.2.yml b/python/conda_env_ctsm_py_old_3.13.2.yml new file mode 100644 index 0000000000..80e3d0ae22 --- /dev/null +++ b/python/conda_env_ctsm_py_old_3.13.2.yml @@ -0,0 +1,36 @@ +# This file is used by py_env_create to install a previous version of the ctsm_pylib environment, +# which used Python 3.13.2. Doing so is only useful for running CTSM python tools in repos from +# before the subsequent ctsm_pylib version (with Python 3.13.13) was introduced. +# +name: ctsm_pylib_3_13_2 +channels: + - conda-forge + - defaults +dependencies: + - python=3.13.2 + - dask=2025.7.0 + - xarray=2025.1.2 + - tqdm=4.67.1 + - scipy=1.15.2 + - netcdf4=1.7.2 + - requests=2.32.3 + - xesmf=0.8.8 + - numba=0.61.0 + - pylint=3.3.4 + - black=25.1.0 + - cartopy=0.24.0 + - matplotlib=3.10.1 + - compliance-checker=6.1.0 + - pip=25.0.1 + + # For VS code + # fortls used in FORTRAN-IntelliSense extension, add path to fortls below to the VS setting fort-ls.executablePath + - fortls=3.2.2 + + # For building docs + - pip: + - -r ../doc/ctsm-docs_container/requirements.txt + + # Used in ctsm_postprocessing repo + - pytest=8.3.5 + - coverage=7.8.0 diff --git a/python/conda_env_ctsm_py_old_3.7.9.yml b/python/conda_env_ctsm_py_old_3.7.9.yml index e77bab7634..0e329b84d4 100644 --- a/python/conda_env_ctsm_py_old_3.7.9.yml +++ b/python/conda_env_ctsm_py_old_3.7.9.yml @@ -1,6 +1,6 @@ -# This file is used by py_env_create to install the previous version of the ctsm_pylib environment, +# This file is used by py_env_create to install a previous version of the ctsm_pylib environment, # which used Python 3.7.9. Doing so is only useful for running CTSM python tools in repos from -# before the new ctsm_pylib version (with Python 3.13.2) was introduced. +# before the subsequent ctsm_pylib version (with Python 3.13.2) was introduced. # name: ctsm_pylib_3_7_9 channels: