Skip to content

Commit 944700f

Browse files
committed
chore: Template upgrade
1 parent 1fe3313 commit 944700f

Some content is hidden

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

50 files changed

+973
-1558
lines changed

.copier-answers.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
# Changes here will be overwritten by Copier
2-
_commit: 1.4.8
1+
# Changes here will be overwritten by Copier.
2+
_commit: 1.11.13
33
_src_path: gh:pawamoy/copier-uv
44
author_email: dev@pawamoy.fr
55
author_fullname: Timothée Mazzucotelli
66
author_username: pawamoy
77
copyright_date: '2023'
88
copyright_holder: Timothée Mazzucotelli
99
copyright_holder_email: dev@pawamoy.fr
10-
copyright_license: ISC License
11-
insiders: true
12-
insiders_email: insiders@pawamoy.fr
13-
insiders_repository_name: griffe-warnings-deprecated
10+
copyright_license: ISC
1411
project_description: Griffe extension for `@warnings.deprecated` (PEP 702).
1512
project_name: griffe-warnings-deprecated
16-
public_release: true
1713
python_package_command_line_name: ''
1814
python_package_distribution_name: griffe-warnings-deprecated
1915
python_package_import_name: griffe_warnings_deprecated

.github/FUNDING.yml

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

.github/ISSUE_TEMPLATE/1-bug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ PASTE TRACEBACK HERE
5050
redacting sensitive information. -->
5151

5252
```bash
53-
python -m griffe_warnings_deprecated.debug # | xclip -selection clipboard
53+
python -m griffe_warnings_deprecated._internal.debug # | xclip -selection clipboard
5454
```
5555

5656
PASTE MARKDOWN OUTPUT HERE

.github/pull_request_template.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### For reviewers
2+
<!-- Help reviewers by letting them know whether AI was used to create this PR. -->
3+
4+
- [ ] I did not use AI
5+
- [ ] I used AI and thoroughly reviewed every code/docs change
6+
7+
### Description of the change
8+
<!-- Quick sentence for small changes, longer description for more impacting changes. -->
9+
10+
### Relevant resources
11+
<!-- Link to any relevant GitHub issue, PR or discussion, section in online docs, etc. -->
12+
13+
-
14+
-
15+
-

.github/workflows/ci.yml

Lines changed: 62 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,17 @@ name: ci
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- test-me-*
58
pull_request:
69
branches:
710
- main
811

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
15+
916
defaults:
1017
run:
1118
shell: bash
@@ -14,28 +21,48 @@ env:
1421
LANG: en_US.utf-8
1522
LC_ALL: en_US.utf-8
1623
PYTHONIOENCODING: UTF-8
24+
PYTHONWARNDEFAULTENCODING: "1"
1725
PYTHON_VERSIONS: ""
1826

1927
jobs:
2028

2129
quality:
30+
strategy:
31+
matrix:
32+
os:
33+
- ubuntu-latest
34+
- macos-latest
35+
- windows-latest
36+
python-version:
37+
- "3.10"
38+
- "3.14"
39+
include:
40+
- os: ubuntu-latest
41+
python-version: "3.11"
42+
- os: ubuntu-latest
43+
python-version: "3.12"
44+
- os: ubuntu-latest
45+
python-version: "3.13"
46+
- os: ubuntu-latest
47+
python-version: "3.15-dev"
2248

23-
runs-on: ubuntu-latest
49+
runs-on: ${{ matrix.os }}
50+
continue-on-error: true
2451

2552
steps:
2653
- name: Checkout
2754
uses: actions/checkout@v4
28-
29-
- name: Fetch all tags
30-
run: git fetch --depth=1 --tags
55+
with:
56+
fetch-depth: 0
57+
fetch-tags: true
3158

3259
- name: Setup Python
33-
uses: actions/setup-python@v5
60+
uses: actions/setup-python@v6
3461
with:
35-
python-version: "3.12"
62+
python-version: ${{ matrix.python-version }}
3663

3764
- name: Setup uv
38-
uses: astral-sh/setup-uv@v3
65+
uses: astral-sh/setup-uv@v5
3966
with:
4067
enable-cache: true
4168
cache-dependency-glob: pyproject.toml
@@ -55,74 +82,72 @@ jobs:
5582
- name: Check for breaking changes in the API
5683
run: make check-api
5784

