https://pantsbuild.org/ logo
#general
Title
# general
f

fresh-cat-90827

10/25/2022, 4:03 PM
is it a limit of the Pants
setup_py
macro(?) or just a limitation of the
peek
command? It doesn’t report the fields in the
provides
field of the
python_distribution
target. See the thread.
Given
Copy code
python_distribution(
    name="my-wheel",
    provides=setup_py(
        name="helloworld",
        version="0.0.1",
    ),
)
the output:
Copy code
$ ./pants peek //:my-wheel
[
  {
    "address": "//:my-wheel",
    "target_type": "python_distribution",
    "dependencies": [],
    "dependencies_raw": null,
    "description": null,
    "entry_points": null,
    "env_vars": null,
    "generate_setup": null,
    "interpreter_constraints": null,
    "long_description_path": null,
    "provides": "helloworld",
    "sdist": true,
    "sdist_config_settings": null,
    "tags": null,
    "uses_mypyc": false,
    "wheel": true,
    "wheel_config_settings": null
  }
]
with only
"provides": "helloworld",
coming from name, but there is no
version
easy fix to have a str representation that includes version 🙂
f

fresh-cat-90827

10/25/2022, 5:06 PM
Oh perfect, thanks Andreas!
2 Views