Repository navigation
Replies: 2 comments
|
So this is puzzling. The package with just an Even more puzzling, the second package, which has the SAME TWO INTERMEDIATE directories that are empty (per PEP-420), is bundled and packaged correctly. This library has about 100 LOC in total, the first (the one that isn't being picked up) is a single class, with 3 classmethods, and is 24 LOC (including newlines and the final empty line, IDK if this matters) |
|
The configuration is not the problem (the second package proves it), so the difference is in the paths. Hatchling applies the repository's git check-ignore -v theNamespace/intermediate/<package>/__init__.pyIf that prints a pattern, that is the cause. Reproduced with hatchling 1.32.0: a repository whose [tool.hatch.build.targets.wheel]
packages = ["theNamespace"]
ignore-vcs = trueIf References:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm struggling to get reliable name-space packages building.
I have several different projects, each building a package. Each package provides a different "thing" within the namespace, and the folder structure of the namespace (and each) package is tightly defined.
team-package1team-package2In each pyproject.toml file, I've got this for my build target
edit: here's the complete
pyproject.tomlfor the failing build (where the .whl is just empty)When building the second team package, my whl contains the full folder structure and files. But when I build my first team package, absolutely nothing is included.
What am I doing wrong here?
All reactions