From 77d8d771457feb1e9dd4526dc1391913f5a64c5e Mon Sep 17 00:00:00 2001 From: Julia Signell Date: Wed, 28 Aug 2019 11:57:41 -0400 Subject: [PATCH] Use release version of pyctdev (#37) * Use released version of pyctdev * Removing package-name arg * nbsite -> colorcet --- .travis.yml | 4 ++-- conda.recipe/meta.yaml | 43 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 conda.recipe/meta.yaml 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'] }}