Replies: 1 comment 1 reply
-
I am not an expert, but this may assist. When pants produces a python package, it automatically infers the dependencies, the libraries, that are used (by following the imports). I found the following references to this feature in pants
This means that separating the dependencies in the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From the docs, we have this example of some Poetry dependencies:
In a typical Poetry development and release workflow, developers and CI test steps would install all of these dependencies, but the final artifacts would depend only on requests and flask. From the same docs, we see that the result of the
poetry_requirements(...)
generator is spiritually equivalent to:This representation does not encode any details about which requirements are required at runtime vs required only for development and testing. As a developer new to Pants, and attempting to migrate from Poetry, it's not clear to me if or how I need to express the distinction. Are resolves (part of) Pants' strategy for separating dev requirements from runtime requirements? If so, should a single
poetry_requirements(...)
produce requirements for multiple resolves? Should multiplepoetry_requirements(...)
generators be used?Beta Was this translation helpful? Give feedback.
All reactions