question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

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:closed
  • Created 5 years ago
  • Reactions:99
  • Comments:34 (9 by maintainers)

github_iconTop GitHub Comments

23reactions
stale[bot]commented, Nov 20, 2019

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.

16reactions
dvarrazzocommented, Mar 13, 2021

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:

pip install -e "git+https://github.com/psycopg/psycopg3.git@9688cd2#egg=psycopg3&subdirectory=psycopg3"
pip install -e "git+https://github.com/psycopg/psycopg3.git@9688cd2#egg=psycopg3-c&subdirectory=psycopg3_c"

Is there similar support for poetry?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found