-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
49 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,9 +36,9 @@ jobs: | |
echo "HOME=$(echo /Users/runner)" >> $GITHUB_ENV | ||
echo "CONDA=$(echo /usr/local/miniconda)" >> $GITHUB_ENV | ||
if: runner.os == 'MacOS' | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-latest.yml | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" stenv-latest.yml | ||
if: runner.os == 'Linux' | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-latest.yml | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" stenv-latest.yml | ||
if: runner.os == 'MacOS' | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -54,12 +54,12 @@ jobs: | |
with: | ||
path: | | ||
${{ env.HOME }}/conda_pkgs_dir | ||
${{ env.CONDA }}/envs/spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
${{ env.CONDA }}/envs/stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
key: conda-${{ runner.os }}-py${{ matrix.python }}-${{ steps.date.outputs.date }} | ||
- uses: conda-incubator/[email protected] | ||
with: | ||
activate-environment: spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: spacetelescope-env-latest.yml | ||
activate-environment: stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: stenv-latest.yml | ||
python-version: ${{ matrix.python }}.* | ||
auto-update-conda: true | ||
use-only-tar-bz2: true | ||
|
@@ -83,22 +83,22 @@ jobs: | |
echo "HOME=$(echo /Users/runner)" >> $GITHUB_ENV | ||
echo "CONDA=$(echo /usr/local/miniconda)" >> $GITHUB_ENV | ||
if: runner.os == 'MacOS' | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-latest.yml | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" stenv-latest.yml | ||
if: runner.os == 'Linux' | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-latest.yml | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" stenv-latest.yml | ||
if: runner.os == 'MacOS' | ||
- run: echo "::set-output name=date::$(date +'%Y.%m.%d')" | ||
id: date | ||
- uses: actions/[email protected] | ||
with: | ||
path: | | ||
${{ env.HOME }}/conda_pkgs_dir | ||
${{ env.CONDA }}/envs/spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
${{ env.CONDA }}/envs/stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
key: conda-${{ runner.os }}-py${{ matrix.python }}-${{ steps.date.outputs.date }} | ||
- uses: conda-incubator/[email protected] | ||
with: | ||
activate-environment: spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: spacetelescope-env-latest.yml | ||
activate-environment: stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: stenv-latest.yml | ||
python-version: ${{ matrix.python }}.* | ||
auto-update-conda: true | ||
use-only-tar-bz2: true | ||
|
@@ -146,9 +146,9 @@ jobs: | |
echo "HOME=$(echo /Users/runner)" >> $GITHUB_ENV | ||
echo "CONDA=$(echo /usr/local/miniconda)" >> $GITHUB_ENV | ||
if: runner.os == 'MacOS' | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-latest.yml | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" stenv-latest.yml | ||
if: runner.os == 'Linux' | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-latest.yml | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" stenv-latest.yml | ||
if: runner.os == 'MacOS' | ||
- run: | | ||
echo "CRDS_PATH=${{ env.HOME }}/crds_cache" >> $GITHUB_ENV | ||
|
@@ -159,12 +159,12 @@ jobs: | |
with: | ||
path: | | ||
${{ env.HOME }}/conda_pkgs_dir | ||
${{ env.CONDA }}/envs/spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
${{ env.CONDA }}/envs/stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
key: conda-${{ runner.os }}-py${{ matrix.python }}-${{ steps.date.outputs.date }} | ||
- uses: conda-incubator/[email protected] | ||
with: | ||
activate-environment: spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: spacetelescope-env-latest.yml | ||
activate-environment: stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: stenv-latest.yml | ||
python-version: ${{ matrix.python }}.* | ||
auto-update-conda: true | ||
use-only-tar-bz2: true | ||
|
@@ -220,7 +220,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
path: spacetelescope-env-distribution | ||
path: stenv | ||
- run: | | ||
echo "HOME=$(echo /home/runner)" >> $GITHUB_ENV | ||
echo "CONDA=$(echo /usr/share/miniconda)" >> $GITHUB_ENV | ||
|
@@ -229,9 +229,9 @@ jobs: | |
echo "HOME=$(echo /Users/runner)" >> $GITHUB_ENV | ||
echo "CONDA=$(echo /usr/local/miniconda)" >> $GITHUB_ENV | ||
if: runner.os == 'MacOS' | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-distribution/spacetelescope-env-latest.yml | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" stenv/stenv-latest.yml | ||
if: runner.os == 'Linux' | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-distribution/spacetelescope-env-latest.yml | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" stenv/stenv-latest.yml | ||
if: runner.os == 'MacOS' | ||
- run: | | ||
echo "CRDS_PATH=${{ env.HOME }}/crds_cache" >> $GITHUB_ENV | ||
|
@@ -242,12 +242,12 @@ jobs: | |
with: | ||
path: | | ||
${{ env.HOME }}/conda_pkgs_dir | ||
${{ env.CONDA }}/envs/spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
${{ env.CONDA }}/envs/stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
key: conda-${{ runner.os }}-py${{ matrix.python }}-${{ steps.date.outputs.date }} | ||
- uses: conda-incubator/[email protected] | ||
with: | ||
activate-environment: spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: spacetelescope-env-distribution/spacetelescope-env-latest.yml | ||
activate-environment: stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: stenv/stenv-latest.yml | ||
python-version: ${{ matrix.python }}.* | ||
auto-update-conda: true | ||
use-only-tar-bz2: true | ||
|
@@ -312,9 +312,9 @@ jobs: | |
echo "HOME=$(echo /Users/runner)" >> $GITHUB_ENV | ||
echo "CONDA=$(echo /usr/local/miniconda)" >> $GITHUB_ENV | ||
if: runner.os == 'MacOS' | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-latest.yml | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" stenv-latest.yml | ||
if: runner.os == 'Linux' | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-latest.yml | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" stenv-latest.yml | ||
if: runner.os == 'MacOS' | ||
- run: | | ||
echo "CRDS_PATH=${{ env.HOME }}/crds_cache" >> $GITHUB_ENV | ||
|
@@ -325,12 +325,12 @@ jobs: | |
with: | ||
path: | | ||
${{ env.HOME }}/conda_pkgs_dir | ||
${{ env.CONDA }}/envs/spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
${{ env.CONDA }}/envs/stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
key: conda-${{ runner.os }}-py${{ matrix.python }}-${{ steps.date.outputs.date }} | ||
- uses: conda-incubator/[email protected] | ||
with: | ||
activate-environment: spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: spacetelescope-env-latest.yml | ||
activate-environment: stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: stenv-latest.yml | ||
python-version: ${{ matrix.python }}.* | ||
auto-update-conda: true | ||
use-only-tar-bz2: true | ||
|
@@ -384,9 +384,9 @@ jobs: | |
echo "HOME=$(echo /Users/runner)" >> $GITHUB_ENV | ||
echo "CONDA=$(echo /usr/local/miniconda)" >> $GITHUB_ENV | ||
if: runner.os == 'MacOS' | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-latest.yml | ||
- run: sed -i "s/python==3.9/python==${{ matrix.python }}.*/g" stenv-latest.yml | ||
if: runner.os == 'Linux' | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" spacetelescope-env-latest.yml | ||
- run: sed -i "" "s/python==3.9/python==${{ matrix.python }}.*/g" stenv-latest.yml | ||
if: runner.os == 'MacOS' | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -399,30 +399,30 @@ jobs: | |
with: | ||
path: | | ||
${{ env.HOME }}/conda_pkgs_dir | ||
${{ env.CONDA }}/envs/spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
${{ env.CONDA }}/envs/stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
key: conda-${{ runner.os }}-py${{ matrix.python }}-${{ steps.date.outputs.date }} | ||
- uses: conda-incubator/[email protected] | ||
with: | ||
activate-environment: spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: spacetelescope-env-latest.yml | ||
activate-environment: stenv-${{ runner.os }}-py${{ matrix.python }}-latest | ||
environment-file: stenv-latest.yml | ||
python-version: ${{ matrix.python }}.* | ||
auto-update-conda: true | ||
use-only-tar-bz2: true | ||
- run: conda env export --no-builds > spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
- run: conda env export --no-builds > stenv-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
- run: | | ||
sed -i "/name:/d" spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
sed -i "/prefix:/d" spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
sed -i "/name:/d" stenv-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
sed -i "/prefix:/d" stenv-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
if: runner.os == 'Linux' | ||
- run: | | ||
sed -i "" "/name:/d" spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
sed -i "" "/prefix:/d" spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
sed -i "" "/name:/d" stenv-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
sed -i "" "/prefix:/d" stenv-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
if: runner.os == 'MacOS' | ||
- run: cat spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
- run: cat stenv-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
- uses: actions/[email protected] | ||
with: | ||
name: spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
path: spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
name: stenv-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
path: stenv-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
- uses: svenstaro/[email protected] | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
with: | ||
file: spacetelescope-env-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml | ||
file: stenv-${{ runner.os }}-py${{ matrix.python }}-${{ steps.version.outputs.version }}.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# Space Telescope Environment Distribution | ||
# `stenv` - Space Telescope Calibration Pipeline and Analysis Tools | ||
|
||
[![build](https://github.com/spacetelescope/spacetelescope-env-distribution/actions/workflows/build.yml/badge.svg)](https://github.com/spacetelescope/spacetelescope-env-distribution/actions/workflows/build.yml) | ||
[![release](https://img.shields.io/github/v/release/spacetelescope/spacetelescope-env-distribution)](https://github.com/spacetelescope/spacetelescope-env-distribution/releases) | ||
[![build](https://github.com/spacetelescope/stenv/actions/workflows/build.yml/badge.svg)](https://github.com/spacetelescope/stenv/actions/workflows/build.yml) | ||
[![release](https://img.shields.io/github/v/release/spacetelescope/stenv)](https://github.com/spacetelescope/stenv/releases) | ||
[![calver](https://img.shields.io/badge/calver-YYYY.0M.0D-22bfda.svg)](https://calver.org) | ||
|
||
> :warning: **This distribution platform is still in testing and is not yet an official release.** | ||
This repository builds YAML files that define frozen environments (sets of packages at specific versions) for an | ||
Anaconda installation. The [Releases page](https://github.com/spacetelescope/spacetelescope-env-distribution/releases) | ||
provides a YAML file for each release. | ||
Anaconda installation. The [Releases page](https://github.com/spacetelescope/stenv/releases) provides a YAML file for | ||
each release. | ||
|
||
## Installation | ||
|
||
1. install Anaconda - https://docs.conda.io/en/latest/miniconda.html | ||
2. pick a release from the [Releases page](https://github.com/spacetelescope/spacetelescope-env-distribution/releases) | ||
2. pick a release from the [Releases page](https://github.com/spacetelescope/stenv/releases) | ||
and download the accompanying YAML file | ||
3. create a new Anaconda environment from the YAML file | ||
```shell | ||
conda env create --file spacetelescope-env-macOS-py3.9-2022.08.08.yml -n spacetelescope-env-macOS-py3.9-2022.08.08 | ||
conda env create --file stenv-macOS-py3.9-2022.08.08.yml -n stenv-macOS-py3.9-2022.08.08 | ||
``` | ||
4. activate the environment | ||
```shell | ||
conda activate spacetelescope-env-macOS-py3.9-2022.08.08 | ||
conda activate stenv-macOS-py3.9-2022.08.08 | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters