Skip to content

Commit 5606b04

Browse files
committed
chore: Template upgrade
1 parent 82d4c29 commit 5606b04

Some content is hidden

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

49 files changed

+858
-1361
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.0
1+
# Changes here will be overwritten by Copier.
2+
_commit: 1.11.1
33
_src_path: gh:pawamoy/copier-uv
44
author_email: [email protected]
55
author_fullname: Timothée Mazzucotelli
66
author_username: pawamoy
77
copyright_date: '2024'
88
copyright_holder: Timothée Mazzucotelli
99
copyright_holder_email: [email protected]
10-
copyright_license: ISC License
11-
insiders: true
12-
insiders_email: [email protected]
13-
insiders_repository_name: griffe-runtime-objects
10+
copyright_license: ISC
1411
project_description: Make runtime objects available through `extra`.
1512
project_name: griffe-runtime-objects
16-
public_release: false
1713
python_package_command_line_name: ''
1814
python_package_distribution_name: griffe-runtime-objects
1915
python_package_import_name: griffe_runtime_objects

.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_runtime_objects.debug # | xclip -selection clipboard
53+
python -m griffe_runtime_objects._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: 69 additions & 41 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"
2246

23-
runs-on: ubuntu-latest
47+
runs-on: ${{ matrix.os }}
2448

2549
steps:
2650
- name: Checkout
2751
uses: actions/checkout@v4
52+
with:
53+
fetch-depth: 0
54+
fetch-tags: true
2855

29-
- name: Fetch all tags
30-
run: git fetch --depth=1 --tags
31-
32-
- name: Set up Python
33-
uses: actions/setup-python@v5
56+
- name: Setup Python
57+
uses: actions/setup-python@v6
3458
with:
35-
python-version: "3.11"
59+
python-version: ${{ matrix.python-version }}
3660

37-
- name: Install uv
38-
run: pip install uv
61+
- name: Setup uv
62+
uses: astral-sh/setup-uv@v5
63+
with:
64+
enable-cache: true
65+
cache-dependency-glob: pyproject.toml
3966

4067
- name: Install dependencies
4168
run: make setup
@@ -52,70 +79,71 @@ jobs:
5279
- name: Check for breaking changes in the API
5380
run: make check-api
5481

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

7989
tests:
8090

81-
needs: exclude-test-jobs
91+
needs:
92+
- quality
8293
strategy:
8394
matrix:
8495
os:
8596
- ubuntu-latest
8697
- macos-latest
8798
- windows-latest
8899
python-version:
89-
- "3.8"
90-
- "3.9"
91100
- "3.10"
92101
- "3.11"
93102
- "3.12"
94103
- "3.13"
104+
- "3.14"
105+
- "3.15"
95106
resolution:
96107
- highest
97108
- lowest-direct
98-
exclude: ${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }}
109+
exclude:
110+
- os: macos-latest
111+
resolution: lowest-direct
112+
- os: windows-latest
113+
resolution: lowest-direct
99114
runs-on: ${{ matrix.os }}
100-
continue-on-error: ${{ matrix.python-version == '3.13' }}
115+
continue-on-error: true
101116

102117
steps:
103118
- name: Checkout
104119
uses: actions/checkout@v4
120+
with:
121+
fetch-depth: 0
122+
fetch-tags: true
105123

106-
- name: Set up Python
107-
uses: actions/setup-python@v5
124+
- name: Setup Python
125+
uses: actions/setup-python@v6
108126
with:
109127
python-version: ${{ matrix.python-version }}
110128
allow-prereleases: true
111129

112-
- name: Install uv
113-
run: pip install uv
130+
- name: Setup uv
131+
uses: astral-sh/setup-uv@v5
132+
with:
133+
enable-cache: true
134+
cache-dependency-glob: pyproject.toml
135+
cache-suffix: ${{ matrix.resolution }}
114136

115137
- name: Install dependencies
116138
env:
117139
UV_RESOLUTION: ${{ matrix.resolution }}
118140
run: make setup
119141

142+
- name: Download objects inventory
143+
uses: actions/download-artifact@v4
144+
with:
145+
name: objects.inv
146+
path: site/
147+
120148
- name: Run the test suite
121149
run: make test

.github/workflows/release.yml

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +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@v4
18-
- name: Install build
19-
if: github.repository_owner == 'pawamoy-insiders'
20-
run: python -m pip install build
21-
- name: Build dists
22-
if: github.repository_owner == 'pawamoy-insiders'
23-
run: python -m build
24-
- name: Upload dists artifact
25-
uses: actions/upload-artifact@v4
26-
if: github.repository_owner == 'pawamoy-insiders'
18+
uses: actions/setup-python@v6
2719
with:
28-
name: griffe-runtime-objects-insiders
29-
path: ./dist/*
30-
- name: Install git-changelog
31-
if: github.repository_owner != 'pawamoy-insiders'
32-
run: pip install git-changelog
20+
python-version: "3.13"
21+
- name: Setup uv
22+
uses: astral-sh/setup-uv@v5
3323
- name: Prepare release notes
34-
if: github.repository_owner != 'pawamoy-insiders'
35-
run: git-changelog --release-notes > release-notes.md
36-
- name: Create release with assets
37-
uses: softprops/action-gh-release@v1
38-
if: github.repository_owner == 'pawamoy-insiders'
39-
with:
40-
files: ./dist/*
24+
run: uv tool run git-changelog --release-notes > release-notes.md
4125
- name: Create release
42-
uses: softprops/action-gh-release@v1
43-
if: github.repository_owner != 'pawamoy-insiders'
26+
uses: softprops/action-gh-release@v2
4427
with:
4528
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/.pdm-build/
1616
/htmlcov/
1717
/site/
18+
uv.lock
1819

1920
# cache
2021
.cache/

.gitpod.dockerfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

.gitpod.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)