Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"commit": "45a5e60428dab6cb6f6382505d8591a050f1a7ba",
"context": {
"cookiecutter": {
"project_name": "Cookiecutter template for new Python projects",
"project_name": "cookie-python",
"project_slug": "cookie_python",
"project_description": "A template for new Python projects",
"project_description": "Cookiecutter template for new Python projects",
"project_license": "MIT",
"enable_coverage": "yes",
"enable_pypi_publish": "no",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release

env:
ENABLE_PYPI_PUBLISH: true
ENABLE_TEST_PYPI_PUBLISH: true
ENABLE_TEST_PYPI_PUBLISH: false
RELEASE_PYTHON_VERSION: "3.12"
RELEASE_POETRY_VERSION: "2.0"

Expand All @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/Cookiecutter template for new Python projects
url: https://pypi.org/p/cookie-python
permissions:
id-token: write

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[project]
name = "cookie-python"
description = ""
description = "Cookiecutter template for new Python projects"
license = "MIT"
authors = [ { name = "Stephen Kent", email = "smkent@smkent.net" } ]
readme = "README.md"
Expand Down
4 changes: 4 additions & 0 deletions tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ def test_rendered_project(
assert ci_data["env"]["ENABLE_COVERAGE"] == enable_coverage
assert cd_data["env"]["ENABLE_PYPI_PUBLISH"] == enable_pypi_publish
assert cd_data["env"]["ENABLE_TEST_PYPI_PUBLISH"] is False
assert cd_data["jobs"]["Publish"]["environment"] == {
"name": "pypi",
"url": "https://pypi.org/p/test-baked-cookie",
}

assert not (
subprocess.check_output(
Expand Down
Loading