Skip to content

Commit f0757c8

Browse files
committed
skip containerid again
Signed-off-by: emdneto <[email protected]>
1 parent 012ddc8 commit f0757c8

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

scripts/build.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
#!/bin/sh
2-
32
# This script builds wheels for the API, SDK, and extension packages in the
43
# dist/ dir, to be uploaded to PyPI.
5-
64
set -ev
7-
85
# Get the latest versions of packaging tools
96
python3 -m pip install --upgrade pip build setuptools wheel
10-
117
BASEDIR=$(dirname "$(readlink -f "$(dirname $0)")")
128
DISTDIR=dist
13-
149
(
1510
cd $BASEDIR
1611
mkdir -p $DISTDIR
1712
rm -rf ${DISTDIR:?}/*
18-
1913
for d in exporter/*/ opentelemetry-instrumentation/ opentelemetry-contrib-instrumentations/ opentelemetry-distro/ instrumentation/*/ processor/*/ propagator/*/ resource/*/ sdk-extension/*/ util/*/ ; do
2014
(
2115
echo "building $d"
@@ -27,12 +21,15 @@ DISTDIR=dist
2721
fi
2822
)
2923
done
30-
3124
(
3225
cd $DISTDIR
3326
for x in * ; do
27+
# FIXME: Remove this logic once these packages are available in Pypi
28+
if echo "$x" | grep -Eq "^opentelemetry_resource_detector_containerid.*(\.tar\.gz|\.whl)$"; then
29+
echo "Skipping $x because of erroneous uploads. See: https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2053"
30+
rm $x
3431
# FIXME: Remove this once opentelemetry-resource-detector-azure package goes 1.X
35-
if echo "$x" | grep -Eq "^opentelemetry_resource_detector_azure.*(\.tar\.gz|\.whl)$"; then
32+
elif echo "$x" | grep -Eq "^opentelemetry_resource_detector_azure.*(\.tar\.gz|\.whl)$"; then
3633
echo "Skipping $x because of manual upload by Azure maintainers."
3734
rm $x
3835
# NOTE: We filter beta vs 1.0 package at this point because we can read the

0 commit comments

Comments
 (0)