Skip to content
Permalink
Browse files

updated repo with new cookiecutter

  • Loading branch information...
huard committed Nov 14, 2018
1 parent db2d6e3 commit fd04e2c7e358b536e96ff5bc540890f5c0f6c62e
Showing with 927 additions and 951 deletions.
  1. +4 −0 .codacy.yml
  2. +3 −0 .dockerignore
  3. +41 −0 .editorconfig
  4. +6 −0 .github/CONTRIBUTING.md
  5. +19 −0 .github/ISSUE_TEMPLATE.md
  6. +13 −0 .github/PULL_REQUEST_TEMPLATE.md
  7. +86 −0 .gitignore
  8. +34 −0 .travis.yml
  9. +1 −1 CHANGES.rst
  10. +23 −37 Dockerfile
  11. +3 −2 MANIFEST.in
  12. +63 −224 Makefile
  13. +0 −3 Makefile.config.example
  14. +0 −67 bootstrap.sh
  15. +0 −107 buildout.cfg
  16. +0 −18 custom.cfg.example
  17. +10 −9 docker-compose.yml
  18. +1 −1 docs/Makefile
  19. +79 −0 docs/source/_static/birdhouse_logo.svg
  20. BIN docs/source/_static/favicon.ico
  21. +14 −10 docs/source/conf.py
  22. +36 −9 docs/source/configuration.rst
  23. +82 −0 docs/source/dev_guide.rst
  24. +2 −0 docs/source/index.rst
  25. +65 −47 docs/source/installation.rst
  26. +15 −0 docs/source/processes.rst
  27. +4 −30 environment.yml
  28. +2 −0 etc/debug.cfg
  29. +2 −0 etc/demo.cfg
  30. +6 −0 etc/sample-custom.cfg
  31. +3 −0 etc/sample-postgres.cfg
  32. +0 −1 finch/__init__.py
  33. +0 −1 finch/_compat.py
  34. +116 −45 finch/cli.py
  35. +2 −2 finch/default.cfg
  36. +0 −3 finch/finch.py
  37. +2 −4 finch/processes/__init__.py
  38. +0 −150 finch/processes/wps_inout.py
  39. +45 −0 finch/processes/wps_say_hello.py
  40. +0 −60 finch/processes/wps_wordcounter.py
  41. +27 −0 finch/templates/pywps.cfg
  42. +0 −17 finch/tests/common.py
  43. +0 −18 finch/tests/test_wps_inout.py
  44. +0 −19 finch/tests/test_wps_wordcounter.py
  45. +0 −31 finch/tests/test_wps_xclim_indices.py
  46. +3 −5 finch/wsgi.py
  47. +8 −0 readthedocs.yml
  48. +2 −1 requirements.txt
  49. +4 −2 requirements_dev.txt
  50. +33 −19 setup.cfg
  51. +4 −6 setup.py
  52. 0 {finch → }/tests/__init__.py
  53. +45 −0 tests/common.py
  54. 0 {finch → }/tests/test.cfg
  55. +2 −2 {finch → }/tests/test_wps_caps.py
  56. +17 −0 tests/test_wps_hello.py
@@ -0,0 +1,4 @@
---
exclude_paths:
- 'tests/**'
- 'docs/source/conf.py'
@@ -0,0 +1,3 @@
.git
docs/
tests/
@@ -0,0 +1,41 @@
# http://editorconfig.org

root = true

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

# Docstrings and comments use max_line_length = 79
[*.py]
max_line_length = 120

# Use 2 spaces for the HTML files
[*.html]
indent_size = 2

# The JSON files contain newlines inconsistently
[*.json]
indent_size = 2
insert_final_newline = ignore

