File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 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-
64set -ev
7-
85# Get the latest versions of packaging tools
96python3 -m pip install --upgrade pip build setuptools wheel
10-
117BASEDIR=$( dirname " $( readlink -f " $( dirname $0 ) " ) " )
128DISTDIR=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
You can’t perform that action at this time.
0 commit comments