Skip to content

classifiers = ["Private :: Do Not Upload"] short-circuits uv publish entirely #16290

@heyitsaamir

Description

@heyitsaamir

Summary

The guidance on not publishing private packages is to add classifiers = ["Private :: Do Not Upload"] in your pyproject.toml file. However, if you do that in a workspace, and use uv publish, we see:

Caused by: Upload failed with status code 400 Bad Request. Server says: 400 'Private :: Do Not Upload' is not a valid classifier. See https://packaging.python.org/specifications/core-metadata for more information.

and the packages that do need publishing are also not published.

Platform

Ubuntu 24.04.3 LTS

Version

0.9.2

Python version

3.12.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions