<#18265 Generated wheel name is wrong when using n...
# github-notifications
q
#18265 Generated wheel name is wrong when using namespace packages Issue created by RaymondLChastain Describe the bug In a project
project_a
with structure:
Copy code
src/namespace_a/namespace_b/source_code.py'

The command
./pants package :dist` builds a
whl
in dist named
dist/namespace_a.namespace_b-0.0.0-py310-none-any.whl
rather than a wheel file named
dist/project_a-2.3.0-py310-none-any.whl
. Problems: 1. It seems impossible to set the final wheel name using any name string in the
pyproject.toml
,
pants.toml
, or
BUILD
files. 2. Version is always 0.0.0, no matter what the version is specified in the
python_artifact
,
pyproject.toml
, etc. Pants version Which version of Pants are you using? I tried 2.14.1 bit am currently on 2.16.0.dev5 OS Are you encountering the bug on MacOS, Linux, or both? WSL2 Ubuntu 22.04.01 LTS on Windows 11 22H2 (OS Build 22621.1194) Additional info Add any other information about the problem here, such as attachments or links to gists, if relevant. Sanitized python_distrubtion entry:
Copy code
python_distribution(
    name="dist",
    dependencies=[
        "src/namespace_a/namespace_b:lib",
        ":poetry",
    ],
    wheel_config_settings={"--global-option": ["--python-tag", "py310"]},
    generate_setup=False,
    skip_twine=True,
    sdist=False,
    wheel=True,
    provides=python_artifact(name="project_a", version="2.3.0"),
)
pantsbuild/pants