ofek / hatch-vcs

Hatch plugin for versioning with your preferred VCS
MIT License
110 stars 15 forks source link

Support building in a subdirectory of the Git repository #65

Closed gipert closed 5 months ago

gipert commented 5 months ago

Is it possible to specify the location of the .git directory? In my use case, the package is located in a subdirectory and pip-installing fails.

repo/
  |- .git/
  `- package/
       `- pyproject.toml
ofek commented 5 months ago
[tool.hatch.version]
source = "vcs"
raw-options = { root = ".." }
gipert commented 5 months ago

Thanks!