Pypi deployment with Python 3 in an R build

According to https://github.com/travis-ci/dpl/blob/master/lib/dpl/provider/pypi.rb , pypi deployer is hard-wired to invoke python, twine and pip. So you need to override those commands. Creating symlinks in ~/bin (or whatever is early on PATH) in before_deploy: comes to mind.

Oh, and running the build in a virtualenv (as it also overrides python and commands for installed scripts) is an all-time favorite :slight_smile: (I completely forgot about that!)

1 Like