Skip to content

Dependency rooted in a subfolder of a GIT repository #755

@sandrinr

Description

@sandrinr
  • 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.

Metadata

Metadata

Assignees

Labels

kind/featureFeature requests/implementations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions