Refactor ara-plugins as a namespaced module

This is a structure that will allow us to install everything under
"ara" as separate packages but inside the same module.

For example, installing ara-server will provide ara.server and
ara.api.
Installing ara-clients will provide ara.clients, ara-plugins will
supply ara.plugins, etc.

Change-Id: I4fc9a06b1da720120567a476c17e9543828adfa1
This commit is contained in:
David Moreau Simard 2018-06-20 00:02:53 -04:00
parent c7763e37eb
commit be9f8e2af8
No known key found for this signature in database
GPG Key ID: 33A07694CBB71ECC
5 changed files with 7 additions and 4 deletions

1
ara/plugins/__init__.py Normal file
View File

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

View File

@ -23,8 +23,10 @@ setup-hooks =
pbr.hooks.setup_hook
[files]
namespace_packages =
ara.plugins
packages =
ara_plugins
ara
[build_sphinx]
source-dir = doc/source
@ -37,7 +39,7 @@ upload-dir = docs/html
[coverage:report]
ignore_errors = True
include =
ara_plugins/*
ara/*
omit =
/usr*
setup.py

View File

@ -19,8 +19,8 @@ commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:pep8]
commands =
flake8 plugins
bandit -r plugins
flake8 ara
bandit -r ara
[flake8]
# E123, E125 skipped as they are invalid PEP-8.