-
Notifications
You must be signed in to change notification settings - Fork 218
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
Fix Tox to use Poetry hermetically #531
Conversation
It looks like the Python version doesn't need to change as I mentioned in the issue, as long as |
This change fixes #526 . Would it be possible to get this reviewed? |
Looking now, thanks btw |
Looks like there are some conflicts and I'm not able to sort them out |
287b275
to
5173ba8
Compare
Sorry about the force-pushes - I've just rebased this onto |
Did you want me to rebase again, or did you want to do it once any PRs have been merged that were planned? I've set it to allow edits by maintainers, but I'm not sure if that allows you to do that or not. |
Your PR should be the last thing to touch the deps for a while so please could you rebase again. |
5003d14
to
dc38406
Compare
Rebased. |
Ah, will quickly have to re-sign the commits again |
With the existing setup, Tox could sometimes end up using the Poetry virtualenv for all test runs.
This split should mean that Tox only installs the dependencies that are actually necessary for testing, rather than all of the `dev` dependencies.
This should mean that the project can continue to support Python 3.7, due to how Tox handles its own direct dependencies.
This covers the earliest supported version, the earliest non-EOL supported version, and the latest supported version.
dc38406
to
4fbe196
Compare
I'm assuming it's not possible to use the old tox_ini_legacy key still right? |
I believe can do that if you want, though having a separate |
Did you want me to try and change the config back to being within |
If you wouldn't mind giving it a go, that'd be nice. I'd like to keep the number of config files down |
It seems to work fine (though isn't supported by the |
The formatting `pre-commit` hook doesn't support this, so it has also been removed.
Linking an open issue about the |
Thanks |
With the existing setup, Tox could sometimes end up using the Poetry virtualenv for all test runs, rather than isolated environments. This meant that only the developer's Python version would be used, defeating the point of the Tox setup. Using
tox-poetry-installer
, the Tox runs can install the Poetry dependencies hermetically.