is it a limit of the Pants `setup_py` macro(?) or ...
# general
f
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
Oh perfect, thanks Andreas!