hundreds-carpet-28072
06/06/2024, 2:44 PMpython_artifact()
map the name
field with underscores rather than keeping the original dashes here? Is that expected behaviour? It would be useful to map the artifact target name to the resulting file.
python_distribution(
name="banana-python-tool-wheel",
dependencies=[
"banana_python/subdir",
],
provides=python_artifact(name="banana-python-tool", version="1.1"),
)
> pants package banana_python/subdir:banana-python-tool-wheel
15:42:26.25 [INFO] Wrote dist/banana_python_tool-1.1-py3-none-any.whl
square-psychiatrist-19087
06/06/2024, 5:05 PMhundreds-carpet-28072
06/06/2024, 5:14 PMpython_distribution
targets we have haven’t experienced the same issue. Maybe because of differences in providing/generating setup.py?square-psychiatrist-19087
06/06/2024, 5:16 PMhundreds-carpet-28072
06/06/2024, 5:16 PMsquare-psychiatrist-19087
06/06/2024, 5:17 PMsquare-psychiatrist-19087
06/06/2024, 5:17 PMIn distribution names, any run of -_. characters (HYPHEN-MINUS, LOW LINE and FULL STOP) should be replaced with _ (LOW LINE)
hundreds-carpet-28072
06/06/2024, 5:17 PMhundreds-carpet-28072
06/06/2024, 5:18 PMsquare-psychiatrist-19087
06/06/2024, 5:20 PMhappy-kitchen-89482
06/06/2024, 5:31 PMhundreds-carpet-28072
06/07/2024, 11:22 AM