From 621a8812a588f48e3cc623bdf7ba64d9ae26e0b3 Mon Sep 17 00:00:00 2001 From: Evgeniy L Date: Wed, 23 Mar 2016 12:36:21 +0300 Subject: [PATCH] Add bindep to install system level dependencies Also incorrect import is fixed. Change-Id: Ied34fb800db9616ce227c66ed214a7ef7c59d34d --- .../parsers/dynamic_schema_parser.py | 4 ++-- other-requirements.txt | 18 ++++++++++++++++++ tox.ini | 4 ++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 other-requirements.txt diff --git a/bareon_dynamic_allocator/parsers/dynamic_schema_parser.py b/bareon_dynamic_allocator/parsers/dynamic_schema_parser.py index cba0a7e..9153f34 100644 --- a/bareon_dynamic_allocator/parsers/dynamic_schema_parser.py +++ b/bareon_dynamic_allocator/parsers/dynamic_schema_parser.py @@ -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): diff --git a/other-requirements.txt b/other-requirements.txt new file mode 100644 index 0000000..f22205f --- /dev/null +++ b/other-requirements.txt @@ -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] diff --git a/tox.ini b/tox.ini index 651ae57..356b870 100644 --- a/tox.ini +++ b/tox.ini @@ -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