Skip to content

Commit 2db1e07

Browse files
authored
Merge pull request #115 from smkent/pypi-fix
Fix cruft metadata, disable test PyPI publishing
2 parents 8b31163 + fea08ad commit 2db1e07

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"commit": "45a5e60428dab6cb6f6382505d8591a050f1a7ba",
44
"context": {
55
"cookiecutter": {
6-
"project_name": "Cookiecutter template for new Python projects",
6+
"project_name": "cookie-python",
77
"project_slug": "cookie_python",
8-
"project_description": "A template for new Python projects",
8+
"project_description": "Cookiecutter template for new Python projects",
99
"project_license": "MIT",
1010
"enable_coverage": "yes",
1111
"enable_pypi_publish": "no",

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33

44
env:
55
ENABLE_PYPI_PUBLISH: true
6-
ENABLE_TEST_PYPI_PUBLISH: true
6+
ENABLE_TEST_PYPI_PUBLISH: false
77
RELEASE_PYTHON_VERSION: "3.12"
88
RELEASE_POETRY_VERSION: "2.0"
99

@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
environment:
2222
name: pypi
23-
url: https://pypi.org/p/Cookiecutter template for new Python projects
23+
url: https://pypi.org/p/cookie-python
2424
permissions:
2525
id-token: write
2626

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[project]
66
name = "cookie-python"
7-
description = ""
7+
description = "Cookiecutter template for new Python projects"
88
license = "MIT"
99
authors = [ { name = "Stephen Kent", email = "smkent@smkent.net" } ]
1010
readme = "README.md"

tests/test_template.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ def test_rendered_project(
133133
assert ci_data["env"]["ENABLE_COVERAGE"] == enable_coverage
134134
assert cd_data["env"]["ENABLE_PYPI_PUBLISH"] == enable_pypi_publish
135135
assert cd_data["env"]["ENABLE_TEST_PYPI_PUBLISH"] is False
136+
assert cd_data["jobs"]["Publish"]["environment"] == {
137+
"name": "pypi",
138+
"url": "https://pypi.org/p/test-baked-cookie",
139+
}
136140

137141
assert not (
138142
subprocess.check_output(

0 commit comments

Comments
 (0)