Publishing¶
python_project_foundry.publishing ¶
Explicit GitHub publishing for generated projects.
PublishError ¶
Bases: RuntimeError
Raised when a project cannot be safely published.
Source code in src/python_project_foundry/publishing.py
14 15 | |
ProjectPublishingConfig
dataclass
¶
Metadata required to publish a generated project.
Source code in src/python_project_foundry/publishing.py
18 19 20 21 22 23 24 25 | |
load_project_publishing_config ¶
load_project_publishing_config(
project_path: Path,
) -> ProjectPublishingConfig
Load publishing metadata from a generated project's pyproject.toml.
Source code in src/python_project_foundry/publishing.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
publish_project ¶
publish_project(
project_path: Path,
*,
visibility: str,
remote: str = "origin",
configure_pages: bool = True,
dry_run: bool = False,
) -> None
Create and push a GitHub repository, then optionally enable Pages.
Source code in src/python_project_foundry/publishing.py
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |