-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Adding github dependency #313
Comments
Seems like the syntax is actually supposed to be |
There no difference.
Unfortunately, there's no way to do it via CLI, but you can manually add an entry into your pyproject.toml like this: [tool.poetry.dependencies]
python = "^3.6"
ansible = { git = "https://github.com/ansible/ansible.git", branch = "devel" }
# or
ansible = { git = "https://github.com/ansible/ansible.git", tag = "v2.6.6" }
# or
ansible = { git = "https://github.com/ansible/ansible.git", rev = "e5664c4" } It should work. |
Do you have plans to improve adding git dependencies via CLI? Solution by @narimanizett works perfectly fine, but better CLI would be great. :) |
@nariman @sdispater Is it possible to add dependency to git with We have a library that is our dev dependency i.e.
now plugin which we use to deploy project to aws lambda uses export function. Problem is that when you have dependency to git branch added manually, default And when I've tried to set
But that didn't help, |
The
|
@sdispater will it also work with setting git repository URL as |
Has this been silently removed in 1.0.0b7?
|
Hello @Granitosaurus, I see two issues:
fin swimmer |
@finswimmer Thanks, |
It seems that the
works as well. Please correct me if I'm wrong. |
My first attempts with ssh failed with the same error. It worked once I switched to https. |
Hi guys, sorry to post this in a closed issue, not know if I need open a new issue for this... we're working with a private repo, when I add the package in the cli, using https protocol this work fine, but it's asking me user and password and because we'll deploy the code with CI/CD I'd prefer use ssh and use the stored ssh keys... when I replace this
for this
or
this doesn't work
I've also tried add my package in the pyproject.toml [tool.poetry.dependencies]
python = "^3.9"
ccxt = "^1.55.69"
xyzidb = { git = "[email protected]:avanti-sf/public/xyzi-team/xyzi/utils/xyzi", branch = "dev" }
here the error is this
what would be the best way to include my private git repo here? thank you guys, best regards.
|
In your GitLab CI job you could try something like this build:
before_script:
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com".insteadOf "ssh://[email protected]"
script:
- poetry install That way you can keep the ssh config and then the CI job would use a temporary token to access the repo with the same permissions as whoever runs the job. You may need to try different values for |
In my case My directory
My git is a submodule, i need to move .git to other name to make it work. |
Poetry (version 1.2.0a2) doesn't want to work with version boundary using GitHub git URLs. I do get:
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In the docs (https://poetry.eustace.io/docs/cli/#add) I see that you can add git dependency but when I tried this I got an error.
I've run this command
poetry add --git https://github.com/karantan/[email protected] ansible
and I got the following error:So how can I install my ansible package that is tagged with
v2.6.0.1
?The text was updated successfully, but these errors were encountered: