Skip to content

Project Name: Products.zms vs. ZMS #493

Description

@drfho

References:

  1. chore(pyproject): Renamed and enabled namespaces #483
  2. 58faa1c

QUESTION

The projejct cannot published on PyPI as "ZMS" anymore. Is there an option for an alias name that is used exclusively by the PyPI-worklow?

ANSWER (by Copilot)

No — there isn’t a PyPI-only “alias name” field in pyproject.toml.

For Python packaging, the distribution name is the project’s canonical package name, and tools expect that name consistently across builds and publishing. So if your pyproject.toml now says name = "Products.zms", that is the name build backends and installers will treat as the distribution name; PyPI won’t separately map that to an unrelated published name like ZMS.

What this means in practice:

  • If you want the package on PyPI to remain ZMS, then the project metadata name should normally also be ZMS.
  • Installing from Git can still target the same project, but pip will compare the built package metadata name, so the built distribution name should match what is expected.
  • The import package name and the distribution name do not have to be identical, but the published distribution name itself does not get a special PyPI-only alias.

So your likely options are:

  1. Keep project.name = "ZMS" in pyproject.toml
    This is the safest if you already publish ZMS on PyPI.
  2. Use Products.zms only as the Python import/package path, not the distribution name.
    Example distinction:
    • distribution/package on PyPI: ZMS
    • mport path in code: Products.zms
  3. Rename the PyPI project to Products.zms
    Usually undesirable if ZMS already exists and users depend on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions