Failure during release in Travis CI aborts publishingon readthedocs.io
juarezr opened this issue · 3 comments
juarezr commented
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
juarezr commented
Investigation
Tracks and Clues
- travis-ci.com Build #671 fails on Job #671.1 running on Python: 2.7
- According to readthedocs.io this started happening after release v1.6.8
- travis-ci.com Build #668 successfully passed all jobs including on Job #668.1 running on Python: 2.7
- Probably the root-cause is Python 2.7 EOL on January 1st, 2020
Related
- PR #477 - Add pypi deploy (changes)
- Build and CI config files:
- travis-ci.org: .travis.yml (history)
- tox: tox.ini (history)
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
fromxenial
to newer (buster
) - Moving deploy on
.travis.yml
from python version2.7
to newer version matching the distro on travis-ci.org. Maybe3.8
. - Move release from travis-ci.org to Github Actions like in #549
juarezr commented
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"]}
juarezr commented
- After being added as maintainer, I fixed a bug in the petl.readthedocs.io configuration.
- The bug was introduced in 41a59cc of #533 when requirements-test.txt was renamed from
rtfd_requirements.txt