Replies: 1 comment
-
This almost seems like it could be a new type of package source, as described at https://pdm-project.org/latest/usage/config/#configure-the-package-indexes ? Like what if one could do something like this: [[tool.pdm.source]]
name = "github_public"
type = "github"
url = "git+ssh://git@github.com"
[[tool.pdm.source]]
name = "github_enterprise_private"
type = "github"
url = "git+ssh://git@githubenterprise.ourcompany.com" ? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I found that people in my workplace seemed to be largely unaware that they could make their projects depend on a git repo, either in public GitHub or in GitHub Enterprise (GHE). I also found that even if they did know this, they had to google the proper syntax of the URL to add every time they did this. Myself included. So I ended up writing a little utility command (with Typer; not a PDM plugin yet) that makes this easier. And then I wondered if perhaps I should convert this to a PDM plugin and possibly open-source it? But maybe there's already something out there that does this?
An example invocation and some code would probably help explain this better.
An example invocation of this command:
I do this by registering a PDM script in
pyproject.toml
:And the code for
scripts/ghe.py
looks something like this:Beta Was this translation helpful? Give feedback.
All reactions