diff --git a/core/google/api/__init__.py b/core/google/api/__init__.py new file mode 100644 index 0000000000000..2648890d2599b --- /dev/null +++ b/core/google/api/__init__.py @@ -0,0 +1,22 @@ +# Copyright 2017 Google Inc. +# +# 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. + +"""Google API namespace package.""" + +try: + import pkg_resources + pkg_resources.declare_namespace(__name__) +except ImportError: + import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/core/google/api/core/__init__.py b/core/google/api/core/__init__.py new file mode 100644 index 0000000000000..123d3e291c704 --- /dev/null +++ b/core/google/api/core/__init__.py @@ -0,0 +1,18 @@ +# Copyright 2017 Google Inc. +# +# 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. + +"""Google API Core. + +This package contains common code and utilties used by Google client libraries. +""" diff --git a/core/setup.py b/core/setup.py index 52ea0c253d8d0..5cc4a9c8141b3 100644 --- a/core/setup.py +++ b/core/setup.py @@ -67,6 +67,7 @@ namespace_packages=[ 'google', 'google.cloud', + 'google.api', ], packages=find_packages(exclude=('tests*',)), install_requires=REQUIREMENTS,