Full renaming from bareon-dynamic-allocator to bareon-allocator
Change-Id: I8a7af03ef761d19b55737bb6ba59003619948d40
This commit is contained in:
parent
1194737f9b
commit
5d6290ac1a
@ -1,7 +1,7 @@
|
||||
[run]
|
||||
branch = True
|
||||
source = bareon_dynamic_allocator
|
||||
omit = bareon_dynamic_allocator/openstack/*
|
||||
source = bareon_allocator
|
||||
omit = bareon_allocator/openstack/*
|
||||
|
||||
[report]
|
||||
ignore_errors = True
|
||||
|
@ -16,4 +16,4 @@ import pbr.version
|
||||
|
||||
|
||||
__version__ = pbr.version.VersionInfo(
|
||||
'bareon_dynamic_allocator').version_string()
|
||||
'bareon_allocator').version_string()
|
@ -22,11 +22,11 @@ import numpy as np
|
||||
from oslo_log import log
|
||||
from scipy.optimize import linprog
|
||||
|
||||
from bareon_dynamic_allocator import errors
|
||||
from bareon_dynamic_allocator.parsers import DynamicSchemaParser
|
||||
from bareon_dynamic_allocator import utils
|
||||
from bareon_allocator import errors
|
||||
from bareon_allocator.parsers import DynamicSchemaParser
|
||||
from bareon_allocator import utils
|
||||
|
||||
from bareon_dynamic_allocator.sequences import CrossSumInequalitySequence
|
||||
from bareon_allocator.sequences import CrossSumInequalitySequence
|
||||
|
||||
|
||||
LOG = log.getLogger(__name__)
|
@ -17,9 +17,9 @@ import sys
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
from bareon_dynamic_allocator.allocators import DynamicAllocator
|
||||
from bareon_dynamic_allocator import utils
|
||||
from bareon_dynamic_allocator import viewer
|
||||
from bareon_allocator.allocators import DynamicAllocator
|
||||
from bareon_allocator import utils
|
||||
from bareon_allocator import viewer
|
||||
|
||||
|
||||
cli_opts = [
|
||||
@ -56,7 +56,7 @@ def make_config():
|
||||
|
||||
|
||||
def parse_args(conf, args=None):
|
||||
project = 'bareon_dynamic_allocator'
|
||||
project = 'bareon_allocator'
|
||||
version = '1.0.0'
|
||||
conf(args=args if args else sys.argv[1:],
|
||||
project=project,
|
@ -17,7 +17,7 @@ from bareon.drivers.base import PartitioningDataDriverMixin
|
||||
from bareon import objects
|
||||
from bareon.openstack.common import log
|
||||
|
||||
from bareon_dynamic_allocator import allocators
|
||||
from bareon_allocator import allocators
|
||||
|
||||
|
||||
# Logger for bareon-dynamic allocator should be configured
|
@ -16,6 +16,6 @@
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
from bareon_dynamic_allocator.objects.base import BaseObject
|
||||
from bareon_dynamic_allocator.objects.disk import Disk
|
||||
from bareon_dynamic_allocator.objects.space import Space
|
||||
from bareon_allocator.objects.base import BaseObject
|
||||
from bareon_allocator.objects.disk import Disk
|
||||
from bareon_allocator.objects.space import Space
|
@ -18,7 +18,7 @@ import abc
|
||||
|
||||
from copy import deepcopy
|
||||
|
||||
from bareon_dynamic_allocator import errors
|
||||
from bareon_allocator import errors
|
||||
|
||||
import six
|
||||
|
@ -14,7 +14,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from bareon_dynamic_allocator.objects import BaseObject
|
||||
from bareon_allocator.objects import BaseObject
|
||||
|
||||
|
||||
class Disk(BaseObject):
|
@ -14,7 +14,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from bareon_dynamic_allocator.objects import BaseObject
|
||||
from bareon_allocator.objects import BaseObject
|
||||
|
||||
|
||||
class Space(BaseObject):
|
@ -14,5 +14,5 @@
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
from bareon_dynamic_allocator.parsers.expressions import ExpressionsParser
|
||||
from bareon_dynamic_allocator.parsers.dynamic_schema_parser import DynamicSchemaParser
|
||||
from bareon_allocator.parsers.expressions import ExpressionsParser
|
||||
from bareon_allocator.parsers.dynamic_schema_parser import DynamicSchemaParser
|
@ -14,9 +14,9 @@
|
||||
|
||||
from oslo_log import log
|
||||
|
||||
from bareon_dynamic_allocator.objects import Disk
|
||||
from bareon_dynamic_allocator.objects import Space
|
||||
from bareon_dynamic_allocator.parsers import ExpressionsParser
|
||||
from bareon_allocator.objects import Disk
|
||||
from bareon_allocator.objects import Space
|
||||
from bareon_allocator.parsers import ExpressionsParser
|
||||
|
||||
|
||||
LOG = log.getLogger(__name__)
|
@ -27,8 +27,8 @@ import os
|
||||
import six
|
||||
import yaml
|
||||
|
||||
from bareon_dynamic_allocator.allocators import DynamicAllocator
|
||||
from bareon_dynamic_allocator.tests import base
|
||||
from bareon_allocator.allocators import DynamicAllocator
|
||||
from bareon_allocator.tests import base
|
||||
|
||||
fixtures_path = os.path.join(os.path.dirname(__file__), 'fixtures', '*.yaml')
|
||||
|
@ -13,13 +13,13 @@
|
||||
# under the License.
|
||||
|
||||
"""
|
||||
test_bareon_dynamic_allocator
|
||||
test_bareon_allocator
|
||||
----------------------------------
|
||||
|
||||
Tests for `bareon_dynamic_allocator` module.
|
||||
Tests for `bareon_allocator` module.
|
||||
"""
|
||||
|
||||
from bareon_dynamic_allocator.tests import base
|
||||
from bareon_allocator.tests import base
|
||||
|
||||
|
||||
class TestBareon_dynamic_allocator(base.TestCase):
|
@ -17,9 +17,9 @@ import six
|
||||
|
||||
from glob import glob
|
||||
|
||||
from bareon_dynamic_allocator.allocators import DynamicAllocator
|
||||
from bareon_dynamic_allocator import utils
|
||||
from bareon_dynamic_allocator import viewer
|
||||
from bareon_allocator.allocators import DynamicAllocator
|
||||
from bareon_allocator import utils
|
||||
from bareon_allocator import viewer
|
||||
|
||||
|
||||
doc_schemas_path = os.path.join(
|
||||
|
2
run.sh
2
run.sh
@ -3,4 +3,4 @@
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
python bareon_dynamic_allocator/cmd.py --svg-file /tmp/bareon.svg --debug --schema etc/bareon-dynamic-allocator/simple_schema.yaml --file o.txt --hw-info etc/bareon-dynamic-allocator/example_2_disks.yaml
|
||||
python bareon_allocator/cmd.py --svg-file /tmp/bareon.svg --debug --schema etc/bareon-allocator/simple_schema.yaml --file o.txt --hw-info etc/bareon-allocator/example_2_disks.yaml
|
||||
|
18
setup.cfg
18
setup.cfg
@ -21,14 +21,14 @@ classifier =
|
||||
|
||||
[files]
|
||||
packages =
|
||||
bareon_dynamic_allocator
|
||||
bareon_allocator
|
||||
|
||||
[entry_points]
|
||||
console_scripts =
|
||||
bareon-allocator = bareon_dynamic_allocator.cmd:allocator
|
||||
bareon-allocator = bareon_allocator.cmd:allocator
|
||||
|
||||
bareon.drivers =
|
||||
dynamic-schema = bareon_dynamic_allocator.driver:DynamicAllocator
|
||||
dynamic-schema = bareon_allocator.driver:DynamicAllocator
|
||||
|
||||
[build_sphinx]
|
||||
source-dir = doc/source
|
||||
@ -39,15 +39,15 @@ all_files = 1
|
||||
upload-dir = doc/build/html
|
||||
|
||||
[compile_catalog]
|
||||
directory = bareon-dynamic-allocator/locale
|
||||
domain = bareon-dynamic-allocator
|
||||
directory = bareon-allocator/locale
|
||||
domain = bareon-allocator
|
||||
|
||||
[update_catalog]
|
||||
domain = bareon-dynamic-allocator
|
||||
output_dir = bareon-dynamic-allocator/locale
|
||||
input_file = bareon-dynamic-allocator/locale/bareon-dynamic-allocator.pot
|
||||
domain = bareon-allocator
|
||||
output_dir = bareon-allocator/locale
|
||||
input_file = bareon-allocator/locale/bareon-allocator.pot
|
||||
|
||||
[extract_messages]
|
||||
keywords = _ gettext ngettext l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = bareon-dynamic-allocator/locale/bareon-dynamic-allocator.pot
|
||||
output_file = bareon-allocator/locale/bareon-allocator.pot
|
||||
|
Loading…
Reference in New Issue
Block a user