-
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
Provide ability to read another .toml file instead of pyproject.toml #4460
Comments
Hello @brechtm, thanks for your suggestion. However, poetry follows the principal that there should be only one single source of truth for project metadata (and it should always be the same place). So I don't think we will implement such a feature. Maybe this is something that can be provided by a plugin? The plugin feature is available int the current preview release (1.2.0a2). Specify the directory where poetry should run in, is another topic as you already linked. fin swimmer |
The use case I had in mind is probably better served by support for specifying multiple projects in the same |
This doesn't entirely duplicate #2179 , and this ticket actually gets at what I want to do better than that other ticket. The repo I'm working on provides a pyproject.toml that does not include a I want to specify a pyproject.toml file just for poetry, and not for anything else. I can add this special |
This feature would also be great to work around quirky packages like pip install attrdict # needs to be installed first for wxpython to install
pip install wxpython ... With Poetry that's not so easy. |
Another use-case for this: transitional upgrades, either for frameworks or for Python version e.g. having two pyproject.toml's, one for Python 3.x and another for 3.x+1 in order to have an overlap period where CI needs to pass both builds |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
I am aware that pyproject.toml is a standard in the Python world, but in some cases it can be useful to add another
.toml
file beside it that builds a different kind of package. This requires Poetry to accept a command line option to point it to this other TOML file. I'm failing to think of a proper name, but something like:As I'm writing this more and more questions are surfacing [1], so I'm not sure this is a good idea but I'll still post this here for consideration.
[1] e.g. what to do with the venv when switching from one TOML to another
Somewhat related: Ability to specify the directory to run poetry in instead of always using current directory #2179
The text was updated successfully, but these errors were encountered: