Skip to content

Commit 4229223

Browse files
committed
chore: Switch to copier-uv template
1 parent 3819d44 commit 4229223

37 files changed

+706
-499
lines changed

.copier-answers.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 1.2.6
3-
_src_path: gh:pawamoy/copier-pdm
4-
author_email: [email protected]
2+
_commit: 1.4.1
3+
_src_path: gh:pawamoy/copier-uv
4+
author_email: [email protected]
55
author_fullname: Timothée Mazzucotelli
66
author_username: pawamoy
77
copyright_date: '2020'
88
copyright_holder: Timothée Mazzucotelli
9-
copyright_holder_email: [email protected]
9+
copyright_holder_email: [email protected]
1010
copyright_license: ISC License
1111
insiders: false
1212
project_description: Load Python objects documentation.
@@ -15,6 +15,6 @@ python_package_command_line_name: pytkdocs
1515
python_package_distribution_name: pytkdocs
1616
python_package_import_name: pytkdocs
1717
repository_name: pytkdocs
18-
repository_namespace: pawamoy
18+
repository_namespace: mkdocstrings
1919
repository_provider: github.com
2020

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PATH_add scripts

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
github: pawamoy
22
ko_fi: pawamoy
3+
polar: pawamoy
34
custom:
45
- https://www.paypal.me/pawamoy

.github/ISSUE_TEMPLATE/bug_report.md renamed to .github/ISSUE_TEMPLATE/1-bug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ PASTE TRACEBACK HERE
5353
pytkdocs --debug-info # | xclip -selection clipboard
5454
```
5555

56-
PASTE OUTPUT HERE
56+
PASTE MARKDOWN OUTPUT HERE
5757

5858
### Additional context
5959
<!-- Add any other relevant context about the problem here,
File renamed without changes.

.github/ISSUE_TEMPLATE/3-docs.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Documentation update
3+
about: Point at unclear, missing or outdated documentation.
4+
title: "docs: "
5+
labels: docs
6+
assignees: pawamoy
7+
---
8+
9+
### Is something unclear, missing or outdated in our documentation?
10+
<!-- A clear and concise description of what the documentation issue is. Ex. I can't find an explanation on feature [...]. -->
11+
12+
### Relevant code snippets
13+
<!-- If the documentation issue is related to code, please provide relevant code snippets. -->
14+
15+
### Link to the relevant documentation section
16+
<!-- Add a link to the relevant section of our documentation, or any addition context. -->

.github/ISSUE_TEMPLATE/4-change.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Change request
3+
about: Suggest any other kind of change for this project.
4+
title: "change: "
5+
assignees: pawamoy
6+
---
7+
8+
### Is your change request related to a problem? Please describe.
9+
<!-- A clear and concise description of what the problem is. -->
10+
11+
### Describe the solution you'd like
12+
<!-- A clear and concise description of what you want to happen. -->
13+
14+
### Describe alternatives you've considered
15+
<!-- A clear and concise description of any alternative solutions you've considered. -->
16+
17+
### Additional context
18+
<!-- Add any other context or screenshots about the change request here. -->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: I have a question / I need help
4-
url: https://github.com/pawamoy/pytkdocs/discussions/new?category=q-a
4+
url: https://github.com/mkdocstrings/pytkdocs/discussions/new?category=q-a
55
about: Ask and answer questions in the Discussions tab.

.github/workflows/ci.yml

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
LANG: en_US.utf-8
1515
LC_ALL: en_US.utf-8
1616
PYTHONIOENCODING: UTF-8
17+
PYTHON_VERSIONS: ""
1718

1819
jobs:
1920

@@ -28,36 +29,32 @@ jobs:
2829
- name: Fetch all tags
2930
run: git fetch --depth=1 --tags
3031

31-
- name: Set up PDM
32-
uses: pdm-project/setup-pdm@v4
32+
- name: Set up Python
33+
uses: actions/setup-python@v5
3334
with:
34-
python-version: "3.8"
35+
python-version: "3.11"
3536

36-
- name: Resolving dependencies
37-
run: pdm lock -v --no-cross-platform -G ci-quality
37+
- name: Install uv
38+
run: pip install uv
3839

3940
- name: Install dependencies
40-
run: pdm install -G ci-quality
41+
run: make setup
4142

4243
- name: Check if the documentation builds correctly
43-
run: pdm run duty check-docs
44+
run: make check-docs
4445

4546
- name: Check the code quality
46-
run: pdm run duty check-quality
47+
run: make check-quality
4748

4849
- name: Check if the code is correctly typed
49-
run: pdm run duty check-types
50-
51-
- name: Check for vulnerabilities in dependencies
52-
run: pdm run duty check-dependencies
50+
run: make check-types
5351

5452
- name: Check for breaking changes in the API
55-
run: pdm run duty check-api
53+
run: make check-api
5654

5755
tests:
5856

5957
strategy:
60-
max-parallel: 4
6158
matrix:
6259
os:
6360
- ubuntu-latest
@@ -69,24 +66,37 @@ jobs:
6966
- "3.10"
7067
- "3.11"
7168
- "3.12"
69+
- "3.13"
70+
resolution:
71+
- highest
72+
- lowest-direct
73+
exclude:
74+
- os: macos-latest
75+
resolution: lowest-direct
76+
- os: windows-latest
77+
resolution: lowest-direct
7278
runs-on: ${{ matrix.os }}
73-
continue-on-error: ${{ matrix.python-version == '3.12' }}
79+
continue-on-error: ${{ matrix.python-version == '3.13' }}
7480

7581
steps:
7682
- name: Checkout
7783
uses: actions/checkout@v4
7884

79-
- name: Set up PDM
80-
uses: pdm-project/setup-pdm@v4
85+
- name: Set up Python
86+
uses: actions/setup-python@v5
8187
with:
8288
python-version: ${{ matrix.python-version }}
83-
allow-python-prereleases: true
89+
allow-prereleases: true
8490

85-
- name: Resolving dependencies
86-
run: pdm lock -v --no-cross-platform -G ci-tests
91+
- name: Setup uv
92+
uses: astral-sh/setup-uv@v1
93+
with:
94+
enable-cache: true
8795

8896
- name: Install dependencies
89-
run: pdm install --no-editable -G ci-tests
97+
env:
98+
UV_RESOLUTION: ${{ matrix.resolution }}
99+
run: make setup
90100

91101
- name: Run the test suite
92-
run: pdm run duty test
102+
run: make test

.gitignore

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
1+
# editors
12
.idea/
23
.vscode/
3-
__pycache__/
4-
*.py[cod]
5-
dist/
4+
5+
# python
66
*.egg-info/
7-
build/
8-
htmlcov/
7+
*.py[cod]
8+
.venv/
9+
.venvs/
10+
/build/
11+
/dist/
12+
13+
# tools
914
.coverage*
10-
pip-wheel-metadata/
15+
/.pdm-build/
16+
/htmlcov/
17+
/site/
18+
uv.lock
19+
20+
# cache
21+
.cache/
1122
.pytest_cache/
1223
.mypy_cache/
13-
site/
14-
pdm.lock
15-
pdm.toml
16-
.pdm-plugins/
17-
.pdm-python
18-
__pypackages__/
19-
.venv/
20-
.cache/
24+
.ruff_cache/
25+
__pycache__/

0 commit comments

Comments
 (0)