Hi there,
We have a build environment that is (still) based on Python 3.5 and we
need to use the repo tool within that old env.
Any recommendations on the repo tool version I should use with python 3.5?
looking into git history [1]
Jan 2021 launcher: support Python 3.5 for now
Jan 2021 main: require Python 3.5 now
April 2021 tox: enable python 3.5 & 3.9 testing
June 2021 Drop support for Python 3.5
Looking at tags, it looks like v2.11 was released in January, and v2.16 in June.
Maybe v2.15.4 would be a good candidate?
I'm getting
[2023-09-02T23:47:05.352Z] repo: warning: your Python 3 version is no
longer supported; Please upgrade to Python 3.6+.
and then in RepoSourceVersion
[2023-09-02T23:47:05.352Z] TypeError: __init__() got an unexpected
keyword argument 'encoding'
Coming from
[2023-09-02T23:47:05.352Z] 0.00 git_command.py(77): result =
subprocess.run([GIT, 'describe', HEAD], stdout=subprocess.PIPE,
[2023-09-02T23:47:05.352Z] 0.00 git_command.py(78):
encoding='utf-8', env=env, check=False)
Posting my own investigation and solution:
so i've tried v2.14.5, v2.13.8 and they fail too, v2.12.2 seems to work.
So if for some reason you're stuck on Ubuntu 14.04, install python 3.5
and repo v2.12.x, set the environment variable REPO_REV and install
repo front end from
https://raw.githubusercontent.com/GerritCodeReview/git-repo/${REPO_REV}/repo
Cheers,
Chris
[1]
https://github.com/search?q=repo%3AGerritCodeReview%2Fgit-repo+python+3.5&type=commits