-
Notifications
You must be signed in to change notification settings - Fork 3
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
Take Poetry's lock file into account #24
Comments
I believe I know more or less how to get started on this. But before I start, there is still one thing that somewhat bothers me about this, to make sure this feature is really worth it and what it should do: How would that be any better than having From what I understood, reproducibility is very important. The combination of libraries should be the exact same in the testenv as it will be in production. But in Tox we would most likely need to delegate to pip (or whatever the Possible reasons why it would be better than
|
@sinoroc You may well be right that it's not better - my thinking has been shifting on this for the last week or so. Out of necessity, I've already switched back to a tox config that does it that way. The very visible problem with this approach was that devs needed to explicitly include the separate |
I agree with @mikenerone that it works quite well with I went and added a pull request towards tox so to add a keyword for the "bin" folder (which would then get replaced with "bin" on posix and "Scripts" on Windows). However, one of the maintainers did not like this. They also disapproved this entire approach of mixing in the delegation of installing the venv to poetry like this, basically because accessing binaries outside of the tox testenv was not ideal in their mind. You can read the full thread here. And why not get in touch with the maintainers to receive feedback, perhaps? Either way, I would rather use your plugin than call |
@mikenerone You mean you used to run |
@fredrikaverpil I had read most of that discussion already. I must say I agree with them, mixing the testenvs feels weird. Although I see your point. There has to be a better way to solve this. On the other hand, it is strange when they say that they consider So on that front, poetry is on the right track. It doesn't need to be in the env, it can act on any env that is activated. Also the work in progress that would remove the need to install pip, setuptools, etc. in the env is very welcome. |
Yes, we used to have to do e.g. To answer your second question, devs install both Poetry and tox globally on their systems. The tox
|
An experimental implementation based on reading the TOML in The issue stays open until hopefully the behaviour is proved to be conform to expectations, and/or the implementation can be rewritten to rely directly on poetry-core instead. |
Where will tox expect me to define |
It is a per-env setting:
Of course it can also be set as default for all environments in the nameless [testenv]:
|
Thanks, great. And I should still add the |
The 2 settings are independent and can be used in combination. You can choose to have:
|
There should be a way to instruct Tox to install the pinned versions as read from Poetry's lock file.
UX:
Probably from a UX point of view it could look like this:
Related:
The text was updated successfully, but these errors were encountered: