Skip to content
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

Use UV to install all needed packages locally #3124

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 12 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
80 changes: 75 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,82 @@
# Used for local development, not to be published.
aabmass marked this conversation as resolved.
Show resolved Hide resolved
[project]
name = "opentelemetry-python-contrib"
version = "0.0.0" # This is not used.
requires-python = ">=3.8"
dependencies = [
"opentelemetry-api",
"opentelemetry-sdk",
"opentelemetry-semantic-conventions",
"opentelemetry-test-utils",
"opentelemetry-instrumentation",
"opentelemetry-instrumentation-asgi[instruments]",
"opentelemetry-instrumentation-dbapi",
"opentelemetry-instrumentation-fastapi[instruments]",
"opentelemetry-instrumentation-httpx[instruments]",
"opentelemetry-instrumentation-jinja2[instruments]",
"opentelemetry-instrumentation-pymongo[instruments]",
"opentelemetry-instrumentation-pyramid[instruments]",
"opentelemetry-instrumentation-sqlalchemy[instruments]",
"opentelemetry-instrumentation-sqlite3",
"opentelemetry-instrumentation-system-metrics",
"opentelemetry-instrumentation-urllib",
"opentelemetry-instrumentation-urllib3[instruments]",
"opentelemetry-instrumentation-wsgi",
"opentelemetry-util-http",
]

# https://docs.astral.sh/uv/reference/settings/
[tool.uv]
package = false # https://docs.astral.sh/uv/reference/settings/#package
aabmass marked this conversation as resolved.
Show resolved Hide resolved

# https://docs.astral.sh/uv/reference/settings/#sources
[tool.uv.sources]
opentelemetry-api = { git = "https://github.com/open-telemetry/opentelemetry-python", branch = "main", subdirectory = "opentelemetry-api" }
opentelemetry-sdk = { git = "https://github.com/open-telemetry/opentelemetry-python", branch = "main", subdirectory = "opentelemetry-sdk" }
opentelemetry-semantic-conventions = { git = "https://github.com/open-telemetry/opentelemetry-python", branch = "main", subdirectory = "opentelemetry-semantic-conventions" }
opentelemetry-test-utils = { git = "https://github.com/open-telemetry/opentelemetry-python", branch = "main", subdirectory = "tests/opentelemetry-test-utils" }
opentelemetry-instrumentation = { workspace = true }
opentelemetry-instrumentation-asgi = { workspace = true }
opentelemetry-instrumentation-dbapi = { workspace = true }
opentelemetry-instrumentation-fastapi = { workspace = true }
opentelemetry-instrumentation-httpx = { workspace = true }
Kludex marked this conversation as resolved.
Show resolved Hide resolved
opentelemetry-instrumentation-jinja2 = { workspace = true }
opentelemetry-instrumentation-pymongo = { workspace = true }
opentelemetry-instrumentation-pyramid = { workspace = true }
opentelemetry-instrumentation-sqlalchemy = { workspace = true }
opentelemetry-instrumentation-sqlite3 = { workspace = true }
opentelemetry-instrumentation-system-metrics = { workspace = true }
opentelemetry-instrumentation-urllib = { workspace = true }
opentelemetry-instrumentation-urllib3 = { workspace = true }
opentelemetry-instrumentation-wsgi = { workspace = true }
opentelemetry-util-http = { workspace = true }

# https://docs.astral.sh/uv/reference/settings/#workspace
[tool.uv.workspace]
members = [
"opentelemetry-instrumentation",
# TODO: When all instrumentation packages are moved to the workspace, we can replace the below with `instrumentation/*`.
"instrumentation/opentelemetry-instrumentation-asgi",
"instrumentation/opentelemetry-instrumentation-dbapi",
"instrumentation/opentelemetry-instrumentation-fastapi",
"instrumentation/opentelemetry-instrumentation-httpx",
"instrumentation/opentelemetry-instrumentation-jinja2",
"instrumentation/opentelemetry-instrumentation-pymongo",
"instrumentation/opentelemetry-instrumentation-pyramid",
"instrumentation/opentelemetry-instrumentation-sqlalchemy",
"instrumentation/opentelemetry-instrumentation-sqlite3",
"instrumentation/opentelemetry-instrumentation-system-metrics",
"instrumentation/opentelemetry-instrumentation-urllib",
"instrumentation/opentelemetry-instrumentation-urllib3",
"instrumentation/opentelemetry-instrumentation-wsgi",
"util/opentelemetry-util-http",
]

[tool.ruff]
# https://docs.astral.sh/ruff/configuration/
target-version = "py38"
line-length = 79
extend-exclude = [
"_template",
"*_pb2*.py*",
]
extend-exclude = ["_template", "*_pb2*.py*"]
output-format = "concise"

[tool.ruff.lint]
Expand Down Expand Up @@ -38,4 +109,3 @@ known-third-party = [
"redis_opentracing",
"opencensus",
]

Loading
Loading