Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the tox native platform testenv setting #2

Open
jayvdb opened this issue Oct 20, 2020 · 0 comments
Open

Use the tox native platform testenv setting #2

jayvdb opened this issue Oct 20, 2020 · 0 comments

Comments

@jayvdb
Copy link
Owner

jayvdb commented Oct 20, 2020

tox v2.0 introduced platform regex setting, which matches sys.platform and roughly achieves the same as --prepend-ostype-factor.

https://tox.readthedocs.io/en/latest/example/platform.html has an example, but it relies on global envlist to allow invocation of tox without any args. c.f. tox-dev/tox#1144

Using platform should at least be documented in this plugins README, as that may suffice for many users.

Thinking out loud, a --prepend-platform-factor could use the platform testenv settings to automatically add the necessary factors. Tthe plugin currently operates only at global level, not testenv level, but it can easily get these settings from all sections while at global level in order to add them globally.

@jayvdb jayvdb changed the title Make compatible with tox native platform factor Use the tox native platform testenv setting Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant