Common package managers buildpack #339
Replies: 3 comments 6 replies
-
|
100% +1 on consolidating these. It is less overhead to have a more complicated buildpack, than 10 less complicated buildpacks (IMHO). @jericop - What do you think about this? |
Beta Was this translation helpful? Give feedback.
-
|
I also like this idea. Perhaps we could make the new common buildpack require a pyproject.toml with a supported backend (as part of the detection) so that we are focused on supporting the future direction of python projects? I imagine that the separate buildpacks will remain operational for the foreseeable future, but we could focus future buildpack development on the common buildpack and steer users towards modern projects samples so that we eventually can stop supporting the individual buildpacks. I'm glad to hear that pyproject.toml has gained some traction. There are so many ways to build python apps that it's all too easy for a user to find an outdated example project. Thanks for bringing this up. |
Beta Was this translation helpful? Give feedback.
-
|
I would put it as a documented recommendation rather than a requirement. Maybe have an environment variable that would trigger a detection failure if one wants to ensure that I think this would allow for a smoother adoption of this new buildpack. I don't have a poc available yet but before diving into it, what would be the procedure to make it happen ? I can see two options:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
The python packaging world is pretty diverse and has multiple tools at disposal as shown by the various buildpacks that are out there to provide support for them.
Currently there is:
In the mean time, new tools have emerged such as mamba, pixi, uv, just to name the most recent.
At the same time, the
pyproject.tomlfile has gain traction and is not as attached to poetry as it was at the start.Adding support for a new package manager usually consist of creating two buildpacks:
With
pyproject.tomlbeing more in use but supporting different backends, the current detection does not work since it only checks for the presence of the file.With all of that in mind, I was wondering whether it would not be beneficial to create a new buildpack that would be responsible for all the detection and use of selected package manager rather than having a pair for each tool.
The goal would be to unify the various detection under one roof so that we could reduce the number of buildpacks to maintain for the same functionality.
This would mean a more complex buildpack but, at the same time, alleviate adding support for a new tool.
What do you think ?
Beta Was this translation helpful? Give feedback.
All reactions