mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-02 19:47:17 +08:00
Minor updates to scripts (#1351)
This commit is contained in:
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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 + '",',
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user