##
import logging
-from peewee import *
+from peewee import CharField, IntegerField, ForeignKeyField, Model, TextField
from playhouse.sqlite_ext import SqliteExtDatabase
from osm_policy_module.core.config import Config
from kafka import KafkaProducer, KafkaConsumer
from kafka.errors import KafkaError
-from osm_policy_module.core.agent import PolicyModuleAgent
from osm_policy_module.core.config import Config
log = logging.getLogger()
from kafka import KafkaProducer
from osm_common.dbmongo import DbMongo
-from osm_policy_module.core import database
from peewee import SqliteDatabase
from osm_policy_module.common.mon_client import MonClient
+from osm_policy_module.core import database
from osm_policy_module.core.agent import PolicyModuleAgent
-from osm_policy_module.core.database import ScalingRecord, ScalingAlarm, BaseModel
+from osm_policy_module.core.database import ScalingRecord, ScalingAlarm
log = logging.getLogger()
log.level = logging.INFO
maintainer_email=_maintainer_email,
url=_url,
license=_license,
- packages=setuptools.find_packages(),
+ packages=[_name],
include_package_data=True,
install_requires=[
"kafka==1.3.*",
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
-envlist = py3, flake8
+envlist = py3
toxworkdir={homedir}/.tox
[testenv]