Skip to content

Commit ec4d2cc

Browse files
committed
chore: Template upgrade
1 parent d67215c commit ec4d2cc

File tree

9 files changed

+216
-201
lines changed

9 files changed

+216
-201
lines changed

.copier-answers.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 1.2.0
2+
_commit: 1.2.2
33
_src_path: gh:mkdocstrings/handler-template
44
author_email: [email protected]
55
author_fullname: Timothée Mazzucotelli

.github/workflows/ci.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v4
28-
29-
- name: Fetch all tags
30-
run: git fetch --depth=1 --tags
28+
with:
29+
fetch-depth: 0
30+
fetch-tags: true
3131

3232
- name: Setup Python
3333
uses: actions/setup-python@v5
@@ -106,6 +106,9 @@ jobs:
106106
steps:
107107
- name: Checkout
108108
uses: actions/checkout@v4
109+
with:
110+
fetch-depth: 0
111+
fetch-tags: true
109112

110113
- name: Setup Python
111114
uses: actions/setup-python@v5

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v4
14-
- name: Fetch all tags
15-
run: git fetch --depth=1 --tags
14+
with:
15+
fetch-depth: 0
16+
fetch-tags: true
1617
- name: Setup Python
1718
uses: actions/setup-python@v5
1819
with:

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![ci](https://github.com/mkdocstrings/python/workflows/ci/badge.svg)](https://github.com/mkdocstrings/python/actions?query=workflow%3Aci)
66
[![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://mkdocstrings.github.io/python/)
77
[![pypi version](https://img.shields.io/pypi/v/mkdocstrings-python.svg)](https://pypi.org/project/mkdocstrings-python/)
8-
[![gitpod](https://img.shields.io/badge/gitpod-workspace-708FCC.svg?style=flat)](https://gitpod.io/#https://github.com/mkdocstrings/python)
98
[![gitter](https://badges.gitter.im/join%20chat.svg)](https://app.gitter.im/#/room/#python:gitter.im)
109

1110
---

docs/insiders/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ else:
9292
```
9393
<!-- blacken-docs:on -->
9494

95+
Additionally, your sponsorship will give more weight to your upvotes on issues, helping us prioritize work items in our backlog. For more information on how we prioritize work, see this page: [Backlog management](https://pawamoy.github.io/backlog/).
96+
9597
## How to become a sponsor
9698

9799
Thanks for your interest in sponsoring! In order to become an eligible sponsor

pyproject.toml

+11-3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ version = {source = "scm"}
5252
package-dir = "src"
5353
includes = ["src/mkdocstrings_handlers"]
5454
editable-backend = "editables"
55+
56+
# Include as much as possible in the source distribution, to help redistributors.
5557
excludes = ["**/.pytest_cache"]
5658
source-includes = [
5759
"config",
@@ -66,15 +68,21 @@ source-includes = [
6668
]
6769

6870
[tool.pdm.build.wheel-data]
71+
# Manual pages can be included in the wheel.
72+
# Depending on the installation tool, they will be accessible to users.
73+
# pipx supports it, uv does not yet, see https://github.com/astral-sh/uv/issues/4731.
6974
data = [
7075
{path = "share/**/*", relative-to = "."},
7176
]
7277

7378
[tool.uv]
74-
dev-dependencies = [
75-
# dev
76-
"editables>=0.5",
79+
# Tell uv to ignore constraints on the main package.
80+
# This is needed when the current project doesn't have Git tags (fork, CI).
81+
override-dependencies = ["mkdocstrings-python"]
82+
sources = { mkdocstrings-python = { workspace = true } }
7783

84+
[dependency-groups]
85+
dev = [
7886
# maintenance
7987
"build>=1.2",
8088
"git-changelog>=2.5",

scripts/gen_credits.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
pyproject = tomllib.load(pyproject_file)
2828
project = pyproject["project"]
2929
project_name = project["name"]
30-
devdeps = [dep for dep in pyproject["tool"]["uv"]["dev-dependencies"] if not dep.startswith("-e")]
30+
devdeps = [dep for dep in pyproject["dependency-groups"]["dev"] if not dep.startswith("-e")]
3131

3232
PackageMetadata = dict[str, Union[str, Iterable[str]]]
3333
Metadata = dict[str, PackageMetadata]

scripts/make

-190
This file was deleted.

scripts/make

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
make.py

0 commit comments

Comments
 (0)