Skip to content

Commit

Permalink
Merge 272651c into 08b3a8d
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeddy committed Aug 11, 2018
2 parents 08b3a8d + 272651c commit 70ddc28
Show file tree
Hide file tree
Showing 20 changed files with 563 additions and 852 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ docs/_build/
# PyBuilder
target/

# PyCharm
.idea/

# Jupyter Notebook
.ipynb_checkpoints

Expand Down
30 changes: 5 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,15 @@ language: python
python:
- '2.7'

# commands to set up conda
before_install:
- sudo apt-get update -qq
- if [[ "$TRAVIS_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
- sudo apt-get update -qq
- pip install toil[all]
- pip install . --process-dependency-links
- pip install -r dev-requirements.txt

# commands to set up environment, install dependencies
install:
- deps='pip pandas'
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION $deps
- source activate test-environment
- pip install python-coveralls
- pip install .
- pip install -r dev-requirements.txt

# commands to run tests
script:
- python setup.py test
- flake8 --select=E121,E123,E126,E226,E24,E704,W503,W504 --ignore=E501 synorchestrator/

after_success:
- coveralls
- coveralls
18 changes: 0 additions & 18 deletions build_example_configs.py

This file was deleted.

3 changes: 2 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ flake8
pytest
pytest-cov
pytest-runner
mock
mock
python-coveralls
120 changes: 0 additions & 120 deletions environment.yml

This file was deleted.

39 changes: 0 additions & 39 deletions exampleConfigs.yml

This file was deleted.

9 changes: 4 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
schema_salad
ruamel.yaml
cwltool
subprocess32
wes-service
synapseclient

pandas
IPython==5.8.0
future
bravado
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
test = pytest

[tool:pytest]
addopts = --cov synorchestrator
addopts = --cov synorchestrator
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import os
import sys
import shutil

# First, we try to use setuptools. If it's not available locally,
# we fall back on ez_setup.
try:
Expand Down
24 changes: 12 additions & 12 deletions synorchestrator/__main__.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
#!/usr/bin/env/python
#!/usr/bin/env python

import sys
import pkg_resources
import argparse
import synorchestrator
import pkg_resources # part of setuptools
import logging
from synorchestrator.orchestrator import monitor

logging.basicConfig(level=logging.INFO)

def main(argv=sys.argv[1:]):

parser = argparse.ArgumentParser(
description='Synapse Workflow Orchestrator'
)

exgroup = parser.add_mutually_exclusive_group()
exgroup.add_argument("--version", action="store_true", default=False)
def main(argv=sys.argv[1:]):

parser = argparse.ArgumentParser(description='Synapse Workflow Orchestrator')
parser.add_argument("--version", action="store_true", default=False)
args = parser.parse_args(argv)

if args.version:
pkg = pkg_resources.require('synapse-orchestrator')
print u"%s %s" % (sys.argv[0], pkg[0].version)
print(u"%s %s" % (sys.argv[0], pkg[0].version))
exit(0)

monitor()


if __name__ == '__main__':
sys.exit(main(sys.argv[1:]))
main(sys.argv[1:])
7 changes: 0 additions & 7 deletions synorchestrator/_mypath.py

This file was deleted.

0 comments on commit 70ddc28

Please sign in to comment.