Skip to content

Commit 44da384

Browse files
authored
Minor updates to scripts (open-telemetry#1351)
1 parent 9a2285a commit 44da384

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ class FalconInstrumentor(BaseInstrumentor):
456456
def instrumentation_dependencies(self) -> Collection[str]:
457457
return _instruments
458458

459+
# pylint:disable=no-self-use
459460
def _remove_instrumented_middleware(self, app):
460461
if (
461462
hasattr(app, "_is_instrumented_by_opentelemetry")
@@ -477,6 +478,7 @@ def _remove_instrumented_middleware(self, app):
477478
for x in app._middlewares_list
478479
if not isinstance(x, _TraceMiddleware)
479480
]
481+
# pylint: disable=c-extension-no-member
480482
app._middleware = falcon.api_helpers.prepare_middleware(
481483
app._middlewares_list,
482484
independent_middleware=app._independent_middleware,

scripts/build.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ DISTDIR=dist
2727
fi
2828
)
2929
done
30-
# Build a wheel for each source distribution
3130
(
3231
cd $DISTDIR
3332
for x in *.tar.gz ; do
3433
# NOTE: We filter beta vs 1.0 package at this point because we can read the
3534
# version directly from the .tar.gz file.
36-
if (echo "$x" | grep -Eq ^opentelemetry-.*-0\..*\.tar\.gz$); then
37-
pip wheel --no-deps $x
35+
if (echo "$x" | grep -Eq ^opentelemetry_.*-0\..*\.tar\.gz$); then
36+
:
3837
else
3938
echo "Skipping $x because it is not in pre-1.0 state and should be released using a tag."
4039
rm $x

scripts/eachdist.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def find_targets_unordered(rootpath):
282282
continue
283283
if any(
284284
(subdir / marker).exists()
285-
for marker in ("pyproject.toml")
285+
for marker in ("pyproject.toml",)
286286
):
287287
yield subdir
288288
else:
@@ -647,7 +647,7 @@ def update_dependencies(targets, version, packages):
647647
targets,
648648
"pyproject.toml",
649649
fr"({package_name}.*)==(.*)",
650-
r"\1== " + version,
650+
r"\1== " + version + '",',
651651
)
652652

653653

0 commit comments

Comments
 (0)