Skip to content

chore: standardizing setup.cfg files #807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions docs/examples/opentelemetry-example-app/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 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-example-app
description = OpenTelemetry Example App
long_description = file: README.rst
long_description_content_type = text/x-rst
author = OpenTelemetry Authors
author_email = [email protected]
url = https://github.com/open-telemetry/opentelemetry-python/tree/master/opentelemetry-example-app
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
package_dir=
=src
packages = find_namespace:
zip_safe = False
include_package_data = True
install_requires =
typing; python_version<'3.5'
opentelemetry-api == 0.9.dev0
opentelemetry-sdk == 0.9.dev0
opentelemetry-ext-requests == 0.9.dev0
opentelemetry-ext-flask == 0.9.dev0
flask
requests
protobuf~=3.11

[options.packages.find]
where = src
include = opentelemetry_example_app

[options.entry_points]
opentelemetry_meter_provider =
sdk_meter_provider = opentelemetry.sdk.metrics:MeterProvider
opentelemetry_tracer_provider =
sdk_tracer_provider = opentelemetry.sdk.trace:TracerProvider
47 changes: 10 additions & 37 deletions docs/examples/opentelemetry-example-app/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os

import setuptools

setuptools.setup(
name="opentelemetry-example-app",
version="0.9.dev0",
author="OpenTelemetry Authors",
author_email="[email protected]",
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",
],
description="OpenTelemetry Python API",
include_package_data=True,
long_description=open("README.rst").read(),
install_requires=[
"typing; python_version<'3.5'",
"opentelemetry-api",
"opentelemetry-sdk",
"opentelemetry-ext-requests",
"opentelemetry-ext-flask",
"flask",
"requests",
"protobuf~=3.11",
],
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-example-app"
),
zip_safe=False,
BASE_DIR = os.path.dirname(__file__)
VERSION_FILENAME = os.path.join(
BASE_DIR, "src", "opentelemetry_example_app", "version.py"
)
PACKAGE_INFO = {}
with open(VERSION_FILENAME) as f:
exec(f.read(), PACKAGE_INFO)

setuptools.setup(version=PACKAGE_INFO["__version__"],)
Original file line number Diff line number Diff line change
@@ -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.9.dev0"
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.8.dev0"
__version__ = "0.9.dev0"
6 changes: 3 additions & 3 deletions ext/opentelemetry-ext-datadog/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ package_dir=
=src
packages=find_namespace:
install_requires =
ddtrace>=0.34.0
opentelemetry-api==0.9.dev0
opentelemetry-sdk==0.9.dev0
ddtrace >= 0.34.0
opentelemetry-api == 0.9.dev0
opentelemetry-sdk == 0.9.dev0

[options.packages.find]
where = src
3 changes: 2 additions & 1 deletion opentelemetry-sdk/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ package_dir=
packages=find_namespace:
zip_safe = False
include_package_data = True
install_requires = opentelemetry-api==0.9.dev0
install_requires =
opentelemetry-api == 0.9.dev0

[options.packages.find]
where = src
Expand Down