Skip to content

Commit 6cabc30

Browse files
committed
Fix python pkg deployment
Signed-off-by: Vadim Markovtsev <[email protected]>
1 parent e4fa650 commit 6cabc30

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,16 @@ jobs:
119119
- unzip -d ~/.local protoc.zip && rm protoc.zip
120120
- go get -v github.com/golang/dep/cmd/dep
121121
- export PATH=$GOPATH/bin:$PATH
122-
- pip install twine pyopenssl
122+
- (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
123+
- sudo pip3 install twine pyopenssl
123124
script:
124-
- test $(python3 python/setup.py --version) == $TRAVIS_TAG
125+
- test v$(python3 python/setup.py --version) == $TRAVIS_TAG
125126
install:
126127
- set -e
127128
- travis_retry make
128129
- cd python
129130
- python3 setup.py bdist_wheel
131+
- cp dist/*py3-none-any* $GOPATH/bin
130132
- cd ..
131133
after_success:
132134
- gzip -S .linux_amd64.gz $GOPATH/bin/hercules
@@ -139,7 +141,7 @@ jobs:
139141
on:
140142
tags: true
141143
- provider: script
142-
script: twine upload python/dist/*py3-none-any* -u $PYPI_LOGIN -p $PYPI_PASS
144+
script: twine upload $GOPATH/bin/*py3-none-any* -u $PYPI_LOGIN -p $PYPI_PASS
143145
skip_cleanup: true
144146
on:
145147
tags: true

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<a href="http://godoc.org/gopkg.in/src-d/hercules.v10"><img src="https://godoc.org/gopkg.in/src-d/hercules.v10?status.svg" alt="GoDoc"></a>
88
<a href="https://travis-ci.com/src-d/hercules"><img src="https://travis-ci.com/src-d/hercules.svg?branch=master" alt="Travis build Status"></a>
99
<a href="https://ci.appveyor.com/project/vmarkovtsev/hercules"><img src="https://ci.appveyor.com/api/projects/status/49f0lm3v2y6xyph3?svg=true" alt="AppVeyor build status"></a>
10+
<a href="https://pypi.python.org/pypi/labours"><img src="https://img.shields.io/pypi/v/labours.svg" alt="PyPi package status"></a>
1011
<a href="https://hub.docker.com/r/srcd/hercules"><img src="https://img.shields.io/docker/build/srcd/hercules.svg" alt="Docker build status"></a>
1112
<a href="https://codecov.io/gh/src-d/hercules"><img src="https://codecov.io/github/src-d/hercules/coverage.svg" alt="Code coverage"></a>
1213
<a href="https://goreportcard.com/report/github.com/src-d/hercules"><img src="https://goreportcard.com/badge/github.com/src-d/hercules" alt="Go Report Card"></a>

0 commit comments

Comments
 (0)