Skip to content

Optional interpreters #435

@snoack

Description

@snoack

For projects which support a wide range of Python versions, it seems an unnecessary hurdle to force every contributor to install each Python version locally, in particular if not all versions can be installed through the system's package manager, in particular if the tests run additionally by the CI anyway.

It seems this use case has already been considered with the skip_missing_interpreter option. However, I'm not feeling comfortable making each interpreter optional. For example, if code is meant to be compatible with Python 2.7 and 3.4+, everybody should always test on Python 2.7 and 3.4, ideally as well on Python 3.5 and 3.6 but if those interpreters aren't installed it is acceptable to skip those environments.

Some suggestions, how tox could account for that scenario:

  1. Allow skip_missing_interpreter to be used per testenv.
  2. Allow skip_missing_interpreter to list particular interpreters that might be skipped.
  3. Add syntax to indicate environments as optional, e.g. envlist = py27,py34,py35?,py36?.

Metadata

Metadata

Assignees

Labels

area:configurationfeature:newsomething does not exist yet, but shouldhelp:wantedIssues that have been acknowledged, a solution determined and a PR might likely be accepted.level:hardrought estimate that this might be quite hard to implement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions