[REF] travis2docker: Drop .travis.yml support, keep only deployv images - #238
Merged
Conversation
The .travis.yml based generation has not been used for years since the deployv images built from the CI (variables.sh) became the only workflow. Remove the travis yml parsing (env matrix, addons, python versions and apt-source-whitelist submodule), the travis templates, the examples and the PyYAML dependency, fixing the Dependabot alert about PyYAML < 5.1 arbitrary code execution (GHSA-rprw-h62v-c2w7). The --deployv flag is kept as a deprecated no-op for backward compatibility.
Minimum supported version is now Python 3.10: update the GitHub Actions matrix, add python_requires, remove obsolete classifiers, the py2/py<3.7 requirement markers and the universal wheel flag.
…es with py3.8" This reverts commit 7891fd6. The pin to compatibility-version=20.20.* is no longer needed now that Python 3.9 and older are not supported anymore.
Align the lint environment name with the rest of the Vauxoo PyPI packages (pylint-odoo, odoo-pre-commit-hooks).
moylop260
force-pushed
the
main-deployv-only-moy
branch
from
August 7, 2026 18:56
d2e2592 to
03271e8
Compare
Autofixes applied after unpinning --compatibility-version: raw regex strings, contextlib.suppress, partial pathlib usage and formatting. The prints are kept on purpose: variables.sh disables the ruff print check via RUFF_DISABLE_CHECKS.
Complete the pathlib migration started by the autofixes: Path objects end to end in git_run, cli, travis2docker, docker_helper, tests and setup.py. os.path.expandvars is dropped too: the shell already expands environment variables before they reach argv.
Backslashes in a local Windows repo path were not replaced, so the bare clone destination expanded into a deeply nested tree exceeding the 260 chars MAX_PATH limit (fatal: Filename too long). Flatten them like the rest of the separators and enable core.longpaths in the Windows runner. The tests also clone the fixture repo from a relative path: the absolute path was duplicated inside the flattened clone dirname, blowing past the Windows git dir length limit (fatal: '$GIT_DIR' too big).
…-no-clone Existing aliases and scripts still pass --exclude-after-success, --travis-yml-path and --runs-at-the-end-script; accept them like --deployv, print a WARNING when a value is going to be ignored and document them as deprecated in the help, keeping each parameter in its original position for a minimal diff. --no-clone stays functional modernized to the deployv reality: the new --variables-sh-path points to the variables.sh file (or the directory containing it) and skips cloning the repository, the same logic --travis-yml-path provided for .travis.yml.
Run the lint, docs and build jobs with python 3.14, the most recent stable version, and add the python 3.14 and 3.15 classifiers to setup.py.
moylop260
force-pushed
the
main-deployv-only-moy
branch
from
August 7, 2026 21:31
691b322 to
c4fb639
Compare
This was referenced Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove the legacy
.travis.ymlbased generation: the deployv images built from the CI (variables.sh) have been the only workflow used for years.Changes
travis-ci-apt-source-whitelistsubmodule, the travis templates (Dockerfile,entrypoint.sh,rvm_env.sh) and theexamples/. The deployv flow (variables.sh+Dockerfile_deployv) is now the only mode;--deployvis kept as a deprecated no-op.PyYAML==3.12 ; python_version < '3.7'insecure deserialization, GHSA-rprw-h62v-c2w7).python_requires, classifiers, requirement markers, universal wheel flag).--compatibility-versionpin in tox.ini, no longer needed without py3.8.checktox env tolint, aligned with pylint-odoo / odoo-pre-commit-hooks.os.pathto pathlib (keptos.path.expandvars, no pathlib equivalent;docker_helper/build.pyavoids modern syntax since it runs inside containers that may ship old python).Tests were rewritten to build a local git repo fixture with a
variables.shand validate the generated Dockerfile (includingdockerfile_lint) plus the missing-variables.sherror path.tox -e py,tox -e lintandtox -e buildpass.