From 0fcb9a940a5a28334d76cf4ab06e023b979e31a3 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 21 Apr 2020 10:17:59 -0700 Subject: [PATCH] adding meta package to install all instrumentation --- .../README.rst | 22 ++++++++ .../setup.cfg | 52 +++++++++++++++++++ .../setup.py | 27 ++++++++++ .../version.py | 15 ++++++ 4 files changed, 116 insertions(+) create mode 100644 ext/opentelemetry-instrumentation-all/README.rst create mode 100644 ext/opentelemetry-instrumentation-all/setup.cfg create mode 100644 ext/opentelemetry-instrumentation-all/setup.py create mode 100644 ext/opentelemetry-instrumentation-all/version.py diff --git a/ext/opentelemetry-instrumentation-all/README.rst b/ext/opentelemetry-instrumentation-all/README.rst new file mode 100644 index 00000000000..ac466ba5715 --- /dev/null +++ b/ext/opentelemetry-instrumentation-all/README.rst @@ -0,0 +1,22 @@ +OpenTelemetry Install All Instrumentation Package +================================================= + +|pypi| + +.. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-all.svg + :target: https://pypi.org/project/opentelemetry-instrumentation-all/ + +This package installs all instrumentation packages for user convenience + +Installation +------------ + +:: + + pip install opentelemetry-instrumentation-all + + +References +---------- + +* `OpenTelemetry Project `_ diff --git a/ext/opentelemetry-instrumentation-all/setup.cfg b/ext/opentelemetry-instrumentation-all/setup.cfg new file mode 100644 index 00000000000..0efbfef4430 --- /dev/null +++ b/ext/opentelemetry-instrumentation-all/setup.cfg @@ -0,0 +1,52 @@ +# Copyright The 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. +# +[metadata] +name = opentelemetry-auto-instrumentation-all +description = Meta package to install all auto-instrumentation for OpenTelemetry +long_description = file: README.rst +long_description_content_type = text/x-rst +author = OpenTelemetry Authors +author_email = cncf-opentelemetry-contributors@lists.cncf.io +url = https://github.com/open-telemetry/opentelemetry-auto-instr-python/instrumentors/sqlalchemy +platforms = any +license = Apache-2.0 +classifiers = + Development Status :: 4 - Beta + Intended Audience :: Developers + License :: OSI Approved :: Apache Software License + Programming Language :: Python + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.4 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + +[options] +python_requires = >=3.4 +packages=find_namespace: +install_requires = + opentelemetry-auto-instrumentation + opentelemetry-ext-dbapi + opentelemetry-ext-flask + opentelemetry-ext-grpc + opentelemetry-ext-http-requests + opentelemetry-ext-mysql + opentelemetry-ext-psycopg2 + opentelemetry-ext-pymongo + opentelemetry-ext-wsgi + +[options.packages.find] +where = src diff --git a/ext/opentelemetry-instrumentation-all/setup.py b/ext/opentelemetry-instrumentation-all/setup.py new file mode 100644 index 00000000000..76b13908f4f --- /dev/null +++ b/ext/opentelemetry-instrumentation-all/setup.py @@ -0,0 +1,27 @@ +# Copyright The 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 os + +import setuptools + +BASE_DIR = os.path.dirname(__file__) +VERSION_FILENAME = os.path.join(BASE_DIR, "version.py") +PACKAGE_INFO = {} +with open(VERSION_FILENAME) as f: + exec(f.read(), PACKAGE_INFO) + +setuptools.setup( + version=PACKAGE_INFO["__version__"], +) + diff --git a/ext/opentelemetry-instrumentation-all/version.py b/ext/opentelemetry-instrumentation-all/version.py new file mode 100644 index 00000000000..86c61362ab5 --- /dev/null +++ b/ext/opentelemetry-instrumentation-all/version.py @@ -0,0 +1,15 @@ +# Copyright The 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. + +__version__ = "0.7.dev0"