Skip to content

Commit 6c7da38

Browse files
committed
feat: Make project public!
Contents are copied over from the Insiders version now that the relevant funding goal is reached!
1 parent 8bd332c commit 6c7da38

Some content is hidden

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

59 files changed

+3256
-2
lines changed

.copier-answers.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Changes here will be overwritten by Copier
2+
_commit: 1.4.0
3+
_src_path: gh:pawamoy/copier-uv
4+
author_email: [email protected]
5+
author_fullname: Timothée Mazzucotelli
6+
author_username: pawamoy
7+
copyright_date: '2023'
8+
copyright_holder: Timothée Mazzucotelli
9+
copyright_holder_email: [email protected]
10+
copyright_license: ISC License
11+
insiders: true
12+
insiders_email: [email protected]
13+
insiders_repository_name: griffe-warnings-deprecated
14+
project_description: Griffe extension for `@warnings.deprecated` (PEP 702).
15+
project_name: griffe-warnings-deprecated
16+
public_release: false
17+
python_package_command_line_name: ''
18+
python_package_distribution_name: griffe-warnings-deprecated
19+
python_package_import_name: griffe_warnings_deprecated
20+
repository_name: griffe-warnings-deprecated
21+
repository_namespace: mkdocstrings
22+
repository_provider: github.com
23+

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PATH_add scripts

.github/FUNDING.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
github: pawamoy
2+
ko_fi: pawamoy
3+
polar: pawamoy
4+
custom:
5+
- https://www.paypal.me/pawamoy

.github/ISSUE_TEMPLATE/1-bug.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report to help us improve.
4+
title: "bug: "
5+
labels: unconfirmed
6+
assignees: [pawamoy]
7+
---
8+
9+
### Description of the bug
10+
<!-- Please provide a clear and concise description of what the bug is. -->
11+
12+
### To Reproduce
13+
<!-- Please provide a Minimal Reproducible Example (MRE) if possible.
14+
Try to boil down the problem to a few lines of code.
15+
Your code should run by simply copying and pasting it.
16+
17+
Example:
18+
19+
```
20+
git clone https://github.com/username/repro
21+
cd repro
22+
python -m venv .venv
23+
. .venv/bin/activate
24+
pip install -r requirements.txt
25+
... # command or code showing the issue
26+
```
27+
-->
28+
29+
```
30+
WRITE MRE / INSTRUCTIONS HERE
31+
```
32+
33+
### Full traceback
34+
<!-- Please provide the full error message / traceback if any, by pasting it in the code block below.
35+
No screenshots! -->
36+
37+
<details><summary>Full traceback</summary>
38+
39+
```python
40+
PASTE TRACEBACK HERE
41+
```
42+
43+
</details>
44+
45+
### Expected behavior
46+
<!-- Please provide a clear and concise description of what you expected to happen. -->
47+
48+
### Environment information
49+
<!-- Please run the following command in your repository and paste its output below it,
50+
redacting sensitive information. -->
51+
52+
```bash
53+
python -m griffe_warnings_deprecated.debug # | xclip -selection clipboard
54+
```
55+
56+
PASTE MARKDOWN OUTPUT HERE
57+
58+
### Additional context
59+
<!-- Add any other relevant context about the problem here,
60+
like links to other issues or pull requests, screenshots, etc.
61+
-->

.github/ISSUE_TEMPLATE/2-feature.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project.
4+
title: "feature: "
5+
labels: feature
6+
assignees: pawamoy
7+
---
8+
9+
### Is your feature request related to a problem? Please describe.
10+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]. -->
11+
12+
### Describe the solution you'd like
13+
<!-- A clear and concise description of what you want to happen. -->
14+
15+
### Describe alternatives you've considered
16+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
17+
18+
### Additional context
19+
<!-- Add any other context or screenshots about the feature request here. -->

.github/ISSUE_TEMPLATE/3-docs.md

+16
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

+18
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

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: I have a question / I need help
4+
url: https://github.com/mkdocstrings/griffe-warnings-deprecated/discussions/new?category=q-a
5+
about: Ask and answer questions in the Discussions tab.

.github/workflows/ci.yml

+121
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
env:
14+
LANG: en_US.utf-8
15+
LC_ALL: en_US.utf-8
16+
PYTHONIOENCODING: UTF-8
17+
PYTHON_VERSIONS: ""
18+
19+
jobs:
20+
21+
quality:
22+
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Fetch all tags
30+
run: git fetch --depth=1 --tags
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: "3.11"
36+
37+
- name: Install uv
38+
run: pip install uv
39+
40+
- name: Install dependencies
41+
run: make setup
42+
43+
- name: Check if the documentation builds correctly
44+
run: make check-docs
45+
46+
- name: Check the code quality
47+
run: make check-quality
48+
49+
- name: Check if the code is correctly typed
50+
run: make check-types
51+
52+
- name: Check for breaking changes in the API
53+
run: make check-api
54+
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
78+
79+
tests:
80+
81+
needs: exclude-test-jobs
82+
strategy:
83+
matrix:
84+
os:
85+
- ubuntu-latest
86+
- macos-latest
87+
- windows-latest
88+
python-version:
89+
- "3.8"
90+
- "3.9"
91+
- "3.10"
92+
- "3.11"
93+
- "3.12"
94+
- "3.13"
95+
resolution:
96+
- highest
97+
- lowest-direct
98+
exclude: ${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }}
99+
runs-on: ${{ matrix.os }}
100+
continue-on-error: ${{ matrix.python-version == '3.13' }}
101+
102+
steps:
103+
- name: Checkout
104+
uses: actions/checkout@v4
105+
106+
- name: Set up Python
107+
uses: actions/setup-python@v5
108+
with:
109+
python-version: ${{ matrix.python-version }}
110+
allow-prereleases: true
111+
112+
- name: Install uv
113+
run: pip install uv
114+
115+
- name: Install dependencies
116+
env:
117+
UV_RESOLUTION: ${{ matrix.resolution }}
118+
run: make setup
119+
120+
- name: Run the test suite
121+
run: make test

.github/workflows/release.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: release
2+
3+
on: push
4+
permissions:
5+
contents: write
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
if: startsWith(github.ref, 'refs/tags/')
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Fetch all tags
15+
run: git fetch --depth=1 --tags
16+
- 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'
27+
with:
28+
name: griffe-warnings-deprecated-insiders
29+
path: ./dist/*
30+
- name: Install git-changelog
31+
if: github.repository_owner != 'pawamoy-insiders'
32+
run: pip install git-changelog
33+
- 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/*
41+
- name: Create release
42+
uses: softprops/action-gh-release@v1
43+
if: github.repository_owner != 'pawamoy-insiders'
44+
with:
45+
body_path: release-notes.md

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# editors
2+
.idea/
3+
.vscode/
4+
5+
# python
6+
*.egg-info/
7+
*.py[cod]
8+
.venv/
9+
.venvs/
10+
/build/
11+
/dist/
12+
13+
# tools
14+
.coverage*
15+
/.pdm-build/
16+
/htmlcov/
17+
/site/
18+
19+
# cache
20+
.cache/
21+
.pytest_cache/
22+
.mypy_cache/
23+
.ruff_cache/
24+
__pycache__/

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7+
8+
<!-- insertion marker -->

0 commit comments

Comments
 (0)