summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--asteval/meta.yaml60
-rw-r--r--cubeviz/bld.bat2
-rw-r--r--cubeviz/build.sh12
-rw-r--r--cubeviz/meta.yaml43
4 files changed, 117 insertions, 0 deletions
diff --git a/asteval/meta.yaml b/asteval/meta.yaml
new file mode 100644
index 0000000..b387816
--- /dev/null
+++ b/asteval/meta.yaml
@@ -0,0 +1,60 @@
+{% set name = "asteval" %}
+{% set version = "0.9.11" %}
+{% set file_ext = "tar.gz" %}
+{% set hash_type = "sha256" %}
+{% set hash_value = "5995f1863c1685cd00df010663c15be880035a38b1e58c6340fb1d3adc499d8e" %}
+
+package:
+ name: '{{ name|lower }}'
+ version: '{{ version }}'
+
+source:
+ fn: '{{ name }}-{{ version }}.{{ file_ext }}'
+ url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.{{ file_ext }}
+ '{{ hash_type }}': '{{ hash_value }}'
+
+build:
+ number: 0
+ script: python setup.py install --single-version-externally-managed --record=record.txt
+
+requirements:
+ host:
+ - python {{ python }}
+ - setuptools
+ - numpy {{ numpy }}
+ - six
+ run:
+ - python
+ - numpy
+ - six
+
+test:
+ imports:
+ - asteval
+
+about:
+ home: http://github.com/newville/asteval
+ license: BSD License
+ license_family: BSD
+ license_file: ''
+ summary: Safe, minimalistic evaluator of python expression using ast module
+ description: 'ASTEVAL provides a numpy-aware, safe(ish) ''eval'' function
+
+
+ Emphasis is on mathematical expressions, and so numpy ufuncs
+
+ are used if available. Symbols are held in the Interpreter
+
+ symbol table ''symtable'': a simple dictionary supporting a
+
+ simple, flat namespace.
+
+
+ Expressions can be compiled into ast node for later evaluation,
+
+ using the values in the symbol table current at evaluation time.'
+ doc_url: ''
+ dev_url: ''
+
+extra:
+ recipe-maintainers: ''
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