Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit fbca31d

Browse files
authored
Merge pull request #37 from Cargill/rbb-protogen-before-publish
Generate protobufs before uploading to pypi
2 parents a10fa2e + 2d0fdf4 commit fbca31d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ci/sawtooth-publish-python-sdk

+8-1
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ FROM ubuntu:bionic
2626
RUN apt-get update \
2727
&& apt-get install gnupg -y
2828

29-
RUN apt-get update \
29+
RUN echo "deb http://repo.sawtooth.me/ubuntu/ci bionic universe" >> /etc/apt/sources.list \
30+
&& (apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD \
31+
|| apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 8AA7AF1F1091A5FD) \
32+
&& apt-get update \
3033
&& apt-get install -y \
3134
ca-certificates \
3235
python3 \
36+
python3-grpcio-tools \
37+
python3-grpcio \
3338
python3-pip \
39+
python3-protobuf \
3440
&& apt-get clean \
3541
&& rm -rf /var/lib/apt/lists/* \
3642
&& python3 -m pip install --upgrade pip \
@@ -47,5 +53,6 @@ password=@PASS@\n\
4753
CMD sed -i'' -e "s/@USER@/$PYPI_USER/g" /root/.pypirc \
4854
&& sed -i'' -e "s/@PASS@/$PYPI_PASS/g" /root/.pypirc \
4955
&& cd /project/sawtooth-sdk-python/ \
56+
&& /project/sawtooth-sdk-python/bin/protogen \
5057
&& python3 setup.py sdist bdist_wheel \
5158
&& twine upload dist/*

0 commit comments

Comments
 (0)