如何在Travis CI上构建Python 3.8?

oro*_*ome 7 python-3.x travis-ci

例如,当我按照提供说明在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
Run Code Online (Sandbox Code Playgroud)

我懂了

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.
Run Code Online (Sandbox Code Playgroud)

如何在Travis CI上构建Python 3.8?

Cas*_*mon 8

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

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