Skip to content

Commit

Permalink
Minor updates to scripts (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv authored Sep 23, 2022
1 parent 9a2285a commit 44da384
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -477,6 +478,7 @@ def _remove_instrumented_middleware(self, app):
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,
Expand Down
5 changes: 2 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/eachdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -647,7 +647,7 @@ def update_dependencies(targets, version, packages):
targets,
"pyproject.toml",
fr"({package_name}.*)==(.*)",
r"\1== " + version,
r"\1== " + version + '",',
)


Expand Down

0 comments on commit 44da384

Please sign in to comment.