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:
parent
4f5fc55398
commit
f6365e37f5
@ -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
|
||||
|
@ -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__)
|
@ -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):
|
17
setup.cfg
17
setup.cfg
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user