Skip to content

Commit 387a709

Browse files
authored
Add note on private classifier (#8783)
1 parent 2340d73 commit 387a709

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/guides/publish.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@ build it by default. This means that your project may not be ready for distribut
1313
the effect of declaring a build system in the
1414
[project concept](../concepts/projects.md#build-systems) documentation.
1515

16+
!!! note
17+
18+
If you have internal packages that you do not want to be published, you can mark them as
19+
private:
20+
21+
```toml
22+
[project]
23+
classifiers = ["Private :: Do Not Upload"]
24+
```
25+
26+
This setting makes PyPI reject your uploaded package from publishing. It does not affect
27+
security or privacy settings on alternative registries.
28+
29+
We also recommend only generating per-project tokens: Without a PyPI token matching the project,
30+
it can't be accidentally published.
31+
1632
## Building your package
1733

1834
Build your package with `uv build`:

0 commit comments

Comments
 (0)