Skip to content

Commit 1ec773c

Browse files
authored
Fix consuming API as package from git revision (#93)
* `tool.hatch.build.targets.wheel` `packages` field should contain relatative path to exposed packages. * sdist should contain include statement not packages
1 parent e42a397 commit 1ec773c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ Repository = "https://github.com/qdrant/qdrant-cloud-public-api"
1616

1717
# Consider this as *happens in the time of `sdist` creation* i.e. at the time of packaging.
1818
[tool.hatch.build.targets.sdist]
19-
# Remove prefix from the generated sources, installed package will have the structure `qdrant/cloud`
20-
packages = ["gen/python/qdrant", "gen/python/google", "gen/python/buf"]
19+
include = ["gen/python/qdrant", "gen/python/google", "gen/python/buf"]
2120

2221
[tool.hatch.build.targets.wheel]
23-
# Here we already have shortened packages, due to `packages` in `sdist`
24-
packages = ["qdrant", "google", "buf"]
22+
# Remove prefix from the generated sources, installed package will have the structure `qdrant/cloud`
23+
packages = ["gen/python/qdrant", "gen/python/google", "gen/python/buf"]
2524

2625

2726
[build-system]

0 commit comments

Comments
 (0)