Skip to content

Commit b305634

Browse files
committed
chore: Template upgrade
1 parent c1705f0 commit b305634

4 files changed

Lines changed: 12 additions & 19 deletions

File tree

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 0.16.9
2+
_commit: 0.16.10
33
_src_path: gh:pawamoy/copier-pdm
44
author_email: pawamoy@pm.me
55
author_fullname: Timothée Mazzucotelli

docs/credits.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ hide:
33
- toc
44
---
55

6+
<!-- blacken-docs:off -->
67
```python exec="yes"
78
--8<-- "scripts/gen_credits.py"
89
```
10+
<!-- blacken-docs:on -->

docs/insiders/index.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,24 +59,20 @@ a handful of them, [thanks to our awesome sponsors][sponsors]! -->
5959
data_source = "docs/insiders/goals.yml"
6060
```
6161

62+
<!-- blacken-docs:off -->
6263
```python exec="1" session="insiders"
6364
--8<-- "scripts/insiders.py"
64-
```
6565

66-
<!-- ```python exec="1" session="insiders"
67-
print(f"""The moment you <a href="#how-to-become-a-sponsor">become a sponsor</a>, you'll get **immediate
68-
access to {len(unreleased_features)} additional features** that you can start using right away, and
69-
which are currently exclusively available to sponsors:\n""")
66+
print(
67+
f"""The moment you <a href="#how-to-become-a-sponsor">become a sponsor</a>, you'll get **immediate
68+
access to {len(unreleased_features)} additional features** that you can start using right away, and
69+
which are currently exclusively available to sponsors:\n"""
70+
)
7071

7172
for feature in unreleased_features:
7273
feature.render(badge=True)
73-
``` -->
74-
75-
We currently don't have any features available to sponsors only.
76-
Right now we are putting our efforts into the documentation,
77-
then we will start again implementing features.
78-
You can get updates on *mkdocstrings-python Insiders* work
79-
by following **@pawamoy** on :material-mastodon:{ .mastodon } [Fosstodon](https://fosstodon.org/@pawamoy).
74+
```
75+
<!-- blacken-docs:on -->
8076

8177
## How to become a sponsor
8278

scripts/gen_credits.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
import re
6-
import sys
6+
from importlib.metadata import PackageNotFoundError, metadata
77
from itertools import chain
88
from pathlib import Path
99
from textwrap import dedent
@@ -13,11 +13,6 @@
1313
from jinja2 import StrictUndefined
1414
from jinja2.sandbox import SandboxedEnvironment
1515

16-
if sys.version_info < (3, 8):
17-
from importlib_metadata import PackageNotFoundError, metadata
18-
else:
19-
from importlib.metadata import PackageNotFoundError, metadata
20-
2116
project_dir = Path(".")
2217
pyproject = toml.load(project_dir / "pyproject.toml")
2318
project = pyproject["project"]

0 commit comments

Comments
 (0)