Skip to content

Commit 44321d2

Browse files
authored
Merge pull request #43 from robust-python/release/0.28.0
Release/0.28.0
2 parents b89d50a + ecb9512 commit 44321d2

File tree

11 files changed

+337
-20
lines changed

11 files changed

+337
-20
lines changed

.cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"_commit": "ae33027db848df9540b9fb5735866d070f391bef",
2+
"_commit": "192f7bbb0b7533a90c4fd01209d1d7e387c141f2",
33
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
44
"add_rust_extension": false,
55
"author": "Kyle Oliver",

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
3-
"commit": "ae33027db848df9540b9fb5735866d070f391bef",
3+
"commit": "192f7bbb0b7533a90c4fd01209d1d7e387c141f2",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -20,7 +20,7 @@
2020
"license": "MIT",
2121
"development_status": "Development Status :: 1 - Planning",
2222
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
23-
"_commit": "ae33027db848df9540b9fb5735866d070f391bef"
23+
"_commit": "192f7bbb0b7533a90c4fd01209d1d7e387c141f2"
2424
}
2525
},
2626
"directory": null

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## v0.28.0 (2025-11-01)
2+
13
## v0.27.0 (2025-09-18)
24

35
## v0.26.0 (2025-09-18)

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
[56kyleoliver@gmail.com](mailto:56kyleoliver@gmail.com).
63+
[cookiecutter.robust.python@gmail.com](mailto:cookiecutter.robust.python@gmail.com).
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,4 @@ _This project was generated from the [cookiecutter-robust-python][cookiecutter-r
210210
[bandit-documentation]: https://bandit.readthedocs.io/
211211
[conventional-commits]: https://www.conventionalcommits.org/
212212
[pytest-documentation]: https://docs.pytest.org/
213-
[cookiecutter-robust-python]: https://github.com/56kyle/cookiecutter-robust-python
213+
[cookiecutter-robust-python]: https://github.com/robust-python/cookiecutter-robust-python

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,5 @@ Distributed under the terms of the **MIT** license. See [LICENSE](LICENSE) for d
9191
9292
<!-- Reference Links -->
9393
94-
[cookiecutter-robust-python]: https://github.com/56kyle/cookiecutter-robust-python
94+
[cookiecutter-robust-python]: https://github.com/robust-python/cookiecutter-robust-python
9595
[documentation]: https://robust-python-demo.readthedocs.io/

noxfile.py

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@
4545
QUALITY: str = "quality"
4646

4747

48-
@nox.session(python=False, name="setup-git", tags=[ENV])
49-
def setup_git(session: Session) -> None:
50-
"""Set up the git repo for the current project."""
51-
session.run("python", SCRIPTS_FOLDER / "setup-git.py", REPO_ROOT, external=True)
52-
53-
5448
@nox.session(python=False, name="setup-venv", tags=[ENV])
5549
def setup_venv(session: Session) -> None:
5650
"""Set up the virtual environment for the current project."""
5751
session.run("python", SCRIPTS_FOLDER / "setup-venv.py", REPO_ROOT, "-p", PYTHON_VERSIONS[0], external=True)
5852

5953

54+
@nox.session(python=False, name="setup-git", tags=[ENV])
55+
def setup_git(session: Session) -> None:
56+
"""Set up the git repo for the current project."""
57+
session.run("python", SCRIPTS_FOLDER / "setup-git.py", REPO_ROOT, external=True)
58+
59+
6060
@nox.session(python=False, name="setup-remote")
6161
def setup_remote(session: Session) -> None:
6262
"""Set up the remote repository for the current project."""
@@ -156,6 +156,21 @@ def docs_build(session: Session) -> None:
156156
session.log("Building documentation.")
157157
session.run("sphinx-build", "-b", "html", "docs", str(docs_build_dir), "-W")
158158

159+
@nox.session(python=DEFAULT_PYTHON_VERSION, name="docs", tags=[DOCS, BUILD])
160+
def docs(session: Session) -> None:
161+
"""Build and serve the project documentation (Sphinx)."""
162+
session.log("Installing documentation dependencies...")
163+
session.install("-e", ".", "--group", "docs")
164+
165+
session.log(f"Building documentation with py{session.python}.")
166+
docs_build_dir = Path("docs") / "_build" / "html"
167+
168+
session.log(f"Cleaning build directory: {docs_build_dir}")
169+
session.run("sphinx-build", "-b", "html", "docs", str(docs_build_dir), "-E")
170+
171+
session.log("Building and serving documentation.")
172+
session.run("sphinx-autobuild", "--open-browser", "docs", str(docs_build_dir))
173+
159174

160175
@nox.session(python=False, name="build-python", tags=[BUILD])
161176
def build_python(session: Session) -> None:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "robust-python-demo"
3-
version = "0.27.0"
3+
version = "0.28.0"
44
description = "robust-python-demo"
55
authors = [
66
{ name = "Kyle Oliver", email = "[email protected]" },
@@ -40,6 +40,7 @@ docs = [
4040
"furo>=2024.8.6",
4141
"myst-parser>=3.0.1",
4242
"sphinx>=7.4.7",
43+
"sphinx-autobuild>=2024.10.3",
4344
"sphinx-autodoc-typehints>=2.3.0",
4445
"sphinx-copybutton>=0.5.2",
4546
"sphinx-tabs>=3.4.7",

scripts/setup-git.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ def setup_git(path: Path) -> None:
2323
commands: list[list[str]] = [
2424
["git", "init"],
2525
["git", "branch", "-m", "master", "main"],
26-
["git", "checkout", "main"],
27-
["git", "checkout", "-b", "develop", "main"],
2826
["git", "add", "."],
2927
["git", "commit", "-m", "feat: initial commit"],
28+
["git", "checkout", "-b", "develop", "main"],
3029
]
3130
check_dependencies(path=path, dependencies=["git"])
3231

@@ -38,7 +37,7 @@ def get_parser() -> argparse.ArgumentParser:
3837
"""Creates the argument parser for setup-git."""
3938
parser: argparse.ArgumentParser = argparse.ArgumentParser(
4039
prog="setup-git",
41-
usage="python ./scripts/setup-git.py . -u 56kyle -n robust-python-demo",
40+
usage="python ./scripts/setup-git.py . -u robust-python -n robust-python-demo",
4241
description="Set up the provided cookiecutter-robust-python project's git repo.",
4342
)
4443
parser.add_argument(

scripts/setup-remote.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ def main() -> None:
2121
def setup_remote(path: Path, repository_host: str, repository_path: str) -> None:
2222
"""Set up the provided cookiecutter-robust-python project's git repo."""
2323
commands: list[list[str]] = [
24-
["git", "fetch", "origin"],
2524
["git", "remote", "add", "origin", f"https://{repository_host}/{repository_path}.git"],
2625
["git", "remote", "set-url", "origin", f"https://{repository_host}/{repository_path}.git"],
27-
["git", "pull"],
26+
["git", "fetch", "origin"],
2827
["git", "checkout", "main"],
2928
["git", "push", "-u", "origin", "main"],
3029
["git", "checkout", "develop"],
@@ -40,7 +39,7 @@ def get_parser() -> argparse.ArgumentParser:
4039
"""Creates the argument parser for setup-remote."""
4140
parser: argparse.ArgumentParser = argparse.ArgumentParser(
4241
prog="setup-remote",
43-
usage="python ./scripts/setup-remote.py . --host github.com --path 56kyle/robust-python-demo",
42+
usage="python ./scripts/setup-remote.py . --host github.com --path robust-python/robust-python-demo",
4443
description="Set up the provided cookiecutter-robust-python project's remote repo connection.",
4544
)
4645
parser.add_argument(

0 commit comments

Comments
 (0)