Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from bird-house/initial-wps
Browse files Browse the repository at this point in the history
initial wps
  • Loading branch information
cehbrecht committed Feb 13, 2019
2 parents 212b675 + b00c76b commit c5a8f06
Show file tree
Hide file tree
Showing 53 changed files with 1,692 additions and 292 deletions.
4 changes: 4 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
exclude_paths:
- 'tests/**'
- 'docs/source/conf.py'
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
docs/
tests/
41 changes: 41 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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://pelican.readthedocs.io/en/latest/) to get started.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Description

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

## Environment

* Pelican 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.
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Overview

This PR fixes [issue id]

Changes:

* Added ...

## Related Issue / Discussion

## Additional Information

Links to other issues or sources.
160 changes: 71 additions & 89 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,104 +1,86 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# installer
#Makefile

# C extensions
*.so
# Docker
#Dockerfile

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyWPS
custom.cfg
.custom.cfg
*.pid

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Python / Extensions etc.
*~
*.mo
*.so
*.pyc
*.pyo
*.egg
*.egg-info
*.sqlite
*.bak
__pycache__

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

# Translations
*.mo
*.pot
# R
*.Rhistory

# Django stuff:
*.log
local_settings.py
db.sqlite3
# Eclipse / PyDev
.project
.pydevproject
.settings

# Flask stuff:
instance/
.webassets-cache
# PyCharm
*.idea

# Scrapy stuff:
.scrapy
# Kate
*.kate-swp

# Sphinx documentation
docs/_build/
# Sublime Text Editor
*.sublime*

# PyBuilder
target/
# 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

# Jupyter Notebook
# IPython
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
# gcc/fortran
*.o
*.a
*.mod
*.out
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
language: python
python:
- "3.6"
#branches:
# only:
# - master
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 pelican python=$TRAVIS_PYTHON_VERSION
# Update now the env with our environment
- conda env update -f environment.yml
- source activate pelican
# Packages for testing
- conda install pytest flake8
# Install WPS
- python setup.py install
before_script:
# Start WPS service on port 5000 on 0.0.0.0
- pelican start --daemon --bind-host 0.0.0.0 --port 5000
- sleep 2
script:
- pytest
- flake8
13 changes: 13 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
=======
Credits
=======

Development Lead
----------------

* Carsten Ehbrecht <ehbrecht@dkrz.de>

Contributors
------------

None yet. Why not be the first?
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Changes
*******

0.1.0 (2019-02-13)
==================

* First release.
33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# vim:set ft=dockerfile:
FROM continuumio/miniconda3
MAINTAINER https://github.com/bird-house/pelican
LABEL Description="Pelican WPS" Vendor="Birdhouse" Version="0.1.0"

# Update Debian system
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*

# Update conda
RUN conda update -n base conda

# Copy WPS project
COPY . /opt/wps

WORKDIR /opt/wps

# Create conda environment
RUN conda env create -n wps -f environment.yml

# Install WPS
RUN ["/bin/bash", "-c", "source activate wps && python setup.py develop"]

# Start WPS service on port 5000 on 0.0.0.0
EXPOSE 5000
ENTRYPOINT ["/bin/bash", "-c"]
CMD ["source activate wps && exec pelican start -b 0.0.0.0 -c /opt/wps/etc/demo.cfg"]

# docker build -t bird-house/pelican .
# docker run -p 5000:5000 bird-house/pelican
# http://localhost:5000/wps?request=GetCapabilities&service=WPS
# http://localhost:5000/wps?request=DescribeProcess&service=WPS&identifier=all&version=1.0.0

0 comments on commit c5a8f06

Please sign in to comment.