Skip to content
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

Modular packages #203

Open
jykae opened this issue Nov 9, 2023 · 2 comments
Open

Modular packages #203

jykae opened this issue Nov 9, 2023 · 2 comments

Comments

@jykae
Copy link

jykae commented Nov 9, 2023

Is it possible to define "extras" with dependencies + source files includes?

Looking for build tool that would make modular package possible for internal tools package, would minimize the maintenance if would be possible to do layered package with minimal defaults and then build extra layers with dependencies & source includes.

And if not possible, would you be interested to implement such feature for PDM ?

@pawamoy
Copy link
Contributor

pawamoy commented Nov 9, 2023

I'm not sure to completely understand what you are trying to do. Could you elaborate your use-case a bit, with examples? What do you mean by "layered package with minimal defaults", and "build extra layers with dependencies and source includes"? Can you show what inputs you have and what outputs you would expect, in terms of files/metadata/distributions?

Also, I suspect pdm-backend will only support standards, so if what you're trying to do is not standard, there are few chances support for it will be added to pdm-backend.

@sigma67
Copy link

sigma67 commented Dec 5, 2023

Not sure if this is exactly your use case, but you can write a backend plugin: https://backend.pdm-project.org/hooks/#distribute-the-hook-as-a-plugin

We have created https://github.com/pdm-project/pdm-build-locked to add extras to project metadata on build. The plugin has been transferred to the PDM org and will be turned into a backend plugin soon, which should further enhance its usability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants