-
-
Notifications
You must be signed in to change notification settings - Fork 549
tox requires not exposed in the config object #1918
Copy link
Copy link
Closed
Labels
feature:newsomething does not exist yet, but shouldsomething does not exist yet, but should
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature:newsomething does not exist yet, but shouldsomething does not exist yet, but should