petl-developers/petl

Failure during release in Travis CI aborts publishingon readthedocs.io

juarezr opened this issue · 3 comments

Problem description

The existing release process fails to publish petl documentation to readthedocs.io.

Problem detected on PR #544 with the help of @javidy and @carlcorder.

Reproducible sample

Travis CI failure: Job 671.1

Installing deploy dependencies
Successfully installed dpl-pypi-1.10.16
1 gem installed
2021-03-26 14:08:27 URL:https://bootstrap.pypa.io/get-pip.py [1927630/1927630] -> "-" [1]
ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use https://bootstrap.pypa.io/pip/2.7/get-pip.py instead.
Couldn't install pip, setuptools, twine or wheel.
failed to deploy

Version and installation information

  • When: only during the release process
  • Where: Github / Travis CI
  • Who: readthedocs.io script
  • Why: Failure regarding Python 2.7
  • How: Issuing a new release on github will trigger a release build on travis-ci

Investigation

Tracks and Clues

Related

Possible solutions

One must research the pros and cons of:

  • Some fix to the missing tools in the xenial distro of travis-ci.org
  • Upgrading dist on .travis.yml from xenial to newer (buster)
  • Moving deploy on .travis.yml from python version 2.7 to newer version matching the distro on travis-ci.org. Maybe 3.8.
  • Move release from travis-ci.org to Github Actions like in #549

From github webhook for readthedocs.io:

Request Headers

Request URL: https://readthedocs.org:
Request method: POST
Accept: */*
content-type: application/json
User-Agent: GitHub-Hookshot/8dde19c
X-GitHub-Delivery: 5398feaa-8ea8-11eb-97eb-5cabfef8f9a7
X-GitHub-Event: push
X-GitHub-Hook-ID: ?????
X-GitHub-Hook-Installation-Target-ID: ??????
X-GitHub-Hook-Installation-Target-Type: repository

Response Body

{"build_triggered":true,"project":"petl","versions":["latest"]}