diff --git a/README.md b/README.md index ca9dd847..80f944a0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ akanda-rug ========== -ties the room together \ No newline at end of file +ties the room together + +The RUG is a service that manages tenant Akanda Router instances in an +Openstack environment. + diff --git a/akanda/__init__.py b/akanda/__init__.py new file mode 100644 index 00000000..de40ea7c --- /dev/null +++ b/akanda/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/akanda/rug/__init__.py b/akanda/rug/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/akanda/rug/agent.py b/akanda/rug/agent.py new file mode 100644 index 00000000..25ba5cec --- /dev/null +++ b/akanda/rug/agent.py @@ -0,0 +1,5 @@ +import sys + + +def main(): + pass diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..1fb7f5da --- /dev/null +++ b/setup.cfg @@ -0,0 +1,5 @@ +[nosetests] +where = test +verbosity = 2 +detailed-errors = 1 +cover-package = akanda diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..e171cd1b --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +from setuptools import setup, find_packages + + +setup( + name='Akanda Router Update Generator', + version='0.1.0', + description='A service that manages tenant Akanda router instances', + author='DreamHost', + author_email='dev-community@dreamhost.com', + url='http://github.com/dreamhost/akanda-rug', + license='BSD', + install_requires=[ + 'netaddr>=0.7.7', + ], + namespace_packages=['akanda'], + packages=find_packages(), + include_package_data=True, + zip_safe=False, + entry_points={ + 'console_scripts': [ + 'akanda-rug-service=akanda.rug.agent:main' + ] + }, +) diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test/unit/__init__.py b/test/unit/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test_requirements.txt b/test_requirements.txt new file mode 100644 index 00000000..0e16f289 --- /dev/null +++ b/test_requirements.txt @@ -0,0 +1,6 @@ +tox +unittest2 +nose +coverage +mock>=0.8.0 +pep8 diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..86c03859 --- /dev/null +++ b/tox.ini @@ -0,0 +1,21 @@ +[tox] +envlist = py26,py27,pep8 + +[testenv] +setenv = VIRTUAL_ENV={envdir} +deps = -r{toxinidir}/test_requirements.txt +commands = nosetests {posargs} +sitepackages = False + +[tox:jenkins] + +[testenv:pep8] +deps = pep8 + setuptools_git>=0.4 +commands = pep8 --repeat --show-source --ignore=E125 --exclude=.venv,.tox,dist,doc,*egg . + +[testenv:cover] +setenv = NOSE_WITH_COVERAGE=1 + +[testenv:venv] +commands = {posargs}