You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Keep project.name = "ZMS" in pyproject.toml
This is the safest if you already publish ZMS on PyPI.
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
Rename the PyPI project to Products.zms
Usually undesirable if ZMS already exists and users depend on it.
References:
QUESTION
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.tomlnow saysname = "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 likeZMS.What this means in practice:
ZMS, then the project metadata name should normally also beZMS.So your likely options are:
project.name = "ZMS"in pyproject.tomlThis is the safest if you already publish ZMS on PyPI.
Example distinction:
Usually undesirable if ZMS already exists and users depend on it.