yandextank and yandextank.plugins are namespace packages from now on

This commit is contained in:
Alexey Lavrenuke 2016-02-17 18:27:17 +03:00
parent 3cc0e24f23
commit 8b7989c764
9 changed files with 19 additions and 4 deletions

View File

@ -13,7 +13,8 @@ analytic tools for the results they produce.
maintainer='Alexey Lavrenuke (load testing)',
maintainer_email='direvius@yandex-team.ru',
url='http://yandex.github.io/yandex-tank/',
packages=find_packages(exclude=["tests"]),
namespace_packages=["yandextank", "yandextank.plugins"],
packages=find_packages(exclude=["tests", "tmp", "docs", "data"]),
install_requires=[
'psutil>=1.2.1',
'ipaddr',

View File

@ -0,0 +1,7 @@
# this is a namespace package
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

View File

@ -0,0 +1 @@
from plugin import *

View File

@ -0,0 +1 @@
from plugin import *

View File

@ -0,0 +1 @@
from plugin import *

View File

@ -1,3 +1,7 @@
'''
Package contains all original tank tool plugins
'''
# this is a namespace package
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)