Add bindep to install system level dependencies

Also incorrect import is fixed.

Change-Id: Ied34fb800db9616ce227c66ed214a7ef7c59d34d
This commit is contained in:
Evgeniy L 2016-03-23 12:36:21 +03:00
parent 66edf86ec3
commit 621a8812a5
3 changed files with 24 additions and 2 deletions

View File

@ -16,7 +16,7 @@ from oslo_log import log
from bareon_dynamic_allocator.objects import Disk
from bareon_dynamic_allocator.objects import Space
from bareon_dynamic_allocator.parser import Parser
from bareon_dynamic_allocator.parsers import ExpressionsParser
LOG = log.getLogger(__name__)
@ -58,7 +58,7 @@ class DynamicSchemaParser(object):
def render_expressions(self):
self.rendered_spaces = self._convert_disks_to_indexes(
Parser(self.schema, self.hw_info).parse(),
ExpressionsParser(self.schema, self.hw_info).parse(),
self.hw_info)
def _convert_disks_to_indexes(self, spaces, hw_info):

18
other-requirements.txt Normal file
View File

@ -0,0 +1,18 @@
# This is a cross-platform list tracking distribution packages needed by tests;
# see http://docs.openstack.org/infra/bindep/ for additional information.
build-essential [platform:dpkg]
python-dev [platform:dpkg]
# Is required for scipy
python-numpy [platform:dpkg]
gfortran [platform:dpkg]
libatlas-base-dev [platform:dpkg]
liblapack-dev [platform:dpkg]
# FIXME(evgeniyl): Is not required for bareon allocator
# but required for openstack infra not to fail the
# gate, because it tries it initialize the database
mysql-client [platform:dpkg]
mysql-server [platform:dpkg]
postgresql [platform:dpkg]
postgresql-client [platform:dpkg]

View File

@ -58,3 +58,7 @@ show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
[testenv:bindep]
deps = bindep
commands = bindep