Skip to content

Commit 57395e4

Browse files
committed
Merge branch 'main' of github.com:pawamoy/copier-uv
2 parents c40c602 + 32fbf97 commit 57395e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+670
-631
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
with:
4242
python-version: "3.12"
4343
- name: Setup uv
44-
uses: astral-sh/setup-uv@v3
44+
uses: astral-sh/setup-uv@v5
4545
- name: Test licenses
46-
run: uv run --with jinja2 python tests/test_licenses.py
46+
run: uv run --with jinja2 --with pyyaml --with reuse python tests/test_licenses.py
4747

4848
test-project:
4949
strategy:
@@ -75,19 +75,18 @@ jobs:
7575
git config --global init.defaultBranch main
7676
git config --global user.email "dev@pawamoy.fr"
7777
git config --global user.name "Timothée Mazzucotelli"
78-
78+
7979
- name: Setup Python
8080
uses: actions/setup-python@v5
8181
with:
8282
python-version: ${{ matrix.python-version }}
8383
allow-prereleases: true
8484

8585
- name: Setup uv
86-
uses: astral-sh/setup-uv@v3
86+
uses: astral-sh/setup-uv@v5
8787
with:
8888
enable-cache: true
8989
cache-dependency-glob: project/pyproject.toml.jinja
90-
cache-suffix: py${{ matrix.python-version }}
9190

9291
- name: Install Copier
9392
env:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
python-version: "3.12"
2222
- name: Setup uv
23-
uses: astral-sh/setup-uv@v3
23+
uses: astral-sh/setup-uv@v5
2424
- name: Prepare release notes
2525
run: uv tool run git-changelog --release-notes > release-notes.md
2626
- name: Create release

CHANGELOG.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,51 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88
<!-- insertion marker -->
9-
## [1.2.4](https://github.com/pawamoy/copier-uv/releases/tag/1.2.4) - 2025-01-23
9+
## [1.3.0](https://github.com/mkdocstrings/handler-template/releases/tag/1.3.0) - 2025-03-11
1010

