Skip to content

Commit

Permalink
Use release version of pyctdev (#37)
Browse files Browse the repository at this point in the history
* Use released version of pyctdev

* Removing package-name arg

* nbsite -> colorcet
  • Loading branch information
jsignell committed Aug 28, 2019
1 parent e0ff3c7 commit 77d8d77
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
43 changes: 43 additions & 0 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -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'] }}

0 comments on commit 77d8d77

Please sign in to comment.