Skip to content

Commit

Permalink
change name (#32)
Browse files Browse the repository at this point in the history
* change name to `stenv`
  • Loading branch information
zacharyburnett authored Aug 2, 2022
1 parent e091c25 commit dd0b60f
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 49 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
16 changes: 8 additions & 8 deletions README.md
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.
2 changes: 1 addition & 1 deletion tests/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import yaml
from packaging.version import Version

ENVIRONMENT_FILENAME = Path(__file__).parent.parent / "spacetelescope-env-latest.yml"
ENVIRONMENT_FILENAME = Path(__file__).parent.parent / "stenv-latest.yml"
DEPENDENCY_PATTERN = re.compile(r"([\w\d-]+)\s*((?:[<>=~]=?|\^)\s*[\d\w.]*)?")
MINIMUM_DEPENDENCY_PATTERN = re.compile(r".*>=?\s*([\d\w.]+).*")

Expand Down

0 comments on commit dd0b60f

Please sign in to comment.