You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to migrate from poetry to hatch and I'm struggling a bit with the include / only-include definition.
I want to have full control over whats getting in my dists so I use only-include to specify the required files. Among those files are a few that all are starting with manifest-. So I figured I use something like this:
[tool.hatch.build.targets.sdist] # wheel or sdist doesn't seem to matteronly-include = [
"my_package",
"scripts",
"manifest-*",
]
However the manifest files are not getting included in the distributions. Only when I don't use globbing and explicitely spell them out they are added. When I use include, the globbing seems to work.
Is this intended behaviour? What am I doing wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to migrate from poetry to hatch and I'm struggling a bit with the include / only-include definition.
I want to have full control over whats getting in my dists so I use
only-include
to specify the required files. Among those files are a few that all are starting withmanifest-
. So I figured I use something like this:However the manifest files are not getting included in the distributions. Only when I don't use globbing and explicitely spell them out they are added. When I use
include
, the globbing seems to work.Is this intended behaviour? What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions