Replies: 1 comment 3 replies
-
Have you considered specifying another, local index for installation of deps during deployment? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Multiple sources for the same dependency
Is there a way to specify multiple sources for a project's dependencies?
Example:
During development I specify my dependencies the 'normal' way and just collect them through pypi ('online').
But during deployment I would also like to have a way to create an environment for a project locally / offline. The dependencies will be collected beforehand by using the pdm-download or pdm-wheel plugins. And all of the dependencies will be available locally on disk, shared between multiple projects. So I would like to be able to install them from that 'local pool'.
A way to achieve this is to make two dependency groups, both defining the same dependencies but with different sources (?). But this is not really desirable since I don't want to define the dependencies twice, possible getting specific versions wrong etc.
Any other way to achieve this? Specify a source with a fallback source maybe?
Beta Was this translation helpful? Give feedback.
All reactions