plain-fireman-49959
12/22/2021, 1:50 PMpython-magic
and the module it exposes is just magic
. I checked the Module Mapping docs, however I don't understand how to use it. I expect to declare in the root BUILD file that such mapping exists
poetry_requirements()
python_requirement(
module_mapping={"python-magic": ["magic"]}
)
But I get a MappingError Targets in root-level BUILD files must be named explicitly.
flat-zoo-31952
12/22/2021, 1:57 PMpoetry_requirements(
module_mapping={"python-magic": ["magic"]},
)
curved-television-6568
12/22/2021, 2:03 PMname=…
to it, like:
python_requirement(name="my-requirement", ...)
poetry_requirements()
target, I think… unless it gets away with being a special breed. Unsure.plain-fireman-49959
12/22/2021, 2:04 PMflat-zoo-31952
12/22/2021, 2:04 PMplain-fireman-49959
12/22/2021, 2:11 PMwitty-crayon-22786
12/22/2021, 4:07 PMpoetry_requirements is a macro, so it should pick up its name some other wayyea, that macro (and
python_requirements
) are both magical right now: there will be magic removal as part of #12915