Skip to content

tox requires not exposed in the config object #1918

@hroncok

Description

@hroncok

I cannot find tox requires on the config object. The minversion is there, but the requires are not. They appear to be parsed, used and forgotten.

tox/src/tox/config/__init__.py

Lines 1297 to 1302 in 555f3f1

def handle_provision(self, config, reader):
requires_list = reader.getlist("requires")
config.minversion = reader.getstring("minversion", None)
config.provision_tox_env = name = reader.getstring("provision_tox_env", ".tox")
min_version = "tox >= {}".format(config.minversion or Version(tox.__version__).public)
deps = self.ensure_requires_satisfied(config, requires_list, min_version)

I'd like to be able to read them from a plugin.

I can send a PR, if this would be accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:newsomething does not exist yet, but should

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions