Skip to content

Commit

Permalink
Merge branch 'main' into headers
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv committed Feb 15, 2023
2 parents 35ad997 + ffbbb4d commit f5b7288
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions scripts/otel_packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import os
import subprocess
from subprocess import CalledProcessError

import tomli

Expand All @@ -28,12 +29,18 @@ def get_instrumentation_packages():
if not os.path.isdir(pkg_path):
continue

version = subprocess.check_output(
"hatch version",
shell=True,
cwd=pkg_path,
universal_newlines=True,
)
try:
version = subprocess.check_output(
"hatch version",
shell=True,
cwd=pkg_path,
universal_newlines=True,
)
except CalledProcessError as exc:
print(f"Could not get hatch version from path {pkg_path}")
print(exc.output)
raise exc

pyproject_toml_path = os.path.join(pkg_path, "pyproject.toml")

with open(pyproject_toml_path, "rb") as file:
Expand Down

0 comments on commit f5b7288

Please sign in to comment.