A thought in process: Pipfile and pyproject.toml #5673
kalebmckale
started this conversation in
Ideas
Replies: 1 comment
-
Yes, poetry already does it. Will be great if pipenv also follows the same. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The more I work with pipenv and Pipfiles, the more I’m wondering if there isn’t an opportunity for simplification, or at least an option.
Most major Python tools have begun to implement an option to store their information and configuration in the pyproject.toml file. While there is no replacement for Pipfile.lock, I wonder if the contents of the user Pipfile itself couldn’t be incorporated into pyproject.toml. Mind you, not as replacement as most tools do still look for their own configuration files if not locating configuration in pyproject.toml.
The nice thing is that Pipfile already uses the TOML standard. Additionally, in most use cases, the dependencies specified in pyproject.toml and in Pipfile packages are identical. I personally would also welcome defining my sources in my pyproject.toml.
The one incompatibility to this idea currently, which I’ve not yet been able to figure out a nice solution for, is the differences between the specifications of versions in pyproject.toml dependencies and Pipfile. I very much prefer the latter, especially since the Pipfile.lock contains all that information, which it has verified and not up to the user to enter by hand.
Brainstorming a bit on the fly here, I wonder if using the
dynamic
option isn’t the path to solve this. I realize this may require an inter-project conversation and development given the Pipfile parser is a different project, but I know something like this would go light years in convincing those at least in my work place to adopt pipenv as a part of the development workflow.Final thoughts: pip + pipenv would now have everything that Poetry has but using Python’s standard tool instead, which may just be the thing some Poetry users would find attractive enough to switch, and more users often means more developers on the project.
Beta Was this translation helpful? Give feedback.
All reactions