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
This commit is contained in:
Doug Hellmann 2014-11-14 13:49:35 -05:00
parent 4f5fc55398
commit f6365e37f5
7 changed files with 9 additions and 25 deletions

View File

@ -2,6 +2,6 @@
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \ 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_id_option=--load-list $IDFILE
test_list_option=--list test_list_option=--list

View File

@ -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__)

View File

@ -15,7 +15,7 @@
from oslotest import base as test_base from oslotest import base as test_base
from oslo.context import context from oslo_context import context
class ContextTest(test_base.BaseTestCase): class ContextTest(test_base.BaseTestCase):

View File

@ -22,10 +22,7 @@ classifier =
[files] [files]
packages = packages =
oslo oslo_context
oslo.context
namespace_packages =
oslo
[pbr] [pbr]
warnerrors = true warnerrors = true
@ -39,18 +36,18 @@ all_files = 1
upload-dir = doc/build/html upload-dir = doc/build/html
[compile_catalog] [compile_catalog]
directory = oslo.context/locale directory = oslo_context/locale
domain = oslo.context domain = oslo_context
[update_catalog] [update_catalog]
domain = oslo.context domain = oslo_context
output_dir = oslo.context/locale output_dir = oslo_context/locale
input_file = oslo.context/locale/oslo.context.pot input_file = oslo_context/locale/oslo_context.pot
[extract_messages] [extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg mapping_file = babel.cfg
output_file = oslo.context/locale/oslo.context.pot output_file = oslo_context/locale/oslo_context.pot
[wheel] [wheel]
universal = true universal = true