Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix cruft metadata, disable test PyPI publishing #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
smkent merged 1 commit into main from pypi-fix
Jan 15, 2025
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
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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

AltStyle によって変換されたページ (->オリジナル) /