diff --git a/.travis.yml b/.travis.yml index 621e13f5..83c3e314 100644 --- a/.travis.yml +++ b/.travis.yml @@ -119,14 +119,16 @@ jobs: - unzip -d ~/.local protoc.zip && rm protoc.zip - go get -v github.com/golang/dep/cmd/dep - export PATH=$GOPATH/bin:$PATH - - pip install twine pyopenssl + - (wget -O - https://bootstrap.pypa.io/get-pip.py || wget -O - https://raw.githubusercontent.com/pypa/get-pip/master/get-pip.py) | sudo python3 - pip==18.1 + - sudo pip3 install twine pyopenssl script: - - test $(python3 python/setup.py --version) == $TRAVIS_TAG + - test v$(python3 python/setup.py --version) == $TRAVIS_TAG install: - set -e - travis_retry make - cd python - python3 setup.py bdist_wheel + - cp dist/*py3-none-any* $GOPATH/bin - cd .. after_success: - gzip -S .linux_amd64.gz $GOPATH/bin/hercules @@ -139,7 +141,7 @@ jobs: on: tags: true - provider: script - script: twine upload python/dist/*py3-none-any* -u $PYPI_LOGIN -p $PYPI_PASS + script: twine upload $GOPATH/bin/*py3-none-any* -u $PYPI_LOGIN -p $PYPI_PASS skip_cleanup: true on: tags: true diff --git a/README.md b/README.md index f463fb41..bc6cb151 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ GoDoc Travis build Status AppVeyor build status + PyPi package status Docker build status Code coverage Go Report Card