[**/admin/js/vendor/**]
indent_style = ignore
indent_size = ignore

# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

# Batch files use tabs for indentation
[*.bat]
indent_style = tab
@@ -0,0 +1,6 @@
# Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

Please read the Birdhouse [Contributer Guide](http://birdhouse.readthedocs.io/en/latest/contributing.html)
and the [Cookiecutter Documentation](http://finch.readthedocs.io/en/latest/) to get started.
@@ -0,0 +1,19 @@
## Description

Describe what you were trying to get done or your feature request.

## Environment

* Finch version used, if any:
* Python version, if any:
* Operating System:

## Steps to Reproduce

```
Paste the command(s) you ran and the output.
```

## Additional Information

Links to other issues or sources.
@@ -0,0 +1,13 @@
## Overview

This PR fixes [issue id]

Changes:

* Added ...

## Related Issue / Discussion

## Additional Information

Links to other issues or sources.
@@ -0,0 +1,86 @@
# installer
#Makefile

# Docker
#Dockerfile

# PyWPS
custom.cfg
.custom.cfg
*.pid

# Python / Extensions etc.
*~
*.mo
*.so
*.pyc
*.pyo
*.egg
*.egg-info
*.sqlite
*.bak
__pycache__

# Unit test / Coverage reports
.cache
.pytest_cache
.coverage
.tox
nosetests.xml
unit_tests/testdata.json

# R
*.Rhistory

# Eclipse / PyDev
.project
.pydevproject
.settings

# PyCharm
*.idea

# Kate
*.kate-swp

# Sublime Text Editor
*.sublime*

# buildout
bin
develop-eggs
eggs
parts
build
dist
downloads
.installed.cfg
.mr.developer.cfg
bootstrap-buildout.py
bootstrap.py
#generated by buildout

# sphinx
#docs/Makefile
docs/make.bat
docs/doctrees/
docs/html/
docs/build/

# External Sources
#src/external
src/

# tests
*.log
*.lock
testdata.json

# IPython
.ipynb_checkpoints

# gcc/fortran
*.o
*.a
*.mod
*.out
@@ -0,0 +1,34 @@
language: python
python:
- "2.7"
- "3.6"
os:
- linux
# - osx
sudo: false
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 update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Prepare env with Python version
- conda create -n finch python=$TRAVIS_PYTHON_VERSION
# Update now the env with our environment
- conda env update -f environment.yml
- source activate finch
# Packages for testing
- conda install pytest flake8
# Install Emu WPS
- python setup.py install
before_script:
# Start WPS service on port 5000 on 0.0.0.0
- finch start --daemon --bind-host 0.0.0.0 --port 5000
- sleep 2
script:
- pytest
- flake8
@@ -1,7 +1,7 @@
Changes
*******

0.1.0 (2018-04-16)
0.1.0 (2018-11-14)
==================

* First release.
@@ -1,47 +1,33 @@
# vim:set ft=dockerfile:
FROM birdhouse/bird-base:latest
FROM continuumio/miniconda3
MAINTAINER https://github.com/bird-house/finch
LABEL Description="Finch WPS" Vendor="Birdhouse" Version="0.1.0"

LABEL Description="finch WPS" Vendor="Birdhouse"
# Update Debian system
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*

# Configure hostname and ports for services
ENV HTTP_PORT 5000
ENV OUTPUT_PORT 8000
ENV HOSTNAME localhost
# Update conda
RUN conda update -n base conda

# Set current home
ENV HOME /root
# Copy WPS project
COPY . /opt/wps

# Copy application sources
COPY . /opt/birdhouse/src/finch
WORKDIR /opt/wps

# cd into application
WORKDIR /opt/birdhouse/src/finch
# Create conda environment
RUN conda env create -n wps -f environment.yml

# Provide custom.cfg with settings for docker image
COPY .docker.cfg custom.cfg
# Install WPS
RUN ["/bin/bash", "-c", "source activate wps && python setup.py develop"]

# Install system dependencies
RUN bash bootstrap.sh -i
# Start WPS service on port 5000 on 0.0.0.0
EXPOSE 5000
ENTRYPOINT ["/bin/bash", "-c"]
CMD ["source activate wps && exec emu start -b 0.0.0.0 -config /opt/wps/etc/demo.cfg"]

# Set conda enviroment
ENV ANACONDA_HOME /opt/conda
ENV CONDA_ENVS_DIR /opt/conda/envs

# Run install and fix permissions
RUN make clean install && chmod 755 /opt/birdhouse/etc && chmod 755 /opt/birdhouse/var/run

# Volume for data, cache, logfiles, ...
VOLUME /opt/birdhouse/var/lib
VOLUME /opt/birdhouse/var/log
# Volume for configs
VOLUME /opt/birdhouse/etc

# Ports used in birdhouse
EXPOSE $HTTP_PORT $OUTPUT_PORT

# Start supervisor in foreground
ENV DAEMON_OPTS --nodaemon

# Start service ...
CMD ["make", "update-config", "start"]
# docker build -t bird-house/finch .
# docker run -p 5000:5000 bird-house/finch
# http://localhost:5000/wps?request=GetCapabilities&service=WPS
# http://localhost:5000/wps?request=DescribeProcess&service=WPS&identifier=all&version=1.0.0
@@ -1,5 +1,6 @@
include Makefile
include *.txt
include *.rst
recursive-include finch *
global-exclude * __pycache__
global-exclude * *.py[co]
global-exclude __pycache__
global-exclude *.py[co]

0 comments on commit fd04e2c

Please sign in to comment.
You can’t perform that action at this time.