Pypi deploy fails for Python 2.7

I have a Pypi deploy job for Python 2.7. It used to work fine, but today it fails due to

My deploy code is

  - provider: pypi
    user: $PYPI_USER
    password: $PYPI_PASSWORD
      all_branches: true
      tags: true
      python: 2.7
    skip_cleanup: true

And the error is

Successfully installed dpl-pypi-1.10.16

1 gem installed

2021-06-02 07:31:50 URL: [1937800/1937800] -> "-" [1]

ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use instead.

Couldn't install pip, setuptools, twine or wheel.

failed to deploy

Is there any way to ask Travis to download from Python 2.7 URL?

What dist are you using? Try changing to focal via:

dist: focal

I did not specify a dist, but it still failed, after I change the dist to focal today.

My failed job link is 510627538

@Montana My CI job has 3 Python versions, 2.7, 3.5 and 3.6, and it only deploy Python 2.7 artifacts. 3.5 and 3.6 are only for compatibility test.

My .travis.yml