diff --git a/.travis.yml b/.travis.yml index fc20c48..cb6821e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ jobs: - pip install pyctdev && doit miniconda_install && pip uninstall -y doit pyctdev - export PATH="$HOME/miniconda/bin:$PATH" && hash -r - conda config --set always_yes True - - conda install -c pyviz/label/dev pyctdev && doit ecosystem_setup + - conda install -c pyviz pyctdev && doit ecosystem_setup before_script: - doit env_create --name=colorcet --python=$PYENV_VERSION - source activate colorcet @@ -88,7 +88,7 @@ jobs: stage: conda_dev_package env: LABELS=$LABELS_DEV CHANS=$CHANS_DEV before_script: - - travis_wait 60 doit package_build $CHANS $PKG_TEST_PYTHON --package-name colorcet --test-group=unit + - travis_wait 60 doit package_build $CHANS $PKG_TEST_PYTHON --test-group=unit script: doit package_upload --token=$ANACONDA_TOKEN $LABELS ## release packages diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml new file mode 100644 index 0000000..24f2d68 --- /dev/null +++ b/conda.recipe/meta.yaml @@ -0,0 +1,43 @@ +{% set sdata = load_setup_py_data() %} + +package: + name: colorcet + version: {{ sdata['version'] }} + +source: + path: .. + +build: + noarch: python + script: python setup.py install --single-version-externally-managed --record=record.txt + entry_points: + {% for group,epoints in sdata.get("entry_points",{}).items() %} + {% for entry_point in epoints %} + - {{ entry_point }} + {% endfor %} + {% endfor %} + +requirements: + build: + - python {{ sdata['python_requires'] }} + {% for dep in sdata['extras_require']['build'] %} + - {{ dep }} + {% endfor %} + run: + - python {{ sdata['python_requires'] }} + {% for dep in sdata.get('install_requires',{}) %} + - {{ dep }} + {% endfor %} + +test: + imports: + - colorcet + requires: + {% for dep in sdata['extras_require']['tests'] %} + - "{{ dep }}" + {% endfor %} + +about: + home: {{ sdata['url'] }} + summary: {{ sdata['description'] }} + license: {{ sdata['license'] }}