diff options
author | Doug Hellmann <doug@doughellmann.com> | 2014-11-14 13:49:35 -0500 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2014-11-14 13:52:32 -0500 |
commit | f6365e37f552caf8ae562bd17253be15b9663fa2 (patch) | |
tree | 6ac3d9b5163e3bdcce1008dc13ad26cb92438286 | |
parent | 4f5fc553986c1500084091807ce04e894a1e03b8 (diff) | |
download | oslo-context-f6365e37f552caf8ae562bd17253be15b9663fa2.tar.gz |
Move out of the oslo namespace package
Move the public API out of oslo.context to oslo_context. Since this
library has not been released, we do not need to retain the old interface
for compatibility.
bp/drop-namespace-packages
Change-Id: I19adf862596abae0b034e81472114093425782f8
-rw-r--r-- | .testr.conf | 2 | ||||
-rw-r--r-- | oslo/__init__.py | 13 | ||||
-rw-r--r-- | oslo_context/__init__.py (renamed from oslo/context/__init__.py) | 0 | ||||
-rw-r--r-- | oslo_context/context.py (renamed from oslo/context/context.py) | 0 | ||||
-rw-r--r-- | oslo_context/tests/__init__.py (renamed from tests/__init__.py) | 0 | ||||
-rw-r--r-- | oslo_context/tests/test_context.py (renamed from tests/test_context.py) | 2 | ||||
-rw-r--r-- | setup.cfg | 17 |
7 files changed, 9 insertions, 25 deletions
diff --git a/.testr.conf b/.testr.conf index 35d9ba4..ccafd7c 100644 --- a/.testr.conf +++ b/.testr.conf @@ -2,6 +2,6 @@ test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \ - ${PYTHON:-python} -m subunit.run discover -t ./ ./tests $LISTOPT $IDOPTION + ${PYTHON:-python} -m subunit.run discover -t ./ ./oslo_context $LISTOPT $IDOPTION test_id_option=--load-list $IDFILE test_list_option=--list diff --git a/oslo/__init__.py b/oslo/__init__.py deleted file mode 100644 index dc130d6..0000000 --- a/oslo/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -__import__('pkg_resources').declare_namespace(__name__) diff --git a/oslo/context/__init__.py b/oslo_context/__init__.py index e69de29..e69de29 100644 --- a/oslo/context/__init__.py +++ b/oslo_context/__init__.py diff --git a/oslo/context/context.py b/oslo_context/context.py index b612db7..b612db7 100644 --- a/oslo/context/context.py +++ b/oslo_context/context.py diff --git a/tests/__init__.py b/oslo_context/tests/__init__.py index e69de29..e69de29 100644 --- a/tests/__init__.py +++ b/oslo_context/tests/__init__.py diff --git a/tests/test_context.py b/oslo_context/tests/test_context.py index 823e52d..05c717d 100644 --- a/tests/test_context.py +++ b/oslo_context/tests/test_context.py @@ -15,7 +15,7 @@ from oslotest import base as test_base -from oslo.context import context +from oslo_context import context class ContextTest(test_base.BaseTestCase): @@ -22,10 +22,7 @@ classifier = [files] packages = - oslo - oslo.context -namespace_packages = - oslo + oslo_context [pbr] warnerrors = true @@ -39,18 +36,18 @@ all_files = 1 upload-dir = doc/build/html [compile_catalog] -directory = oslo.context/locale -domain = oslo.context +directory = oslo_context/locale +domain = oslo_context [update_catalog] -domain = oslo.context -output_dir = oslo.context/locale -input_file = oslo.context/locale/oslo.context.pot +domain = oslo_context +output_dir = oslo_context/locale +input_file = oslo_context/locale/oslo_context.pot [extract_messages] keywords = _ gettext ngettext l_ lazy_gettext mapping_file = babel.cfg -output_file = oslo.context/locale/oslo.context.pot +output_file = oslo_context/locale/oslo_context.pot [wheel] universal = true |