diff options
author | Doug Hellmann <doug@doughellmann.com> | 2015-06-18 22:18:36 +0000 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2015-06-18 22:18:36 +0000 |
commit | c2b1a791c08e93758ad272305745834e497c5dce (patch) | |
tree | d9a3df118bfefa5feca590e2a27c267d8ccc4976 | |
parent | 9b552046f55e56d45a9e7274e62ebb372c112c36 (diff) | |
download | oslo-db-c2b1a791c08e93758ad272305745834e497c5dce.tar.gz |
Drop use of 'oslo' namespace package
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.
The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.
Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.
Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages
Change-Id: Iaf9247f90ba26615d02e5431d6bc98f22351caa7
-rw-r--r-- | oslo_db/sqlalchemy/session.py | 2 | ||||
-rw-r--r-- | oslo_db/sqlalchemy/test_base.py | 2 | ||||
-rw-r--r-- | oslo_db/tests/old_import_api/sqlalchemy/test_options.py | 4 | ||||
-rw-r--r-- | oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py | 2 | ||||
-rw-r--r-- | oslo_db/tests/old_import_api/test_api.py | 4 | ||||
-rw-r--r-- | oslo_db/tests/old_import_api/utils.py | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/oslo_db/sqlalchemy/session.py b/oslo_db/sqlalchemy/session.py index 9155176..bb3616f 100644 --- a/oslo_db/sqlalchemy/session.py +++ b/oslo_db/sqlalchemy/session.py @@ -23,7 +23,7 @@ Recommended ways to use sessions within this framework: .. code-block:: python - from oslo.db.sqlalchemy import enginefacade + from oslo_db.sqlalchemy import enginefacade @enginefacade.reader def get_foo(context, foo): diff --git a/oslo_db/sqlalchemy/test_base.py b/oslo_db/sqlalchemy/test_base.py index fe36df8..173db57 100644 --- a/oslo_db/sqlalchemy/test_base.py +++ b/oslo_db/sqlalchemy/test_base.py @@ -234,7 +234,7 @@ def optimize_db_test_loader(file_): Place this in an __init__.py package file within the root of the test suite, at the level where testresources loads it as a package:: - from oslo.db.sqlalchemy import test_base + from oslo_db.sqlalchemy import test_base load_tests = test_base.optimize_db_test_loader(__file__) diff --git a/oslo_db/tests/old_import_api/sqlalchemy/test_options.py b/oslo_db/tests/old_import_api/sqlalchemy/test_options.py index df0da99..568a759 100644 --- a/oslo_db/tests/old_import_api/sqlalchemy/test_options.py +++ b/oslo_db/tests/old_import_api/sqlalchemy/test_options.py @@ -11,8 +11,8 @@ # License for the specific language governing permissions and limitations # under the License. -from oslo.config import cfg -from oslo.config import fixture as config +from oslo_config import cfg +from oslo_config import fixture as config from oslo.db import options from oslo_db.tests.old_import_api import utils as test_utils diff --git a/oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py b/oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py index 1aa8e59..3ee51df 100644 --- a/oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py +++ b/oslo_db/tests/old_import_api/sqlalchemy/test_sqlalchemy.py @@ -21,7 +21,7 @@ import logging import fixtures import mock -from oslo.config import cfg +from oslo_config import cfg from oslotest import base as oslo_test import sqlalchemy from sqlalchemy import Column, MetaData, Table diff --git a/oslo_db/tests/old_import_api/test_api.py b/oslo_db/tests/old_import_api/test_api.py index 1fe3bf3..b3fe3b7 100644 --- a/oslo_db/tests/old_import_api/test_api.py +++ b/oslo_db/tests/old_import_api/test_api.py @@ -16,8 +16,8 @@ """Unit tests for DB API.""" import mock -from oslo.config import cfg -from oslo.utils import importutils +from oslo_config import cfg +from oslo_utils import importutils from oslo.db import api from oslo.db import exception diff --git a/oslo_db/tests/old_import_api/utils.py b/oslo_db/tests/old_import_api/utils.py index 44eb1ae..00eb468 100644 --- a/oslo_db/tests/old_import_api/utils.py +++ b/oslo_db/tests/old_import_api/utils.py @@ -15,7 +15,7 @@ import contextlib -from oslo.config import cfg +from oslo_config import cfg from oslotest import base as test_base from oslotest import moxstubout import six |