From e755c918fca1bc00496e7fd0f14f05bda9a6b06f Mon Sep 17 00:00:00 2001 From: Brian Cavagnolo Date: Wed, 17 Feb 2021 13:22:08 -0800 Subject: [PATCH] attempt to fix pypi publication travis' dpl command seems to be broken for python 2: https://github.com/travis-ci/dpl/issues/1232 This terrible work-around forces wget to just download the 2.7 pip. Blech. --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6396243..efc46b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ services: docker +dist: focal env: global: @@ -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