Skip to content

Include exclude globs with whitelist pattern #1336

@dpgaspar

Description

@dpgaspar

Hi,

Making a POC for using poetry with apache/superset#8079 but I'm having some issues

First superset has a complex directory structure, I'm struggling with the include, exclude parameters in glob, using MANIFEST.in we could whitelist for example:

recursive-exclude superset/static *
recursive-include superset/static/assets/branding *
recursive-include superset/static/assets/dist *

But using poetry toml we can't, how can I implement the same?

# excluding all assets possibilities ( dotted directories and files )
exclude = [
    "superset/assets/*",
    "superset/assets/.*",
    "superset/assets/**/*",
    "superset/assets/**/.*",
    "superset/assets/**/.*/*",
    "superset/assets/**/.*/**/*",
    "superset/assets/**/.*/**/.*",
    "tests/**"
]

include = [
    "superset/assets/branding/**",
    "superset/assets/dist/**",
]

With this pattern all superset/assets get excluded. Any advice?

Metadata

Metadata

Assignees

Labels

area/build-systemRelated to PEP 517 packaging (see poetry-core)kind/bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions