summaryrefslogtreecommitdiff
path: root/cubeviz
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2017-12-22 14:11:21 -0500
committerGitHub <noreply@github.com>2017-12-22 14:11:21 -0500
commit9fe77b5a5fd60900291b5ec41bd92a18012dc623 (patch)
treeab786434031f4df994f2c2d8867081d876629a8b /cubeviz
parentf3eea92c754ece7932ba767dd8b04925f6769411 (diff)
downloadastroconda-contrib-9fe77b5a5fd60900291b5ec41bd92a18012dc623.tar.gz
Contrib cubeviz & asteval (#293)
* Initial commit of cubeviz * Initial commit of asteval
Diffstat (limited to 'cubeviz')
-rw-r--r--cubeviz/bld.bat2
-rw-r--r--cubeviz/build.sh12
-rw-r--r--cubeviz/meta.yaml43
3 files changed, 57 insertions, 0 deletions
diff --git a/cubeviz/bld.bat b/cubeviz/bld.bat
new file mode 100644
index 0000000..760380e
--- /dev/null
+++ b/cubeviz/bld.bat
@@ -0,0 +1,2 @@
+
+%PYTHON% setup.py install
diff --git a/cubeviz/build.sh b/cubeviz/build.sh
new file mode 100644
index 0000000..51994e4
--- /dev/null
+++ b/cubeviz/build.sh
@@ -0,0 +1,12 @@
+# Replace malformed pytest requirement with something sane
+pytest_pattern='s/pytest==/pytest>=/'
+glue_pattern='s/glueviz//'
+numpy_pattern='s|numpy>=1.13|numpy>=1.12|'
+
+for f in setup.*
+do
+ sed -e ${pytest_pattern} -e ${glue_pattern} -e ${numpy_pattern} "${f}" > "${f}.new"
+ mv "${f}.new" "${f}"
+done
+
+$PYTHON setup.py install
diff --git a/cubeviz/meta.yaml b/cubeviz/meta.yaml
new file mode 100644
index 0000000..b2a18e3
--- /dev/null
+++ b/cubeviz/meta.yaml
@@ -0,0 +1,43 @@
+{% set name = 'cubeviz' %}
+{% set version = '0.0.2' %}
+{% set number = '0' %}
+
+about:
+ home: https://github.com/spacetelescope/{{ name }}
+ license: BSD
+ summary: Data analysis package for cubes.
+
+build:
+ number: {{ number }}
+
+package:
+ name: {{ name }}
+ version: {{ version }}
+
+requirements:
+ build:
+ - asdf
+ - asteval
+ - astropy
+ - glueviz
+ - numpy {{ numpy }}
+ - pytest
+ - setuptools
+ - python {{ python }}
+
+ run:
+ - asdf
+ - asteval
+ - astropy
+ - glueviz
+ - numpy
+ - pytest
+ - python
+
+source:
+ git_tag: {{ version }}
+ git_url: https://github.com/spacetelescope/{{ name }}.git
+
+test:
+ imports:
+ - cubeviz