58-
exclude-test-jobs:
59-
runs-on: ubuntu-latest
60-
outputs:
61-
jobs: ${{ steps.exclude-jobs.outputs.jobs }}
62-
steps:
63-
- id: exclude-jobs
64-
run: |
65-
if ${{ github.repository_owner == 'pawamoy-insiders' }}; then
66-
echo 'jobs=[
67-
{"os": "macos-latest"},
68-
{"os": "windows-latest"},
69-
{"python-version": "3.10"},
70-
{"python-version": "3.11"},
71-
{"python-version": "3.12"},
72-
{"python-version": "3.13"},
73-
{"python-version": "3.14"}
74-
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT
75-
else
76-
echo 'jobs=[
77-
{"os": "macos-latest", "resolution": "lowest-direct"},
78-
{"os": "windows-latest", "resolution": "lowest-direct"}
79-
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT
80-
fi
85+
- name: Store objects inventory for tests
86+
uses: actions/upload-artifact@v4
87+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' }}
88+
with:
89+
name: objects.inv
90+
path: site/objects.inv
8191

8292
tests:
8393

84-
needs: exclude-test-jobs
94+
needs:
95+
- quality
8596
strategy:
8697
matrix:
8798
os:
8899
- ubuntu-latest
89100
- macos-latest
90101
- windows-latest
91102
python-version:
92-
- "3.9"
93103
- "3.10"
94104
- "3.11"
95105
- "3.12"
96106
- "3.13"
97107
- "3.14"
108+
- "3.15-dev"
98109
resolution:
99110
- highest
100111
- lowest-direct
101-
exclude: ${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }}
112+
exclude:
113+
- os: macos-latest
114+
resolution: lowest-direct
115+
- os: windows-latest
116+
resolution: lowest-direct
117+
102118
runs-on: ${{ matrix.os }}
103-
continue-on-error: ${{ matrix.python-version == '3.14' }}
119+
continue-on-error: true
104120

105121
steps:
106122
- name: Checkout
107123
uses: actions/checkout@v4
124+
with:
125+
fetch-depth: 0
126+
fetch-tags: true
108127

109128
- name: Setup Python
110-
uses: actions/setup-python@v5
129+
uses: actions/setup-python@v6
111130
with:
112131
python-version: ${{ matrix.python-version }}
113132
allow-prereleases: true
114133

115134
- name: Setup uv
116-
uses: astral-sh/setup-uv@v3
135+
uses: astral-sh/setup-uv@v5
117136
with:
118137
enable-cache: true
119138
cache-dependency-glob: pyproject.toml
120-
cache-suffix: py${{ matrix.python-version }}
139+
cache-suffix: ${{ matrix.resolution }}
121140

122141
- name: Install dependencies
123142
env:
124143
UV_RESOLUTION: ${{ matrix.resolution }}
125144
run: make setup
126145

146+
- name: Download objects inventory
147+
uses: actions/download-artifact@v4
148+
with:
149+
name: objects.inv
150+
path: site/
151+
127152
- name: Run the test suite
128153
run: make test

.github/workflows/release.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,19 @@ 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
17-
uses: actions/setup-python@v5
18+
uses: actions/setup-python@v6
1819
with:
19-
python-version: "3.12"
20+
python-version: "3.13"
2021
- name: Setup uv
21-
uses: astral-sh/setup-uv@v3
22-
- name: Build dists
23-
if: github.repository_owner == 'pawamoy-insiders'
24-
run: uv tool run --from build pyproject-build
25-
- name: Upload dists artifact
26-
uses: actions/upload-artifact@v4
27-
if: github.repository_owner == 'pawamoy-insiders'
28-
with:
29-
name: griffe-warnings-deprecated-insiders
30-
path: ./dist/*
22+
uses: astral-sh/setup-uv@v5
3123
- name: Prepare release notes
32-
if: github.repository_owner != 'pawamoy-insiders'
3324
run: uv tool run git-changelog --release-notes > release-notes.md
34-
- name: Create release with assets
35-
uses: softprops/action-gh-release@v2
36-
if: github.repository_owner == 'pawamoy-insiders'
37-
with:
38-
files: ./dist/*
3925
- name: Create release
4026
uses: softprops/action-gh-release@v2
41-
if: github.repository_owner != 'pawamoy-insiders'
4227
with:
4328
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.'

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ uv.lock
2020
# cache
2121
.cache/
2222
.pytest_cache/
23-
.mypy_cache/
2423
.ruff_cache/
2524
__pycache__/

0 commit comments

Comments
 (0)