如何在Travis CI上构建Python 3.8?

时间:2019-04-26 21:54:30

标签: python-3.x travis-ci

例如,当我按照instructions provided使用Travis构建Python 3.8时,

language: python 

matrix:
  include:
    - name: "Python 3.8 dev"
      python: 3.8-dev
      dist: trusty
      env: PYTHON=python3 PIP=pip3  # Unnecessary on Lunix

I get

3.8-dev is not installed; attempting download
Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/14.04/x86_64/python-3.8-dev.tar.bz2
0.06s$ curl -sSf -o python-3.8-dev.tar.bz2 ${archive_url}
curl: (22) The requested URL returned error: 404 Not Found
Unable to download 3.8-dev archive. The archive may not exist. Please consider a different version.

如何在Travis CI上构建Python 3.8?

1 个答案:

答案 0 :(得分:2)

将dist更改为xenial,这是3.7或更高版本所必需的。

https://docs.travis-ci.com/user/languages/python/#python-37-and-higher