Skip to content

Commit

Permalink
Merge branch 'main' into feat/3073
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv committed May 4, 2023
2 parents 0ff5655 + 3732fd4 commit bf4ad1f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions eachdist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ version=0.39b0.dev

packages=
opentelemetry-opentracing-shim
opentelemetry-opencensus-shim
opentelemetry-exporter-opencensus
opentelemetry-exporter-prometheus
opentelemetry-distro
Expand Down
11 changes: 8 additions & 3 deletions scripts/eachdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,18 @@ def update_version_files(targets, version, packages):

def update_dependencies(targets, version, packages):
print("updating dependencies")
targets = filter_packages(targets, packages)
# PEP 508 allowed specifier operators
operators = ['==', '!=', '<=', '>=', '<', '>', '===', '~=', '=']
operators_pattern = '|'.join(re.escape(op) for op in operators)

for pkg in packages:
search = rf"({basename(pkg)}[^,]*)({operators_pattern})(.*\.dev)"
replace = r"\1\2 " + version
update_files(
targets,
"pyproject.toml",
rf"({basename(pkg)}.*)==(.*)",
r"\1== " + version + '",',
search,
replace,
)


Expand Down
5 changes: 4 additions & 1 deletion shim/opentelemetry-opencensus-shim/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ dependencies = [
]

[project.optional-dependencies]
test = ["opentelemetry-test-utils == 0.39b0.dev", "opencensus == 0.11.1"]
test = [
"opentelemetry-test-utils == 0.39b0.dev",
"opencensus == 0.11.1",
]

[project.urls]
Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/shim/opentelemetry-opencensus-shim"
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ commands =
deps =
pytest
docker-compose >= 1.25.2
requests < 2.29.0

; proto 3 and 4 tests install the respective version of protobuf
proto3: protobuf~=3.19.0
Expand Down

0 comments on commit bf4ad1f

Please sign in to comment.