-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
82 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,15 +16,14 @@ | |
import setuptools | ||
|
||
BASE_DIR = os.path.dirname(__file__) | ||
VERSION_FILENAME = os.path.join( | ||
BASE_DIR, "src", "opentelemetry", "internal", "version.py") | ||
VERSION_FILENAME = os.path.join(BASE_DIR, "src", "opentelemetry", "version.py") | ||
PACKAGE_INFO = {} | ||
with open(VERSION_FILENAME) as f: | ||
exec(f.read(), PACKAGE_INFO) #pylint:disable=exec-used | ||
exec(f.read(), PACKAGE_INFO) | ||
|
||
setuptools.setup( | ||
name="opentelemetry-api", | ||
version=PACKAGE_INFO["__version__"], # noqa | ||
version=PACKAGE_INFO["__version__"], | ||
author="OpenTelemetry Authors", | ||
author_email="[email protected]", | ||
classifiers=[ | ||
|
@@ -47,7 +46,8 @@ | |
extras_require={}, | ||
license="Apache-2.0", | ||
package_dir={"": "src"}, | ||
packages=setuptools.find_namespace_packages(where="src"), | ||
packages=setuptools.find_namespace_packages(where="src", | ||
include="opentelemetry.*"), | ||
url=("https://github.com/open-telemetry/opentelemetry-python" | ||
"/tree/master/opentelemetry-api"), | ||
zip_safe=False, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,16 @@ | |
import os | ||
import setuptools | ||
|
||
base_dir = os.path.dirname(__file__) | ||
|
||
package_info = {} | ||
with open(os.path.join(base_dir, "src", "opentelemetry", "sdk", "version.py")) as f: | ||
exec(f.read(), package_info) | ||
BASE_DIR = os.path.dirname(__file__) | ||
VERSION_FILENAME = os.path.join(BASE_DIR, "src", "opentelemetry", "sdk", | ||
"version.py") | ||
PACKAGE_INFO = {} | ||
with open(VERSION_FILENAME) as f: | ||
exec(f.read(), PACKAGE_INFO) | ||
|
||
setuptools.setup( | ||
name="opentelemetry-sdk", | ||
version=package_info["__version__"], # noqa | ||
version=PACKAGE_INFO["__version__"], | ||
author="OpenTelemetry Authors", | ||
author_email="[email protected]", | ||
classifiers=[ | ||
|
@@ -41,11 +42,14 @@ | |
include_package_data=True, | ||
long_description=open("README.rst").read(), | ||
install_requires=[ | ||
"opentelemetry-api==0.1.dev0" | ||
], | ||
extras_require={}, | ||
license="Apache-2.0", | ||
package_dir={"": "src"}, | ||
packages=setuptools.find_namespace_packages(where="src"), | ||
url="https://github.com/open-telemetry/opentelemetry-python/tree/master/opentelemetry-sdk", | ||
packages=setuptools.find_namespace_packages(where="src", | ||
include="opentelemetry.sdk.*"), | ||
url=("https://github.com/open-telemetry/opentelemetry-python" | ||
"/tree/master/opentelemetry-sdk"), | ||
zip_safe=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2019, OpenTelemetry Authors | ||
# | ||
# 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. | ||
|
||
from opentelemetry import trace as trace_api | ||
|
||
|
||
class Tracer(trace_api.Tracer): | ||
pass |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2019, OpenTelemetry Authors | ||
# | ||
# 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 unittest | ||
|
||
from opentelemetry import trace as trace_api | ||
from opentelemetry.sdk import trace | ||
|
||
|
||
class TestTracer(unittest.TestCase): | ||
|
||
def test_extends_api(self): | ||
tracer = trace.Tracer() | ||
self.assertIsInstance(tracer, trace_api.Tracer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters