-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
auto provision requires environment #998
Comments
sounds like a good idea a tox integration of pre-commit and basic pytest-plugin might be nice starting points |
the pytest has quite a few moving parts with it so not sure it would be the best fit 🤔 |
@gaborbernat "basic" would mean something that can invoke pytest plainly with posargs, nothing else |
This would be brilliant to have! Just name it This also solves another problem: we no longer need to upgrade tox on the operatiing system to support newer features, tox could install a newer tox inside .meta and use it. |
Sounds like a good direction to explore. I also like the idea of being able to have a different version of tox in that |
Agreed, sounds like a good idea |
I've started work on this (will also restructure the long |
I know that we have no official programmatical API (yet?), but I think we should add a thin compatibility layer here and add a deprecation warning for tox 4. I know for example, that PyCharm uses the session and the config, to implement their tox integration: https://github.com/JetBrains/intellij-community/blob/master/python/helpers/pycharm/_jb_tox_runner.py |
Yeah, will try as much as possible. |
While looking into doing #998 I realized the concept of env logs and actions have been heavily overlooked, furthermore the reporting should not be tied to the session (as we should report before the session object is constructed). This PR tries to fix all this and split up the longer and longer getting ``session.py``.
Although the requires has been implemented using it in practice is not the nicest. Especially when having projects that have different requires subset. It's up to the users to create environments to satisfy those requirements which is PITA. I propose instead we go meta, and create it for them automatically to keep the expectation that you only need to install tox to run tests for a tox powered project:
{toxworkdir}/.meta-tox
and install the specified requirements; then delegate invocations to tox within that virtual environment.@asottile @obestwalter please feed in your thoughts about this.
@RonnyPfannschmidt @nicoddemus what do you think? I believe this would make #828 a usable path to go down: these env providing plugins could be automatically provisioned, and they would be exactly specified -> e.g.
tox-pytest-static == 1.1.0
.The text was updated successfully, but these errors were encountered: