Skip to content

Commit 343d137

Browse files
authored
Skipping certain folders in release script (#2258)
1 parent 565d2e3 commit 343d137

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

scripts/build.sh

+12-3
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,21 @@ DISTDIR=dist
2727
fi
2828
)
2929
done
30+
3031
(
3132
cd $DISTDIR
32-
for x in *.tar.gz ; do
33+
for x in * ; do
34+
# FIXME: Remove this logic once these packages are available in Pypi
35+
if (echo "$x" | grep -Eq ^opentelemetry_(instrumentation_aiohttp_server|resource_detector_container).*(\.tar\.gz|\.whl)$); then
36+
echo "Skipping $x because of erroneous uploads. See: https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2053"
37+
rm $x
38+
# FIXME: Remove this once opentelemetry-resource-detector-azure package goes 1.X
39+
elif (echo "$x" | grep -Eq ^opentelemetry_resource_detector_azure.*(\.tar\.gz|\.whl)$); then
40+
echo "Skipping $x because of manual upload by Azure maintainers."
41+
rm $x
3342
# NOTE: We filter beta vs 1.0 package at this point because we can read the
34-
# version directly from the .tar.gz file.
35-
if (echo "$x" | grep -Eq ^opentelemetry_.*-0\..*\.tar\.gz$); then
43+
# version directly from the .tar.gz/whl file
44+
elif (echo "$x" | grep -Eq ^opentelemetry_.*-0\..*(\.tar\.gz|\.whl)$); then
3645
:
3746
else
3847
echo "Skipping $x because it is not in pre-1.0 state and should be released using a tag."

0 commit comments

Comments
 (0)