-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Suggest Tox isolated_build w/o poetry install #2416
Conversation
@igor47 Sure, this might work for you this way. But there should be a better way to achieve just that. For you and for everyone else. In a Tox configuration you should specify the dependencies in a declarative way (that's what By suggesting a |
Hi, @bittner are you still interested in contributing this to Poetry? If so, please describe both options as according to the team, both have their use. |
I'm not sure I understand. Do you intend, keep the current description and suggest my change only as an alternative way in the docs? |
Yes, that would be the plan. |
|
That's all good. Just to avoid misunderstandings, my point is not what you can do, but what you should do. Usually, the tool dictates how you should do things. I believe, you should tell Tox what to do and it will do it for you (i.e. no need to write down the installation command with your dependencies; only compile a list of dependencies). If you go against the design of the tool you interfere with some of its features and make changes of the setup more difficult. As an alternative, if you want to run just sequences of actual commands then write a Makefile or a shell script. As Poetry is a very popular tool, we have the responsibility to tell developers how to do things the right way. Hence this PR. |
Hey @bittner, the problem with "telling developers how to do things the right way" here, is that there is not a single way. It depends on the goal. Your suggested changes describes the way how to use tox in the same way, a lot of people are doing it, when developing a package with setuptools. The current description, describes a way how to use locked dependencies. That's something a lot of poetry user wanted to do. That's why I think it would be a great benefit for the docs to explain the different options and when to use what. fin swimmer |
In addition to the suggestions above, I believe this one from #1941 is valuable to include. This gives up on using poetry's This appears to be stalled for a while now, are we open to a fresh PR which enumerates the options? |
Superseded by #6026 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Adapts the suggestion about how to integration Poetry with Tox (roughly) following @sinoroc's suggestion. The new way avoids a common anti-pattern (or better: outdated approach) in CI, the imperative installation of prerequisites.
Resolves: #1941