Skip to content

Commit 0c0c8ad

Browse files
authored
Merge pull request #2420 from dhermes/make-logging-subpackage
Move logging code into a subpackage
2 parents afd0ae4 + d4cc658 commit 0c0c8ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+458
-13
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,25 @@ script:
1111
- (cd storage && tox -e py27)
1212
- (cd datastore && tox -e py27)
1313
- (cd bigquery && tox -e py27)
14+
- (cd pubsub && tox -e py27)
15+
- (cd logging && tox -e py27)
1416
- tox -e py34
1517
- (cd core && tox -e py34)
1618
- (cd bigtable && tox -e py34)
1719
- (cd storage && tox -e py34)
1820
- (cd datastore && tox -e py34)
1921
- (cd bigquery && tox -e py34)
22+
- (cd pubsub && tox -e py34)
23+
- (cd logging && tox -e py34)
2024
- tox -e lint
2125
- tox -e cover
2226
- (cd core && tox -e cover)
2327
- (cd bigtable && tox -e cover)
2428
- (cd storage && tox -e cover)
2529
- (cd datastore && tox -e cover)
2630
- (cd bigquery && tox -e cover)
31+
- (cd pubsub && tox -e cover)
32+
- (cd logging && tox -e cover)
2733
- tox -e system-tests
2834
- tox -e system-tests3
2935
- scripts/update_docs.sh

logging/.coveragerc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[run]
2+
branch = True
3+
4+
[report]
5+
fail_under = 100
6+
show_missing = True
7+
exclude_lines =
8+
# Re-enable the standard pragma
9+
pragma: NO COVER
10+
# Ignore debug-only repr
11+
def __repr__

logging/MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include README.rst
2+
graft google
3+
graft unit_tests
4+
global-exclude *.pyc

logging/README.rst

Lines changed: 59 additions & 0 deletions

logging/google/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2016 Google Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
try:
16+
import pkg_resources
17+
pkg_resources.declare_namespace(__name__)
18+
except ImportError:
19+
import pkgutil
20+
__path__ = pkgutil.extend_path(__path__, __name__)

logging/google/cloud/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2014 Google Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
try:
16+
import pkg_resources
17+
pkg_resources.declare_namespace(__name__)
18+
except ImportError:
19+
import pkgutil
20+
__path__ = pkgutil.extend_path(__path__, __name__)
File renamed without changes.

0 commit comments

Comments
 (0)