Skip to content

Commit

Permalink
Merge pull request #24 from david4096/remove_proto
Browse files Browse the repository at this point in the history
Remove proto, add error responses, setup.py
  • Loading branch information
briandoconnor authored Mar 25, 2018
2 parents 88f64a4 + e320819 commit 120cd3b
Show file tree
Hide file tree
Showing 23 changed files with 1,036 additions and 922 deletions.
99 changes: 98 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,98 @@
env
# PyCharm
.idea

# Don't include the python package's copy of the swagger
python/ga4gh/wes/workflow_execution_service.swagger.yaml

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# 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

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject

# swagger in the python directory
python/ga4gh/dos/data_objects_service.swagger.json
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: python
python:
- '2.7'
before_install:
- sudo apt-get update -qq
- pip install . --process-dependency-links
- pip install -r python/dev-requirements.txt
script:
- nosetests python
- flake8 python
- ga4gh_wes_client
deploy:
provider: pypi
on:
tags: true
user: david4096
password:
secure: LlQn8ZBAb5ekujHnoDrmzrmXaM6TpyzByNHPH4FTbbdnJ8lkDPb/ZhYvdmqrOvXPQg81/IoYKlIvP7fY9kc3oGUJ2IXhcPFqiw8njsRE5Qaebp+YppQO7C3IWGlHoZtXNtC608ZSA4x0oneNeNy+Y8KYnqKbmOlbuvrYRlNYfe9/8z7yLPH8wdmp0GyvbViedr3p7PXhtQVUKAgPpgjffZnSA7P/Y6AdkvjHHv2xMAzWP/QmOFWZNxUXjg0miR0K7eGFeGBNMM/+QsVXrGOu/TCtPtJ4JXyD86nzrZUbsOluyAblxwGlrv05se5ImVhR210OC5zvSW2902y/lxCw5uek+xg4/tcSA1ckshxLeu02GfDygCktMUtqtKVIZ+qvU7H4dEQ6Jnz9yBvZW5M6V94Ew3wBFy0RB5I9k3MMQY21FdynIUEZzBgJbOChCbmlIDT1varBHvWBiwg8EwPOVuJt1CsOoptJxUsoJND4tAOPIvXMNI17qGJ+VWAVMVNn7cVUuhEeGXwQF4urrkFBA7WIYOp6O9R8Ipg6WnQdxVdnqb3NsEc19SRdFXQ82SYibKfIZxjpdmYVgKzTYsJGMhfG6fTw9D4JABhggfgShsnByrFtbbkn/9g64jXDOjwPLeRXwXYZe6ZV6M69PDWdo0o326Qq/OHBG5eU7z2plNI=
9 changes: 0 additions & 9 deletions CWLFile

This file was deleted.

15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,16 @@ Outstanding questions:
How to view
------------

The file `swagger/workflow_execution_service.swagger.json` contains the API description.
The file `openapi/workflow_execution_service.swagger.yaml` contains the API description.

Please visit http://ga4gh.github.io/workflow-execution-service-schemas to view this document in Swagger UI.


Building Documents
------------------

Make sure you have Docker installed for your platform and the `cwltool`.

virtualenv env
source env/bin/activate
pip install -r requirements.txt

You can generate the [Swagger](http://swagger.io/) from the Protocol Buffers:

cwltool CWLFile
sh tools/prepare_openapi.sh
The OpenAPI description is in the `openapi` directory.

The resulting OpenAPI description will be in the `swagger` directory.

How to contribute changes
-------------------------
Expand Down
Loading

0 comments on commit 120cd3b

Please sign in to comment.