Skip to content

Commit a99a526

Browse files
committed
chore: Template upgrade
1 parent 872afc5 commit a99a526

File tree

18 files changed

+67
-917
lines changed

18 files changed

+67
-917
lines changed

.copier-answers.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier.
2-
_commit: 1.5.1
2+
_commit: 1.6.0
33
_src_path: gh:mkdocstrings/handler-template
44
author_email: dev@pawamoy.fr
55
author_fullname: Timothée Mazzucotelli
@@ -8,13 +8,9 @@ copyright_date: '2021'
88
copyright_holder: Timothée Mazzucotelli
99
copyright_holder_email: dev@pawamoy.fr
1010
copyright_license: ISC
11-
insiders: true
12-
insiders_email: insiders@pawamoy.fr
13-
insiders_repository_name: mkdocstrings-python
1411
language: Python
1512
project_description: A Python handler for mkdocstrings.
1613
project_name: mkdocstrings-python
17-
public_release: true
1814
python_package_distribution_name: mkdocstrings-python
1915
python_package_import_name: python
2016
repository_name: python

.github/workflows/ci.yml

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ jobs:
3434
- macos-latest
3535
- windows-latest
3636
python-version:
37-
- "3.9"
38-
- "3.13"
37+
- "3.10"
38+
- "3.14"
3939
include:
40-
- os: ubuntu-latest
41-
python-version: "3.10"
4240
- os: ubuntu-latest
4341
python-version: "3.11"
4442
- os: ubuntu-latest
4543
python-version: "3.12"
44+
- os: ubuntu-latest
45+
python-version: "3.13"
4646

4747
runs-on: ${{ matrix.os }}
4848

@@ -54,7 +54,7 @@ jobs:
5454
fetch-tags: true
5555

5656
- name: Setup Python
57-
uses: actions/setup-python@v5
57+
uses: actions/setup-python@v6
5858
with:
5959
python-version: ${{ matrix.python-version }}
6060

@@ -81,39 +81,15 @@ jobs:
8181

8282
- name: Store objects inventory for tests
8383
uses: actions/upload-artifact@v4
84+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' }}
8485
with:
8586
name: objects.inv
8687
path: site/objects.inv
8788

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

11491
needs:
11592
- quality
116-
- exclude-test-jobs
11793
strategy:
11894
max-parallel: 4
11995
matrix:
@@ -122,16 +98,20 @@ jobs:
12298
- macos-latest
12399
- windows-latest
124100
python-version:
125-
- "3.9"
126101
- "3.10"
127102
- "3.11"
128103
- "3.12"
129104
- "3.13"
130105
- "3.14"
106+
- "3.15"
131107
resolution:
132108
- highest
133109
- lowest-direct
134-
exclude: ${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }}
110+
exclude:
111+
- os: macos-latest
112+
resolution: lowest-direct
113+
- os: windows-latest
114+
resolution: lowest-direct
135115
runs-on: ${{ matrix.os }}
136116
continue-on-error: true
137117

@@ -143,7 +123,7 @@ jobs:
143123
fetch-tags: true
144124

145125
- name: Setup Python
146-
uses: actions/setup-python@v5
126+
uses: actions/setup-python@v6
147127
with:
148128
python-version: ${{ matrix.python-version }}
149129
allow-prereleases: true

.github/workflows/release.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,15 @@ jobs:
1515
fetch-depth: 0
1616
fetch-tags: true
1717
- name: Setup Python
18-
uses: actions/setup-python@v5
18+
uses: actions/setup-python@v6
1919
with:
20-
python-version: "3.12"
20+
python-version: "3.13"
2121
- name: Setup uv
2222
uses: astral-sh/setup-uv@v5
23-
- name: Build dists
24-
if: github.repository_owner == 'pawamoy-insiders'
25-
run: uv tool run --from build pyproject-build
26-
- name: Upload dists artifact
27-
uses: actions/upload-artifact@v4
28-
if: github.repository_owner == 'pawamoy-insiders'
29-
with:
30-
name: python-insiders
31-
path: ./dist/*
3223
- name: Prepare release notes
33-
if: github.repository_owner != 'pawamoy-insiders'
3424
run: uv tool run git-changelog --release-notes > release-notes.md
35-
- name: Create release with assets
36-
uses: softprops/action-gh-release@v2
37-
if: github.repository_owner == 'pawamoy-insiders'
38-
with:
39-
files: ./dist/*
4025
- name: Create release
4126
uses: softprops/action-gh-release@v2
42-
if: github.repository_owner != 'pawamoy-insiders'
4327
with:
4428
body_path: release-notes.md
29+

.github/workflows/sponsors.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update sponsors
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
update-readme:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Update README and create PR
19+
uses: pawamoy/readme-insert@main
20+
with:
21+
markup-url: https://pawamoy.github.io/sponsors.txt
22+
start-marker: '<!-- sponsors-start -->'
23+
end-marker: '<!-- sponsors-end -->'
24+
commit-message: 'chore: Update sponsors section in README'
25+
pr-title: 'chore: Update sponsors section in README'
26+
pr-body: 'This PR updates the sponsors section in the README file.'

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,8 @@ dependencies = [
7777

7878
- **Source code display:** *mkdocstrings* can add a collapsible div containing the highlighted source code
7979
of the Python object.
80+
81+
## Sponsors
82+
83+
<!-- sponsors-start -->
84+
<!-- sponsors-end -->

config/pytest_39.ini

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

docs/.overrides/main.html

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

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

docs/css/insiders.css

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

0 commit comments

Comments
 (0)