Skip to content

Commit

Permalink
attempt to fix pypi publication
Browse files Browse the repository at this point in the history
travis' dpl command seems to be broken for python 2:

travis-ci/dpl#1232

This terrible work-around forces wget to just download the 2.7
pip. Blech.
  • Loading branch information
bcavagnolo committed Feb 18, 2021
1 parent c37fb04 commit e755c91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
services: docker
dist: focal

env:
global:
Expand All @@ -14,6 +15,8 @@ _python_template: &_python_template
before_install: cd client/
install: pip install -e .[test]
script: py.test
before_deploy: sudo cp /usr/bin/wget /usr/bin/_wget && echo -e '#!/bin/bash\n/usr/bin/_wget -nv -O - https://bootstrap.pypa.io/2.7/get-pip.py' | sudo tee /usr/bin/wget
after_deploy: sudo mv /usr/bin/_wget /usr/bin/wget
deploy:
provider: pypi
edge: true
Expand Down

0 comments on commit e755c91

Please sign in to comment.