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

Commit

Permalink
Merge pull request #21 from rberg2/publish-sdk-with-twine
Browse files Browse the repository at this point in the history
Use twine to upload sdk to pypi
  • Loading branch information
rberg2 authored Dec 31, 2019
2 parents 6e640fe + 3d04181 commit cae5587
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ci/sawtooth-publish-python-sdk
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN apt-get update \
python3-pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install --upgrade setuptools \
&& pip3 install --upgrade setuptools twine \
&& echo '[distutils]\n\
index-servers =\n\
pypi\n\
Expand All @@ -43,6 +43,8 @@ password=@PASS@\n\
CMD sed -i'' -e "s/@USER@/$PYPI_USER/g" /root/.pypirc \
&& sed -i'' -e "s/@PASS@/$PYPI_PASS/g" /root/.pypirc \
&& cd /project/sawtooth-sdk-python/ \
&& python3 setup.py sdist upload -r pypi \
&& python3 setup.py sdist bdist_wheel \
&& twine upload dist/* \
&& cd /project/sawtooth-sdk-python/signing \
&& python3 setup.py sdist upload -r pypi
&& python3 setup.py sdist bdist_wheel \
&& twine upload dist/*

0 comments on commit cae5587

Please sign in to comment.