Skip to content

Commit 79737bf

Browse files
committed
refactor: Remove Insiders-related contents
1 parent 4350639 commit 79737bf

16 files changed

Lines changed: 12 additions & 806 deletions

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Similar templates:
2929
- Support for GitHub workflows
3030
- Auto-generated `CHANGELOG.md` from Git (conventional) commits
3131
- All licenses from [choosealicense.com](https://choosealicense.com/appendix/)
32-
- Support for Insiders versions of projects (e.g. see [@pawamoy's insiders](https://pawamoy.github.io/insiders/))
3332

3433
## Quick setup and usage
3534

copier.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ _jinja_extensions:
1414
- extensions.py:GitHubIDsforGiscusExtension
1515
_skip_if_exists:
1616
- CHANGELOG.md
17-
- docs/insiders/changelog.md
1817

1918
# PROMPT --------------------------------
2019
project_name:
@@ -125,26 +124,3 @@ python_package_command_line_name:
125124
type: str
126125
help: Your CLI name if any (for use in the shell)
127126
default: "{{ project_name | slugify }}"
128-
129-
insiders:
130-
type: bool
131-
help: Does this project have an Insiders version?
132-
default: false
133-
134-
insiders_repository_name:
135-
type: str
136-
help: Your Insiders repository name
137-
default: "{{ repository_name }}"
138-
when: "{{ insiders }}"
139-
140-
insiders_email:
141-
type: str
142-
help: The email to use for Insiders-related questions
143-
default: "{{ author_email }}"
144-
when: "{{ insiders }}"
145-
146-
public_release:
147-
type: bool
148-
help: Is this project already released publicly?
149-
default: false
150-
when: "{{ insiders }}"

project/.github/workflows/ci.yml.jinja

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -86,39 +86,10 @@ jobs:
8686
name: objects.inv
8787
path: site/objects.inv
8888

89-
{% if insiders -%}
90-
exclude-test-jobs:
91-
runs-on: ubuntu-latest
92-
outputs:
93-
jobs: {% raw %}${{ steps.exclude-jobs.outputs.jobs }}{% endraw %}
94-
steps:
95-
- id: exclude-jobs
96-
run: |
97-
if ${{ "{{" }} github.repository_owner == '{{ author_username }}-insiders' {{ "}}" }}; then
98-
echo 'jobs=[
99-
{"os": "macos-latest"},
100-
{"os": "windows-latest"},
101-
{"python-version": "3.11"},
102-
{"python-version": "3.12"},
103-
{"python-version": "3.13"},
104-
{"python-version": "3.14"},
105-
{"python-version": "3.15"}
106-
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT
107-
else
108-
echo 'jobs=[
109-
{"os": "macos-latest", "resolution": "lowest-direct"},
110-
{"os": "windows-latest", "resolution": "lowest-direct"}
111-
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT
112-
fi
113-
114-
{% endif -%}
11589
tests:
11690

11791
needs:
11892
- quality
119-
{% if insiders -%}
120-
- exclude-test-jobs
121-
{% endif -%}
12293
strategy:
12394
matrix:
12495
os:
@@ -135,15 +106,11 @@ jobs:
135106
resolution:
136107
- highest
137108
- lowest-direct
138-
{%- if insiders %}
139-
exclude: {% raw %}${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }}{% endraw %}
140-
{%- else %}
141109
exclude:
142110
- os: macos-latest
143111
resolution: lowest-direct
144112
- os: windows-latest
145113
resolution: lowest-direct
146-
{%- endif %}
147114
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
148115
continue-on-error: true
149116

project/.github/workflows/release.yml.jinja

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,10 @@ jobs:
2020
python-version: "3.13"
2121
- name: Setup uv
2222
uses: astral-sh/setup-uv@v5
23-
{%- if insiders %}
24-
- name: Build dists
25-
if: github.repository_owner == '{{ author_username }}-insiders'
26-
run: uv tool run --from build pyproject-build
27-
- name: Upload dists artifact
28-
uses: actions/upload-artifact@v4
29-
if: github.repository_owner == '{{ author_username }}-insiders'
30-
with:
31-
name: {{ repository_name }}-insiders
32-
path: ./dist/*
33-
- name: Prepare release notes
34-
if: github.repository_owner != '{{ author_username }}-insiders'
35-
run: uv tool run git-changelog --release-notes > release-notes.md
36-
- name: Create release with assets
37-
uses: softprops/action-gh-release@v2
38-
if: github.repository_owner == '{{ author_username }}-insiders'
39-
with:
40-
files: ./dist/*
41-
- name: Create release
42-
uses: softprops/action-gh-release@v2
43-
if: github.repository_owner != '{{ author_username }}-insiders'
44-
with:
45-
body_path: release-notes.md
46-
{%- else %}
4723
- name: Prepare release notes
4824
run: uv tool run git-changelog --release-notes > release-notes.md
4925
- name: Create release
5026
uses: softprops/action-gh-release@v2
5127
with:
5228
body_path: release-notes.md
53-
{%- endif %}
29+

project/README.md.jinja

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
# {{ project_name }}
22

3-
{% if repository_provider == "github.com" and (not insiders or public_release) -%}
3+
{% if repository_provider == "github.com" -%}
44
[![ci](https://github.com/{{ repository_namespace }}/{{ repository_name }}/workflows/ci/badge.svg)](https://github.com/{{ repository_namespace }}/{{ repository_name }}/actions?query=workflow%3Aci)
55
{% endif -%}
66
[![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://{{ repository_namespace }}.{{ repository_provider[:-4] }}.io/{{ repository_name }}/)
7-
{% if not insiders or public_release -%}
87
[![pypi version](https://img.shields.io/pypi/v/{{ python_package_distribution_name }}.svg)](https://pypi.org/project/{{ python_package_distribution_name }}/)
9-
{% endif -%}
108
[![gitter](https://img.shields.io/badge/matrix-chat-4DB798.svg?style=flat)](https://app.gitter.im/#/room/#{{ repository_name }}:gitter.im)
119

1210
{{ project_description }}
1311

1412
## Installation
1513

16-
{% if not insiders or public_release -%}
1714
```bash
1815
pip install {{ python_package_distribution_name }}
1916
```
@@ -25,9 +22,6 @@ With [`uv`](https://docs.astral.sh/uv/):
2522
uv tool install {{ python_package_distribution_name }}
2623
```
2724
{%- endif -%}
28-
{%- else -%}
29-
This project is available to sponsors only, through my Insiders program. See Insiders [explanation](https://{{ repository_namespace }}.github.io/{{ repository_name }}/insiders/) and [installation instructions](https://{{ repository_namespace }}.github.io/{{ repository_name }}/insiders/installation/).
30-
{%- endif %}
3125

3226
{% if author_username == "pawamoy" %}
3327
## Sponsors

project/docs/.overrides/{% if author_username == 'pawamoy' %}main.html{% endif %}.jinja

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{% raw %}{% extends "base.html" %}{% endraw %}
22

33
{% raw %}{% block announce %}{% endraw %}
4-
{% if insiders %}
5-
<strong>Fund this project</strong> through
6-
<a href="{% raw %}{{ 'insiders/#how-to-become-a-sponsor' | url }}{% endraw %}"><strong>sponsorship</strong></a>
7-
<span class="twemoji heart pulse">
8-
{% raw %}{% include ".icons/octicons/heart-fill-16.svg" %}{% endraw %}
9-
</span> &mdash;
10-
{% endif %}
4+
<strong>Fund this project</strong> through
5+
<a href="https://github.com/sponsors/pawamoy"><strong>sponsorship</strong></a>
6+
<span class="twemoji heart pulse">
7+
{% raw %}{% include ".icons/octicons/heart-fill-16.svg" %}{% endraw %}
8+
</span> &mdash;
119
Follow
1210
<strong>@pawamoy</strong> on
1311
<a rel="me" href="https://fosstodon.org/@pawamoy">

project/docs/css/{% if insiders %}insiders.css{% endif %}.jinja

Lines changed: 0 additions & 124 deletions
This file was deleted.

project/docs/js/{% if insiders %}insiders.js{% endif %}.jinja

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)