Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ examples/.ipynb_checkpoints/
.project
Untitled*.ipynb
*.idea/

# Extraneous files created by local editors, operting systems, etc
*~
27 changes: 18 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,19 @@ cache:

python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"

# Test against multiple version of SciPy, with and without slycot
#
# Because there were significant changes in SciPy between v0 and v1, we
# test against both of these using the Travis CI environment capability
#
# We also want to test with and without slycot
env:
- SCIPY=0.19.1 SLYCOT=
- SCIPY=0.19.1 SLYCOT=slycot
- SCIPY=1.0.0 SLYCOT=

# install required system libraries
before_install:
Expand Down Expand Up @@ -40,16 +50,15 @@ before_install:

# Install packages
install:
- conda build --python "$TRAVIS_PYTHON_VERSION" conda-recipe
- conda install control --use-local
# Install the desired version of SciPy first, w/ or w/out slycot
- conda install scipy==$SCIPY $SLYCOT
- conda install matplotlib
# Don't use conda for installation of control library [preserves scipy]
- python setup.py install

# command to run tests
script:
# Before installing Slycot
- python setup.py test

# Now, get and use Slycot
- conda install slycot
- 'if [ $SLYCOT != "" ]; then python -c "import slycot"; fi'
- coverage run setup.py test

after_success:
Expand Down
1 change: 1 addition & 0 deletions conda-recipe/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Information on how Conda recipe is set up.
6 changes: 5 additions & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package:
name: control
version: {{ GIT_DESCRIBE_TAG }}

source:
git_url: ../

build:
number: {{ GIT_DESCRIBE_NUMBER }}
script:
- cd $RECIPE_DIR/..
- $PYTHON make_version.py
- $PYTHON setup.py install --single-version-externally-managed --record=record.txt

requirements:
Expand Down
51 changes: 0 additions & 51 deletions make_version.py

This file was deleted.