How to exclude `{package}-{version}.dist-info` folders in packaging results?
WankkoRee opened this issue · comments
Wankko Ree commented
Wankko Ree commented
solved by policy.register_resource_callback(resource_callback)
.
def resource_callback(policy, resource):
res_type = type(resource)
if res_type == "PythonPackageDistributionResource":
# exclude all `.dist-info` folders
resource.add_include = False