Skip to content

Commit fdca042

Browse files
authored
Merge branch 'master' into fix/markup
2 parents 152498a + 185b2f5 commit fdca042

224 files changed

Lines changed: 1232 additions & 462 deletions

File tree

Some content is hidden

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

.github/DISCUSSION_TEMPLATE/questions.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,15 @@ body:
6464
placeholder: |
6565
import typer
6666
67+
app = typer.Typer()
6768
69+
@app.command()
6870
def main(name: str):
6971
typer.echo(f"Hello {name}")
7072
7173
7274
if __name__ == "__main__":
73-
typer.run(main)
75+
app()
7476
render: python
7577
validations:
7678
required: true

.github/workflows/build-docs.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
outputs:
2222
docs: ${{ steps.filter.outputs.docs }}
2323
steps:
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2525
# For pull requests it's not necessary to checkout the code but for the main branch it is
2626
- uses: dorny/paths-filter@v3
2727
id: filter
@@ -32,12 +32,9 @@ jobs:
3232
- docs/**
3333
- docs_src/**
3434
- requirements-docs.txt
35-
- requirements-docs-insiders.txt
3635
- pyproject.toml
3736
- mkdocs.yml
38-
- mkdocs.insiders.yml
39-
- mkdocs.maybe-insiders.yml
40-
- mkdocs.no-insiders.yml
37+
- mkdocs.env.yml
4138
- .github/workflows/build-docs.yml
4239
- .github/workflows/deploy-docs.yml
4340
- data/**
@@ -52,13 +49,13 @@ jobs:
5249
env:
5350
GITHUB_CONTEXT: ${{ toJson(github) }}
5451
run: echo "$GITHUB_CONTEXT"
55-
- uses: actions/checkout@v5
52+
- uses: actions/checkout@v6
5653
- name: Set up Python
5754
uses: actions/setup-python@v6
5855
with:
5956
python-version: "3.11"
6057
- name: Setup uv
61-
uses: astral-sh/setup-uv@v6
58+
uses: astral-sh/setup-uv@v7
6259
with:
6360
version: "0.4.15"
6461
enable-cache: true
@@ -67,11 +64,6 @@ jobs:
6764
pyproject.toml
6865
- name: Install docs extras
6966
run: uv pip install -r requirements-docs.txt
70-
- name: Install Material for MkDocs Insiders
71-
if: ( github.event_name != 'pull_request' || github.secret_source == 'Actions' )
72-
run: uv pip install -r requirements-docs-insiders.txt
73-
env:
74-
TOKEN: ${{ secrets.TYPER_MKDOCS_MATERIAL_INSIDERS }}
7567
- uses: actions/cache@v4
7668
with:
7769
key: mkdocs-cards-${{ github.ref }}-v1
@@ -80,7 +72,7 @@ jobs:
8072
run: python ./scripts/docs.py verify-readme
8173
- name: Build Docs
8274
run: python ./scripts/docs.py build
83-
- uses: actions/upload-artifact@v4
75+
- uses: actions/upload-artifact@v5
8476
with:
8577
name: docs-site
8678
path: ./site/**

.github/workflows/deploy-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
env:
2424
GITHUB_CONTEXT: ${{ toJson(github) }}
2525
run: echo "$GITHUB_CONTEXT"
26-
- uses: actions/checkout@v5
26+
- uses: actions/checkout@v6
2727
- name: Set up Python
2828
uses: actions/setup-python@v6
2929
with:
3030
python-version: "3.11"
3131
- name: Setup uv
32-
uses: astral-sh/setup-uv@v6
32+
uses: astral-sh/setup-uv@v7
3333
with:
3434
version: "0.4.15"
3535
enable-cache: true
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
rm -rf ./site
5151
mkdir ./site
52-
- uses: actions/download-artifact@v5
52+
- uses: actions/download-artifact@v6
5353
with:
5454
path: ./site/
5555
pattern: docs-site

.github/workflows/issue-manager.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
env:
2828
GITHUB_CONTEXT: ${{ toJson(github) }}
2929
run: echo "$GITHUB_CONTEXT"
30-
- uses: tiangolo/issue-manager@0.5.1
30+
- uses: tiangolo/issue-manager@0.6.0
3131
with:
3232
token: ${{ secrets.GITHUB_TOKEN }}
3333
config: >
@@ -38,6 +38,10 @@ jobs:
3838
},
3939
"waiting": {
4040
"delay": 2628000,
41-
"message": "As this PR has been waiting for the original user for a while but seems to be inactive, it's now going to be closed. But if there's anyone interested, feel free to create a new PR."
41+
"message": "As this PR has been waiting for the original user for a while but seems to be inactive, it's now going to be closed. But if there's anyone interested, feel free to create a new PR.",
42+
"reminder": {
43+
"before": "P3D",
44+
"message": "Heads-up: this will be closed in 3 days unless there’s new activity."
45+
}
4246
}
4347
}

.github/workflows/latest-changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
GITHUB_CONTEXT: ${{ toJson(github) }}
2626
run: echo "$GITHUB_CONTEXT"
27-
- uses: actions/checkout@v5
27+
- uses: actions/checkout@v6
2828
with:
2929
# To allow latest-changes to commit to the main branch
3030
token: ${{ secrets.TYPER_LATEST_CHANGES }}
@@ -34,7 +34,7 @@ jobs:
3434
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
3535
with:
3636
limit-access-to-actor: true
37-
- uses: tiangolo/[email protected].0
37+
- uses: tiangolo/[email protected].1
3838
with:
3939
token: ${{ secrets.GITHUB_TOKEN }}
4040
latest_changes_file: docs/release-notes.md

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
env:
2222
GITHUB_CONTEXT: ${{ toJson(github) }}
2323
run: echo "$GITHUB_CONTEXT"
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2525
- name: Set up Python
2626
uses: actions/setup-python@v6
2727
with:

.github/workflows/smokeshow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ jobs:
2222
env:
2323
GITHUB_CONTEXT: ${{ toJson(github) }}
2424
run: echo "$GITHUB_CONTEXT"
25-
- uses: actions/checkout@v5
25+
- uses: actions/checkout@v6
2626
- uses: actions/setup-python@v6
2727
with:
2828
python-version: '3.9'
2929
- name: Setup uv
30-
uses: astral-sh/setup-uv@v6
30+
uses: astral-sh/setup-uv@v7
3131
with:
3232
version: "0.4.15"
3333
enable-cache: true
3434
cache-dependency-glob: |
3535
requirements**.txt
3636
pyproject.toml
3737
- run: uv pip install -r requirements-github-actions.txt
38-
- uses: actions/download-artifact@v5
38+
- uses: actions/download-artifact@v6
3939
with:
4040
name: coverage-html
4141
path: htmlcov
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Test CPython Nightly
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
test-latest-python:
10+
runs-on: ubuntu-latest
11+
continue-on-error: true
12+
steps:
13+
- uses: actions/checkout@v6
14+
- name: Checkout CPython main
15+
uses: actions/checkout@v6
16+
with:
17+
repository: python/cpython
18+
ref: main
19+
path: ./.cpython
20+
- name: Install CPython build dependencies
21+
run: sudo apt-get update && sudo apt-get install -y build-essential pkg-config libssl-dev zlib1g-dev
22+
- name: Build CPython
23+
run: |
24+
cd ./.cpython
25+
./configure && make -j $(nproc)
26+
- name: Setup uv
27+
uses: astral-sh/setup-uv@v7
28+
with:
29+
version: "0.4.15"
30+
enable-cache: true
31+
cache-dependency-glob: |
32+
requirements**.txt
33+
pyproject.toml
34+
- name: Create venv with CPython
35+
run: uv venv --python ./.cpython/python .venv
36+
- name: Install Dependencies
37+
run: uv pip install -r requirements-tests.txt
38+
- name: Activate venv
39+
run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
40+
- name: Lint
41+
run: bash scripts/lint.sh
42+
- run: mkdir coverage
43+
- run: bash ./scripts/test-files.sh
44+
- name: Test
45+
run: bash scripts/test.sh
46+
env:
47+
COVERAGE_FILE: coverage/.coverage.ubuntu-cpython-main
48+
CONTEXT: ubuntu-cpython-main
49+
- name: Store coverage files
50+
uses: actions/upload-artifact@v5
51+
with:
52+
name: coverage-ubuntu-cpython-main
53+
path: coverage
54+
include-hidden-files: true

.github/workflows/test-redistribute.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
env:
2424
GITHUB_CONTEXT: ${{ toJson(github) }}
2525
run: echo "$GITHUB_CONTEXT"
26-
- uses: actions/checkout@v5
26+
- uses: actions/checkout@v6
2727
- name: Set up Python
2828
uses: actions/setup-python@v6
2929
with:

.github/workflows/test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
os: [ ubuntu-latest, windows-latest, macos-latest ]
23-
python-version: [ "3.13" ]
23+
python-version: [ "3.14" ]
2424
include:
2525
- os: macos-latest
2626
python-version: "3.8"
@@ -32,20 +32,22 @@ jobs:
3232
python-version: "3.11"
3333
- os: windows-latest
3434
python-version: "3.12"
35+
- os: ubuntu-latest
36+
python-version: "3.13"
3537
fail-fast: false
3638
runs-on: ${{ matrix.os }}
3739
steps:
3840
- name: Dump GitHub context
3941
env:
4042
GITHUB_CONTEXT: ${{ toJson(github) }}
4143
run: echo "$GITHUB_CONTEXT"
42-
- uses: actions/checkout@v5
44+
- uses: actions/checkout@v6
4345
- name: Set up Python
4446
uses: actions/setup-python@v6
4547
with:
4648
python-version: ${{ matrix.python-version }}
4749
- name: Setup uv
48-
uses: astral-sh/setup-uv@v6
50+
uses: astral-sh/setup-uv@v7
4951
with:
5052
version: "0.4.15"
5153
enable-cache: true
@@ -65,7 +67,7 @@ jobs:
6567
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
6668
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
6769
- name: Store coverage files
68-
uses: actions/upload-artifact@v4
70+
uses: actions/upload-artifact@v5
6971
with:
7072
name: coverage-${{ runner.os }}-${{ matrix.python-version }}
7173
path: coverage
@@ -79,20 +81,20 @@ jobs:
7981
env:
8082
GITHUB_CONTEXT: ${{ toJson(github) }}
8183
run: echo "$GITHUB_CONTEXT"
82-
- uses: actions/checkout@v5
84+
- uses: actions/checkout@v6
8385
- uses: actions/setup-python@v6
8486
with:
8587
python-version: '3.8'
8688
- name: Setup uv
87-
uses: astral-sh/setup-uv@v6
89+
uses: astral-sh/setup-uv@v7
8890
with:
8991
version: "0.4.15"
9092
enable-cache: true
9193
cache-dependency-glob: |
9294
requirements**.txt
9395
pyproject.toml
9496
- name: Get coverage files
95-
uses: actions/download-artifact@v5
97+
uses: actions/download-artifact@v6
9698
with:
9799
pattern: coverage-*
98100
path: coverage
@@ -104,7 +106,7 @@ jobs:
104106
- run: coverage report
105107
- run: coverage html --show-contexts --title "Coverage for ${{ github.sha }}"
106108
- name: Store coverage HTML
107-
uses: actions/upload-artifact@v4
109+
uses: actions/upload-artifact@v5
108110
with:
109111
name: coverage-html
110112
path: htmlcov

0 commit comments

Comments
 (0)