Minor updates to scripts (#1351)

This commit is contained in:
Srikanth Chekuri
2022-09-23 12:48:37 +05:30
committed by GitHub
parent 9a2285a42b
commit 44da384853
3 changed files with 6 additions and 5 deletions

View File

@ -456,6 +456,7 @@ class FalconInstrumentor(BaseInstrumentor):
def instrumentation_dependencies(self) -> Collection[str]:
return _instruments
# pylint:disable=no-self-use
def _remove_instrumented_middleware(self, app):
if (
hasattr(app, "_is_instrumented_by_opentelemetry")
@ -477,6 +478,7 @@ class FalconInstrumentor(BaseInstrumentor):
for x in app._middlewares_list
if not isinstance(x, _TraceMiddleware)
]
# pylint: disable=c-extension-no-member
app._middleware = falcon.api_helpers.prepare_middleware(
app._middlewares_list,
independent_middleware=app._independent_middleware,

View File

@ -27,14 +27,13 @@ DISTDIR=dist
fi
)
done
# Build a wheel for each source distribution
(
cd $DISTDIR
for x in *.tar.gz ; do
# NOTE: We filter beta vs 1.0 package at this point because we can read the
# version directly from the .tar.gz file.
if (echo "$x" | grep -Eq ^opentelemetry-.*-0\..*\.tar\.gz$); then
pip wheel --no-deps $x
if (echo "$x" | grep -Eq ^opentelemetry_.*-0\..*\.tar\.gz$); then
:
else
echo "Skipping $x because it is not in pre-1.0 state and should be released using a tag."
rm $x

View File

@ -282,7 +282,7 @@ def find_targets_unordered(rootpath):
continue
if any(
(subdir / marker).exists()
for marker in ("pyproject.toml")
for marker in ("pyproject.toml",)
):
yield subdir
else:
@ -647,7 +647,7 @@ def update_dependencies(targets, version, packages):
targets,
"pyproject.toml",
fr"({package_name}.*)==(.*)",
r"\1== " + version,
r"\1== " + version + '",',
)