11-
<small>[Compare with 1.5.6](https://github.com/pawamoy/copier-uv/compare/1.2.3...1.2.4)</small>
11+
<small>[Compare with 1.2.4](https://github.com/mkdocstrings/handler-template/compare/1.2.4...1.3.0)</small>
12+
13+
### Merge upstream
14+
15+
#### Features
16+
17+
- Enable backlinks in API docs ([20aba08](https://github.com/pawamoy/copier-uv/commit/20aba086f2bfe7939bedce9d0fa457a19089159a) by Timothée Mazzucotelli).
18+
- Check legacy code with Yore each time the changelog is updated ([63e4af5](https://github.com/pawamoy/copier-uv/commit/63e4af5bd318c1625e4f51e9a5d24a7b941d7277) by Timothée Mazzucotelli). [Issue-60](https://github.com/pawamoy/copier-uv/issues/60)
19+
- Split dependency-groups in sections ([bae928e](https://github.com/pawamoy/copier-uv/commit/bae928ece555c14ac8eae8e1ad4b7c0d6f98faf0) by Dennis Bücker). [Discussion-58](https://github.com/pawamoy/copier-uv/discussions/58), [PR-59](https://github.com/pawamoy/copier-uv/pull/59)
20+
- Generate /llms.txt docs file ([2000ef6](https://github.com/pawamoy/copier-uv/commit/2000ef688cc75e71140a6acecf9fd918ee9210b6) by Timothée Mazzucotelli). [Issue-49](https://github.com/pawamoy/copier-uv/issues/49)
21+
- Add initial API tests ([997155b](https://github.com/pawamoy/copier-uv/commit/997155b69ba48d397433582127302696c08dbb0e) by Timothée Mazzucotelli).
22+
- Add config to run project, and allow to pass arguments ([bd88519](https://github.com/pawamoy/copier-uv/commit/bd8851921c7105aa523867e7f64a217a562a5a41) by Timothée Mazzucotelli). [Issue-53](https://github.com/pawamoy/copier-uv/issues/53)
23+
24+
#### Bug Fixes
25+
26+
- Output llms-full.txt, not llms.txt ([2c8b4f8](https://github.com/pawamoy/copier-uv/commit/2c8b4f8d55d7e66d8c14c0ec897828d065969fb5) by Timothée Mazzucotelli).
27+
- Ensure test jobs wait for quality one (for objects inventory artifact to be ready) ([885f204](https://github.com/pawamoy/copier-uv/commit/885f204f5b32b43099193cd2f7cc62e4011f39b0) by Timothée Mazzucotelli).
28+
- Fix license choices in template configuration ([f26c221](https://github.com/pawamoy/copier-uv/commit/f26c22184aa6326f94a6722dc818b7364e8bb8bc) by Timothée Mazzucotelli).
29+
- Prevent extension crash with key error ([1d27caf](https://github.com/pawamoy/copier-uv/commit/1d27caf9d79919c1e4d97cb312b19e80bc947d59) by Timothée Mazzucotelli).
30+
31+
#### Code Refactoring
32+
33+
- Fully enable autorefs for docs ([152924d](https://github.com/pawamoy/copier-uv/commit/152924dcc5b8238f016abe89297a6402ec779bd8) by Timothée Mazzucotelli).
34+
- Simplify API docs (stop using gen-files and literate-nav) ([6d1aec8](https://github.com/pawamoy/copier-uv/commit/6d1aec8c12673b10192903f584d40ddc94741dbf) by Timothée Mazzucotelli).
35+
- Stop depending on Black now that mkdocstrings-python supports Ruff for formatting signatures ([6554451](https://github.com/pawamoy/copier-uv/commit/65544511a65dc075157ee3f3686882108e93ed6d) by Timothée Mazzucotelli).
36+
- Store and download objects inventory in CI, enabling API tests ([a55906c](https://github.com/pawamoy/copier-uv/commit/a55906c88042e454547af8a5ee0e946e3ef57d6e) by Timothée Mazzucotelli).
37+
- Prevent publishing insiders packages to PyPI ([b51ae0f](https://github.com/pawamoy/copier-uv/commit/b51ae0f48257a83279e97a7adb2c6a240139383b) by Timothée Mazzucotelli). [Issue-44](https://github.com/pawamoy/copier-uv/issues/44)
38+
- Mention `insiders` instead of `pypi-insiders` in docs ([4c8d09e](https://github.com/pawamoy/copier-uv/commit/4c8d09e914b4e88d9522f4aafb37b9aabd22c780) by Timothée Mazzucotelli). [Issue-45](https://github.com/pawamoy/copier-uv/issues/45)
39+
- Write comments, not docstrings in internal modules/scripts ([bedf879](https://github.com/pawamoy/copier-uv/commit/bedf8796b76b215c5d228d6b76f5fa22c7a0eddc) by Timothée Mazzucotelli).
40+
- Use an "internal" layout ([fd500cc](https://github.com/pawamoy/copier-uv/commit/fd500cc25be5b0a169153b08b0715a5c21715f00) by Timothée Mazzucotelli). [Issue-50](https://github.com/pawamoy/copier-uv/issues/50)
41+
- Remove Ko-Fi and Paypal from funding file ([16f0e0e](https://github.com/pawamoy/copier-uv/commit/16f0e0e8e48bbf8ec7ac1864f3bf54271faab9c0) by Timothée Mazzucotelli). [Issue-55](https://github.com/pawamoy/copier-uv/issues/55)
42+
- Update setup-uv action version ([52df1c1](https://github.com/pawamoy/copier-uv/commit/52df1c14eed14bc08a3e5d6cb92112376c44d136) by Timothée Mazzucotelli). [Issue-54](https://github.com/pawamoy/copier-uv/issues/54)
43+
- Enable docs instant preview (link hover) ([59b1229](https://github.com/pawamoy/copier-uv/commit/59b12297d085aeac5d7187c5f2c98e91ce60ba7e) by Timothée Mazzucotelli). [Issue-52](https://github.com/pawamoy/copier-uv/issues/52)
44+
- Rename mkdocstrings-python `import` option to `inventories` ([c56d1cc](https://github.com/pawamoy/copier-uv/commit/c56d1cc58f4fc357582ee4e17885c11f53e5c200) by Timothée Mazzucotelli).
45+
- Enable docs navigation breadcrumbs ([15536d7](https://github.com/pawamoy/copier-uv/commit/15536d76e5482bd4ec9738345142e13e5b91f953) by Timothée Mazzucotelli).
46+
- Rename script that generates API reference ([db1a856](https://github.com/pawamoy/copier-uv/commit/db1a856081b5d0540ad3823cb54299191722c6b7) by Timothée Mazzucotelli).
47+
- Set metadata title in docs pages ([1837a07](https://github.com/pawamoy/copier-uv/commit/1837a07b751964de44631211dbfa7154ec33a547) by Timothée Mazzucotelli).
48+
- Update license templating ([84537c7](https://github.com/pawamoy/copier-uv/commit/84537c7ea157c9f5876f626e4a7d92619348a915) by Timothée Mazzucotelli).
49+
- Update insiders docs now that we better handle beneficiaries ([59bbbb5](https://github.com/pawamoy/copier-uv/commit/59bbbb5334ce0362537e0737df6e38d73f461339) by Timothée Mazzucotelli).
50+
51+
## [1.2.4](https://github.com/mkdocstrings/handler-template/releases/tag/1.2.4) - 2025-01-23
52+
53+
<small>[Compare with 1.5.6](https://github.com/mkdocstrings/handler-template/compare/1.2.3...1.2.4)</small>
1254

1355
### Merge upstream
1456

copier.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -81,41 +81,41 @@ copyright_date:
8181
copyright_license:
8282
type: str
8383
help: Your project's license
84-
default: ISC License
84+
default: ISC
8585
choices:
86-
- Academic Free License v3.0
87-
- Apache License 2.0
88-
- Artistic License 2.0
89-
- BSD 2-Clause "Simplified" License
90-
- BSD 3-Clause Clear License
91-
- BSD 3-Clause "New" or "Revised" License
92-
- Boost Software License 1.0
93-
- Creative Commons Attribution 4.0
94-
- Creative Commons Attribution Share Alike 4.0
95-
- Creative Commons Zero v1.0 Universal
96-
- Do What The F*ck You Want To Public License
97-
- Educational Community License v2.0
98-
- Eclipse Public License 1.0
99-
- Eclipse Public License 2.0
100-
- European Union Public License 1.1
101-
- European Union Public License 1.2
102-
- GNU Affero General Public License v3.0
103-
- GNU General Public License v2.0
104-
- GNU General Public License v3.0
105-
- GNU Lesser General Public License v2.1
106-
- GNU Lesser General Public License v3.0
107-
- ISC License
108-
- LaTeX Project Public License v1.3c
109-
- MIT License
110-
- Mozilla Public License 2.0
111-
- Microsoft Public License
112-
- Microsoft Reciprocal License
113-
- University of Illinois/NCSA Open Source License
114-
- SIL Open Font License 1.1
115-
- Open Software License 3.0
116-
- PostgreSQL License
117-
- The Unlicense
118-
- zlib License
86+
Academic Free License v3.0: AFL-3.0
87+
Apache License 2.0: Apache-2.0
88+
Artistic License 2.0: Artistic-2.0
89+
BSD 2-Clause "Simplified" License: BSD-2-Clause
90+
BSD 3-Clause Clear License: BSD-3-Clause-Clear
91+
BSD 3-Clause "New" or "Revised" License: BSD-3-Clause
92+
Boost Software License 1.0: BSL-1.0
93+
Creative Commons Attribution 4.0 International: CC-BY-4.0
94+
Creative Commons Attribution Share Alike 4.0 International: CC-BY-SA-4.0
95+
Creative Commons Zero v1.0 Universal: CC0-1.0
96+
Do What The F*ck You Want To Public License: WTFPL
97+
Educational Community License v2.0: ECL-2.0
98+
Eclipse Public License 1.0: EPL-1.0
99+
Eclipse Public License 2.0: EPL-2.0
100+
European Union Public License 1.1: EUPL-1.1
101+
European Union Public License 1.2: EUPL-1.2
102+
GNU Affero General Public License v3.0: AGPL-3.0
103+
GNU General Public License v2.0 only: GPL-2.0
104+
GNU General Public License v3.0 only: GPL-3.0
105+
GNU Lesser General Public License v2.1 only: LGPL-2.1
106+
GNU Lesser General Public License v3.0 only: LGPL-3.0
107+
ISC License: ISC
108+
LaTeX Project Public License v1.3c: LPPL-1.3c
109+
MIT License: MIT
110+
Mozilla Public License 2.0: MPL-2.0
111+
Microsoft Public License: MS-PL
112+
Microsoft Reciprocal License: MS-RL
113+
University of Illinois/NCSA Open Source License: NCSA
114+
SIL Open Font License 1.1: OFL-1.1
115+
Open Software License 3.0: OSL-3.0
116+
PostgreSQL License: PostgreSQL
117+
The Unlicense: Unlicense
118+
zlib License: Zlib
119119

120120
python_package_distribution_name:
121121
type: str

extensions.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class GitHubIDsforGiscusExtension(ContextHook):
4646
repo_placeholder = "REPLACE WITH REPOSITORY NODE ID"
4747
category_placeholder = "REPLACE WITH DISCUSSION CATEGORY ID"
4848
update = False
49-
query = """
49+
query = """
5050
{
5151
repository(owner: "%(owner)s", name: "%(name)s") {
5252
discussionCategories(first: 100) {
@@ -63,8 +63,11 @@ class GitHubIDsforGiscusExtension(ContextHook):
6363
category_id: str | None = None
6464

6565
def hook(self, context):
66-
repository_namespace = context["repository_namespace"]
67-
repository_name = context["repository_name"]
66+
try:
67+
repository_namespace = context["repository_namespace"]
68+
repository_name = context["repository_name"]
69+
except KeyError:
70+
return
6871

6972
if self.repo_id is None:
7073
command = f"gh api repos/{repository_namespace}/{repository_name} --jq .node_id"
File renamed without changes.

project/.github/FUNDING.yml.jinja

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
github: {{ author_username }}
2-
ko_fi: {{ author_username }}
32
polar: {{ author_username }}
4-
custom:
5-
- https://www.paypal.me/{{ author_username }}

project/.github/ISSUE_TEMPLATE/1-bug.md.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ PASTE TRACEBACK HERE
5151

5252
```bash
5353
{% if python_package_command_line_name %}{{ python_package_command_line_name }} --debug-info
54-
{%- else %}python -m mkdocstrings_handlers.{{ python_package_import_name }}.debug{% endif %} # | xclip -selection clipboard
54+
{%- else %}python -m mkdocstrings_handlers.{{ python_package_import_name }}._internal.debug{% endif %} # | xclip -selection clipboard
5555
```
5656

5757
PASTE MARKDOWN OUTPUT HERE
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)