Last active
August 14, 2022 03:45
-
-
Save gh640/01dff3f3bcd20415fe5270938e795a5c to your computer and use it in GitHub Desktop.
Poetry setting to make the project private (prevent accidental push)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.poetry] | |
name = "mypackage" | |
version = "0.1.0" | |
description = "" | |
authors = [] | |
classifiers = [ | |
"Private :: Do not Upload" | |
] |
The latest Poetry version when I made this gist is 1.1.13
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By adding
Private :: Do not Upload
toclassifiers
in[tool.poetry]
, you can prevent the project form being made public with a mistake.It appears this is the Python official way.
See also: