Skip to content
Open
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
1 change: 0 additions & 1 deletion template/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [main]
pull_request:
workflow_call:

# Least privilege: jobs only read the repo.
permissions:
Expand Down
20 changes: 0 additions & 20 deletions template/.github/workflows/publish.yaml

This file was deleted.

87 changes: 0 additions & 87 deletions template/.github/workflows/release.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions template/README.md.jinja
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# {{ project_name }}

[![Tests](https://github.com/{{ github_username }}/{{ repo_name }}/actions/workflows/ci.yaml/badge.svg)](https://github.com/{{ github_username }}/{{ repo_name }}/actions/workflows/ci.yaml)
[![PyPI version](https://badge.fury.io/py/{{ project_slug | replace('_', '-') }}.svg)](https://pypi.org/project/{{ project_slug | replace('_', '-') }}/)


{{ project_short_description }}
Expand Down Expand Up @@ -76,16 +75,6 @@ skills: `check-docs` audits the docs against the code and emits a report;
`update-docs` repairs the gaps. Run `check-docs` periodically (or in CI) and
feed its report to `update-docs` to keep the docs current.

## Releasing

Releases are managed via [python-semantic-release](https://python-semantic-release.readthedocs.io/).
Use [conventional commits](https://www.conventionalcommits.org/) to trigger automatic version bumps.

To create a release, trigger the "Release" workflow manually from GitHub Actions.
This will create a draft release in GitHub.
When the draft release is published, the package is automatically uploaded to PyPI.


# Contact

{{ author_name }} ([{{ author_email }}](mailto:{{ author_email }}))
15 changes: 0 additions & 15 deletions tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,21 +299,6 @@ def test_generated_workflows_pin_actions_to_sha(project):
assert_actions_are_sha_pinned(project.path / ".github" / "workflows")


def test_generated_release_keeps_local_workflow_ref_unpinned(project):
"""The local reusable-workflow ref must stay a path, not become a SHA.

``uses: ./.github/workflows/...`` refers to a file inside the generated repo
itself. A SHA there would pin the project to one of its own commits that does
not exist yet — so this ref is deliberately excluded from the pinning sweep.
"""
local = [
(path.name, ref)
for path, _, ref, _ in _uses_refs(project.path / ".github" / "workflows")
if ref.startswith("./")
]
assert local == [("release.yaml", "./.github/workflows/ci.yaml")]


def test_default_slug_is_valid_package_name(tmp_path):
"""The auto-derived project_slug must be a valid Python package name.

Expand Down
Loading