Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions poetry/core/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def create_poetry(self, cwd=None): # type: (Optional[Path]) -> Poetry
package.keywords = local_config.get("keywords", [])
package.classifiers = local_config.get("classifiers", [])

package.private = local_config.get("private", False)

if "readme" in local_config:
package.readme = Path(poetry_file.parent) / local_config["readme"]

Expand Down Expand Up @@ -94,6 +96,7 @@ def create_poetry(self, cwd=None): # type: (Optional[Path]) -> Poetry
package.add_dependency(name, constraint, category="dev")

extras = local_config.get("extras", {})

for extra_name, requirements in extras.items():
package.extras[extra_name] = []

Expand Down
4 changes: 4 additions & 0 deletions poetry/core/json/schemas/poetry-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@
"description": "The full url of the custom url."
}
}
},
"private": {
"type": "boolean",
"description": "Mark as private. Turn off the default publish behavior."
}
},
"definitions": {
Expand Down