Skip to content

Commit

Permalink
main: HOTFIX - Add wheel dependency for release
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-l-hart committed Jun 29, 2023
1 parent 24837d0 commit 60915ae
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
3 changes: 3 additions & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ grpcio==1.*
grpcio_tools==1.*
cryptography==38.*
requests==2.*

# Needed to build the wheel
wheel
19 changes: 16 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,21 @@ cd $(dirname ${BASH_SOURCE[0]})/..
tag=$(echo $REF | cut -d'/' -f3-)

# Build the docker phase that will release and then test it
docker build . \
--target=release_test \
if docker buildx --help &>/dev/null
then
build_command="docker buildx build --platform=linux/amd64"
else
build_command="docker build"
fi

# First build the release phase, then build the release_test. These two phases
# don't depend on each other in docker, so buildx is "smart" and doesn't build
# release before release_test. They do depend on each other logically, though,
# so we need to build them explicitly in sequence.
build_args="
--build-arg RELEASE_VERSION=$tag \
--build-arg PYPI_TOKEN=${PYPI_TOKEN:-""} \
--build-arg RELEASE_DRY_RUN=${RELEASE_DRY_RUN:-"false"} \
--build-arg RELEASE_DRY_RUN=${RELEASE_DRY_RUN:-"false"}
"
$build_command . --target=release $build_args
$build_command . --target=release_test $build_args

0 comments on commit 60915ae

Please sign in to comment.