Skip to content

Commit

Permalink
Merge pull request #16 from mogproject/topic-mog-commons-#15
Browse files Browse the repository at this point in the history
refactor using mog-commons closes #15
  • Loading branch information
mogproject committed Nov 10, 2015
2 parents dc6bd3d + bd98e2c commit a6d78a7
Show file tree
Hide file tree
Showing 34 changed files with 3,237 additions and 356 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -66,3 +66,4 @@ target/
# Test resources
!/tests/resources/*

.python-version
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -9,6 +9,7 @@ python:
- "3.2"
- "3.3"
- "3.4"
- "3.5"

cache: pip

Expand All @@ -17,7 +18,7 @@ install:
- pip install coveralls

script:
- coverage run --source=src setup.py test
- coverage run --source=src --omit='src/backported/*' setup.py test

after_success:
- coveralls
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -17,7 +17,7 @@ dev-uninstall:
$(PYTHON) setup.py develop -u

pep8:
pep8 --max-line-length 120 --ignore E402,E731 src tests
pep8 --max-line-length 120 --ignore E402,E731 src/$(PROG) tests

test: pep8
$(PYTHON) setup.py test
Expand Down
15 changes: 11 additions & 4 deletions setup.py
@@ -1,11 +1,17 @@
import sys
from setuptools import setup, find_packages

try:
# Work around a traceback on Python < 2.7.4 and < 3.3.1
# http://bugs.python.org/issue15881#msg170215
import multiprocessing # unused
except ImportError:
pass

SRC_DIR = 'src'


def get_version():
import sys

sys.path[:0] = [SRC_DIR]
return __import__('javactl').__version__

Expand All @@ -21,10 +27,11 @@ def get_version():
install_requires=[
'pyyaml',
'six',
'mog-commons',
],
tests_require=[
'unittest2',
'mock',
'mock == 1.0.1', # lock version for older version of setuptools
'jinja2' + (' == 2.6' if sys.version_info[:2] == (3, 2) else ''),
],
package_dir={'': SRC_DIR},
packages=find_packages(SRC_DIR),
Expand Down
Empty file added src/backported/__init__.py
Empty file.
Empty file.

0 comments on commit a6d78a7

Please sign in to comment.