Skip to content

Commit

Permalink
Merge pull request #7 from jacquelinegarrahan/build_cleanup
Browse files Browse the repository at this point in the history
BUG: Fix missing anaconda install and conda build meta.yaml
  • Loading branch information
jacquelinegarrahan authored Aug 14, 2020
2 parents 30c7dfe + 9568f94 commit 5c77b45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,19 @@ install:
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda config --set channel_priority strict
- conda config --append channels jrgarrahan # temporary lume-model fix
- conda install conda-build anaconda-client
- conda update -q conda conda-build

# log info for debugging
- conda info -a

# install conda build
- conda install conda-build

# create build & add to channel
- conda build -q conda-recipe --python=$TRAVIS_PYTHON_VERSION --output-folder bld-dir
- conda config --add channels "file://`pwd`/bld-dir"

# create env
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file dev-requirements.txt

- conda activate test-environment

script:
Expand Down
11 changes: 7 additions & 4 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{% set data = load_setup_py_data(setup_file='../setup.py', from_recipe_dir=True) %}

package:
name: "lume-model"
version: "0.2"

source:
path: ..
version: {{ data.get('version') }}

build:
noarch: python
number: 0

source:
path: ..


requirements:
host:
- python
Expand Down

0 comments on commit 5c77b45

Please sign in to comment.