mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-03 04:10:48 +08:00

The `setuptools` package is not part of the stdlib, but often available in the system environment (it is a buildtime requirement). `pkg_resources` (a package provided by `setuptools`) is used as a runtime requirement in `opentelemetry-instrumentation`. Explicitly listing `setuptools` as a requirement protects instrumentation from breaking with import errors in cases where `setuptools` is not available system-wide. For example: * A multi-stage Docker build where the final image does not contain buildtime requirements. * A build system that packages the runtime dependencies into a single binary. This commit pins `setuptools >= 16.0` because that is the first release that included all 5 imports instrumentation currently relies on. Co-authored-by: Matt Oberle <mattoberle@users.noreply.github.com>
61 lines
2.0 KiB
INI
61 lines
2.0 KiB
INI
# 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-instrumentation
|
|
description = Instrumentation Tools & Auto Instrumentation for OpenTelemetry Python
|
|
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-python/tree/main/opentelemetry-instrumentation
|
|
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.6
|
|
Programming Language :: Python :: 3.7
|
|
Programming Language :: Python :: 3.8
|
|
Programming Language :: Python :: 3.9
|
|
Programming Language :: Python :: 3.10
|
|
|
|
[options]
|
|
python_requires = >=3.6
|
|
package_dir=
|
|
=src
|
|
packages=find_namespace:
|
|
zip_safe = False
|
|
include_package_data = True
|
|
install_requires =
|
|
opentelemetry-api ~= 1.4
|
|
setuptools >= 16.0
|
|
wrapt >= 1.0.0, < 2.0.0
|
|
|
|
[options.packages.find]
|
|
where = src
|
|
|
|
[options.entry_points]
|
|
console_scripts =
|
|
opentelemetry-instrument = opentelemetry.instrumentation.auto_instrumentation:run
|
|
opentelemetry-bootstrap = opentelemetry.instrumentation.bootstrap:run
|
|
opentelemetry_environment_variables =
|
|
instrumentation = opentelemetry.instrumentation.environment_variables
|
|
|
|
[options.extras_require]
|
|
test =
|