Skip to content

Commit

Permalink
Merge pull request #99 from PyPSA/nomopyomo
Browse files Browse the repository at this point in the history
Introduce nomopyomo
  • Loading branch information
nworbmot committed Dec 19, 2019
2 parents 1e8f380 + b381048 commit 5b84f74
Show file tree
Hide file tree
Showing 26 changed files with 2,798 additions and 247 deletions.
40 changes: 15 additions & 25 deletions .travis.yml
@@ -1,34 +1,22 @@
# Modified from
# https://github.com/calliope-project/calliope/blob/master/.travis.yml

language: python
language: bash
sudo: false # Use container-based infrastructure

matrix:
include:
- env:
- PYTHON_VERSION="2.7"
- env:
- PYTHON_VERSION="3.6"
- env:
- PYTHON_VERSION="3.7"
- env:
- PYTHON_VERSION="3.8"
os:
- windows
- linux
- osx
env:
- PYTHON_VERSION="3.6"
- PYTHON_VERSION="3.7"
- PYTHON_VERSION="3.8"

before_install:
- if [[ "$PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- source $HOME/miniconda/etc/profile.d/conda.sh
- wget https://raw.githubusercontent.com/trichter/conda4travis/latest/conda4travis.sh -O conda4travis.sh
- source conda4travis.sh
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then echo " - coincbc" >> environment.yaml; fi;

install:
- conda config --add pinned_packages python=$PYTHON_VERSION
Expand All @@ -44,7 +32,9 @@ install:
# - "sh -e /etc/init.d/xvfb start"
# - sleep 3 # give xvfb some time to start

script: "make test"
script:
- py.test

# after_success:
# - coveralls

1 change: 1 addition & 0 deletions MANIFEST.in
@@ -1,5 +1,6 @@
include pypsa/component_attrs/*.csv
include pypsa/standard_types/*.csv
include pypsa/components.csv
include pypsa/variables.csv
include README.rst LICENSE.txt
include requirements.yml
248 changes: 135 additions & 113 deletions doc/optimal_power_flow.rst

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion environment.yaml
Expand Up @@ -13,5 +13,6 @@ dependencies:
- networkx>=1.10
- pyomo
- cartopy>=0.16
- coincbc
# - coincbc
- glpk
- gurobi::gurobi
1 change: 1 addition & 0 deletions environment_dev.yaml
Expand Up @@ -4,6 +4,7 @@ channels:
- conda-forge

dependencies:
- python
- pip
- pytest
- pytest-cov
Expand Down

0 comments on commit 5b84f74

Please sign in to comment.