Add pydo, a multi-Python command runner.
Review Request #13089 — Created June 1, 2023 and submitted
pydooptionally works along with
virtualenv-multiverto help run a
command across a range of Python versions. This is useful for installing
dependencies, setting up development environments, or performing various
tests on multiple Python versions with one command.
pydoaccepts a list of Python versions, which may include ranges
3.7-3.11). It looks for versioned scripts (like
easy_install-2.7) to run, and also handles running
pythonX.Y -m pipsyntax to avoid issues with Python's
If versions aren't provided on the command line,
pydowill look for
versions recorded in
$VIRTUAL_ENV/.pydorc. This is created when
generating a new multi-version environment.
If that's not present, versions are loaded from any
setup.cfgfound in the current directory up to
Some of the functionality will soon be used in
ease environment creation.
Been using this for environments for quite a while.
Tested with the various configuration files at different levels in the
Tested with and without ranges and duplicate specified versions.
'tomllib as tomlo' imported but unused Column: 5 Error code: F401
'shutil' imported but unused Column: 1 Error code: F401
'virtualenv_multiver.utils.PyVerError' imported but unused Column: 1 Error code: F401
invalid escape sequence '\s' Column: 35 Error code: W605
- Fixed a bad import for Python 3.11.
- Removed unused imports.
- Marked a regex string with
Revision 2 (+1410 -10)
Checks run (2 succeeded)