Dependency rooted in a subfolder of a GIT repository
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
Feature request
Currently, as far as I can figure, it is impossible to use a GIT repository as a dependency source where the setup.py
or pyproject.toml
file is not in the root directory but in some sub-folder of the repository.
E.g. GIT repo structure:
- GIT root
- pythonmodule
- setup.py / pyproject.toml
- module1.py
- module2.py
- javamodule
- pom.xml
- cmodule
- Makefile
- pythonmodule
In this example I would like to be able to point poetry to the pythonmodule
directory inside this repo, for example using poetry add mydep --git https://github.com/foo/bar.git --path path/to/mydep
. I don’t think this can be accomplished via a separate repository definition, however, the documentation is a bit scarce on that topic.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:99
- Comments:34 (9 by maintainers)
Top Results From Across the Web
Dependency rooted in a subfolder of a GIT repository #755
In this example I would like to be able to point poetry to the pythonmodule directory inside this repo, for example using poetry...
Read more >Dart package dependency to subdirectory of git repo
Is there a way to specify a git dependency to such a subfolder within a git repo? I know that I can clone...
Read more >dependency package in subdirectory of a GitHub Repo
Imports: tibble, ggplot2 Remotes: gitlab::jimhester/covr. I'm trying to do this for a package that's not at the root of a github repository.
Read more >Rewriting git history simply with git-filter-repo
In this post I describe how I used git-filter-repo in Docker to rewrite the history of a git repository to move files into...
Read more >Specifying Dependencies - The Cargo Book
Specifying dependencies from git repositories. To depend on a library located in a git repository, the minimum information you need to specify is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.
Do I understand correctly that it is not currently possible to install psycopg3 using poetry, owing to the lack of subdirectory support?
with pip or requirement it is possible to use:
Is there similar support for poetry?