-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from bird-house/setup-cruft-to-refresh-from-c…
…ookiecutter Setup cruft to refresh from cookiecutter. This PR is part of issue bird-house/cookiecutter-birdhouse#61, rolling out cruft as a mechanism to easily update cookiecutter template changes to existing project. Require cookiecutter-birdhouse PR bird-house/cookiecutter-birdhouse#89 Noticeable changes: * Docs testing also enabled in Travis-CI * Use `make develop` in Travis-CI instead of manual install * ReadTheDocs build changed to use minimal `environment-docs.yml` and mock import Travis-CI build working: https://travis-ci.org/github/bird-house/emu/builds/694623148 RtD build working: https://readthedocs.org/projects/emu/builds/11184100/
- Loading branch information
Showing
24 changed files
with
267 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
--- | ||
engines: | ||
pylint: | ||
enabled: true | ||
python_version: 3 | ||
exclude_paths: | ||
- 'tests/**' | ||
- 'docs/source/conf.py' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"template": "https://github.com/bird-house/cookiecutter-birdhouse.git", | ||
"commit": "73eee18ca4a16763335d18ed9512cc617fbcc777", | ||
"skip": [ | ||
"emu/processes/wps_say_hello.py", | ||
"tests/test_wps_hello.py", | ||
"docs/source/notebooks/example.ipynb", | ||
"environment.yml", | ||
"requirements.txt", | ||
"AUTHORS.rst", | ||
"CHANGES.rst", | ||
"docs/source/notebooks/index.rst", | ||
"docs/source/processes.rst", | ||
"emu/processes/__init__.py", | ||
"tests/test_wps_caps.py" | ||
], | ||
"context": { | ||
"cookiecutter": { | ||
"full_name": "Carsten Ehbrecht", | ||
"email": "ehbrecht@dkrz.de", | ||
"github_username": "bird-house", | ||
"project_name": "Emu", | ||
"project_slug": "emu", | ||
"project_repo_name": "emu", | ||
"project_readthedocs_name": "emu", | ||
"project_short_description": "WPS processes for testing and demos.", | ||
"version": "0.11.1", | ||
"open_source_license": "Apache Software License 2.0", | ||
"http_port": "5000", | ||
"_copy_without_render": [ | ||
"{{cookiecutter.project_slug}}/templates/*.cfg" | ||
], | ||
"_template": "https://github.com/bird-house/cookiecutter-birdhouse.git" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
# Build documentation with MkDocs | ||
#mkdocs: | ||
# configuration: mkdocs.yml | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
formats: all | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
#python: | ||
# version: 3.6 | ||
|
||
conda: | ||
environment: environment-docs.yml | ||
|
||
build: | ||
image: stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,40 @@ | ||
dist: xenial # required for Python >= 3.7 | ||
language: python | ||
os: | ||
- linux | ||
python: | ||
- "3.6" | ||
- "3.7" | ||
os: | ||
- linux | ||
# - osx | ||
sudo: false | ||
before_install: | ||
# Useful for debugging Travis CI environment | ||
- printenv | ||
install: | ||
# Python 3.x is default | ||
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | ||
- 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 install setuptools | ||
- conda update -q conda | ||
# Useful for debugging any issues with conda | ||
- conda info -a | ||
# Prepare env with Python version | ||
- conda create -n emu python=$TRAVIS_PYTHON_VERSION | ||
- conda create -n emu -c conda-forge python=$TRAVIS_PYTHON_VERSION | ||
# Update now the env with our environment | ||
- conda env update -f environment.yml | ||
- source activate emu | ||
# Packages for testing | ||
- conda install pytest flake8 | ||
# Install WPS | ||
- python setup.py install | ||
# Packages for testing, generating docs and installing WPS | ||
- make develop | ||
before_script: | ||
# Start WPS service on port 5000 on 0.0.0.0 | ||
- emu start --daemon --bind-host 0.0.0.0 --port 5000 | ||
- sleep 2 | ||
script: | ||
- pytest -v -m 'not online' tests/ | ||
# No notebooks in emu yet. | ||
#- make test-notebooks | ||
- flake8 | ||
- make docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
version: '3' | ||
services: | ||
emu: | ||
wps: | ||
# http://localhost:5000/wps | ||
build: . | ||
image: birdhouse/emu:dev | ||
|
Oops, something went wrong.