diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2020-03-31 11:31:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 11:31:44 -0400 |
commit | 3b2cdc79999623ebad6a18b6df19091048d3adbf (patch) | |
tree | 24da5d1d770aaab4dadfe0f3b50a87a4f971ce42 | |
parent | 9126eb7acdafc36b7187dc9880bccf6af8fecbd9 (diff) | |
download | astroconda-contrib-3b2cdc79999623ebad6a18b6df19091048d3adbf.tar.gz |
Initial commit of jdat_notebooks (#633)
* Initial commit of jdat_notebooks
* Added initial semantic version
* Minor improvements:
* Increase verbosity
* Exclude .git* related files in destination
* Include environment.yml in destination
Co-authored-by: Joseph Curtin <jbcurtincode@gmail.com>
-rw-r--r-- | jdat_notebooks/build.sh | 14 | ||||
-rw-r--r-- | jdat_notebooks/meta.yaml | 19 |
2 files changed, 33 insertions, 0 deletions
diff --git a/jdat_notebooks/build.sh b/jdat_notebooks/build.sh new file mode 100644 index 0000000..504db62 --- /dev/null +++ b/jdat_notebooks/build.sh @@ -0,0 +1,14 @@ +if [[ -z ${PKG_NAME} ]]; then + echo "Conda build has changed out from under you. PKG_NAME is undefined..." + exit 1 +fi + +dest="${PREFIX}/share/${PKG_NAME}" +usedir="$(pwd)" + +if [[ -d ${usedir}/work ]]; then + usedir=${usedir}/work +fi + +mkdir -p "${dest}" +rsync -av --exclude '.git*' "${usedir}"/environment.yml "${usedir}"/notebooks/ "${dest}"/ diff --git a/jdat_notebooks/meta.yaml b/jdat_notebooks/meta.yaml new file mode 100644 index 0000000..f374969 --- /dev/null +++ b/jdat_notebooks/meta.yaml @@ -0,0 +1,19 @@ +{% set name = 'jdat_notebooks' %} +{% set version = '0.1.0' %} +{% set number = '0' %} + +about: + home: https://github.com/spacetelscope/{{ name }} + license: BSD + summary: Collection of JWST Data Analysis Tools notebooks + +build: + number: {{ number }} + +package: + name: {{ name }} + version: {{ version }} + +source: + git_tag: {{ version }} + git_url: https://github.com/spacetelescope/{{ name }}.git |