forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pythongh-81079-glob-case-sensitive-arg-2
- Loading branch information
Showing
687 changed files
with
34,241 additions
and
20,689 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM docker.io/library/fedora:37 | ||
|
||
ENV CC=clang | ||
|
||
ENV WASI_SDK_VERSION=19 | ||
ENV WASI_SDK_PATH=/opt/wasi-sdk | ||
|
||
ENV WASMTIME_HOME=/opt/wasmtime | ||
ENV WASMTIME_VERSION=7.0.0 | ||
ENV WASMTIME_CPU_ARCH=x86_64 | ||
|
||
RUN dnf -y --nodocs --setopt=install_weak_deps=False install /usr/bin/{blurb,clang,curl,git,ln,tar,xz} 'dnf-command(builddep)' && \ | ||
dnf -y --nodocs --setopt=install_weak_deps=False builddep python3 && \ | ||
dnf -y clean all | ||
|
||
RUN mkdir ${WASI_SDK_PATH} && \ | ||
curl --location https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VERSION}/wasi-sdk-${WASI_SDK_VERSION}.0-linux.tar.gz | \ | ||
tar --strip-components 1 --directory ${WASI_SDK_PATH} --extract --gunzip | ||
|
||
RUN mkdir --parents ${WASMTIME_HOME} && \ | ||
curl --location "https://github.com/bytecodealliance/wasmtime/releases/download/v${WASMTIME_VERSION}/wasmtime-v${WASMTIME_VERSION}-${WASMTIME_CPU_ARCH}-linux.tar.xz" | \ | ||
xz --decompress | \ | ||
tar --strip-components 1 --directory ${WASMTIME_HOME} -x && \ | ||
ln -s ${WASMTIME_HOME}/wasmtime /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"onCreateCommand": [ | ||
// Install common tooling. | ||
"dnf", | ||
"install", | ||
"-y", | ||
"which", | ||
"zsh", | ||
"fish" | ||
], | ||
"updateContentCommand": { | ||
// Using the shell for `nproc` usage. | ||
"python": "./configure --config-cache --with-pydebug && make -s -j `nproc`", | ||
"docs": [ | ||
"make", | ||
"--directory", | ||
"Doc", | ||
"venv", | ||
"html" | ||
] | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
// Highlighting for Parser/Python.asdl. | ||
"brettcannon.zephyr-asdl", | ||
// Highlighting for configure.ac. | ||
"maelvalais.autoconf", | ||
// C auto-complete. | ||
"ms-vscode.cpptools", | ||
// To view built docs. | ||
"ms-vscode.live-server" | ||
// https://github.com/microsoft/vscode-python/issues/18073 | ||
// "ms-python.python" | ||
], | ||
"settings": { | ||
"C_Cpp.default.compilerPath": "/usr/bin/clang", | ||
"C_Cpp.default.cStandard": "c11", | ||
"C_Cpp.default.defines": [ | ||
"CONFIG_64", | ||
"Py_BUILD_CORE" | ||
], | ||
"C_Cpp.default.includePath": [ | ||
"${workspaceFolder}/*", | ||
"${workspaceFolder}/Include/**" | ||
], | ||
// https://github.com/microsoft/vscode-cpptools/issues/10732 | ||
"C_Cpp.errorSquiggles": "disabled", | ||
"editor.insertSpaces": true, | ||
"editor.rulers": [ | ||
80 | ||
], | ||
"editor.tabSize": 4, | ||
"editor.trimAutoWhitespace": true, | ||
"files.associations": { | ||
"*.h": "c" | ||
}, | ||
"files.encoding": "utf8", | ||
"files.eol": "\n", | ||
"files.insertFinalNewline": true, | ||
"files.trimTrailingWhitespace": true, | ||
"python.analysis.diagnosticSeverityOverrides": { | ||
// Complains about shadowing the stdlib w/ the stdlib. | ||
"reportShadowedImports": "none", | ||
// Doesn't like _frozen_importlib. | ||
"reportMissingImports": "none" | ||
}, | ||
"python.analysis.extraPaths": [ | ||
"Lib" | ||
], | ||
"python.defaultInterpreterPath": "./python", | ||
"[restructuredtext]": { | ||
"editor.tabSize": 3 | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ jobs: | |
build_doc: | ||
name: 'Docs' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Register Sphinx problem matcher | ||
|
@@ -55,11 +56,13 @@ jobs: | |
|
||
# Add pull request annotations for Sphinx nitpicks (missing references) | ||
- name: 'Get list of changed files' | ||
if: github.event_name == 'pull_request' | ||
id: changed_files | ||
uses: Ana06/[email protected] | ||
with: | ||
filter: "Doc/**" | ||
- name: 'Build changed files in nit-picky mode' | ||
if: github.event_name == 'pull_request' | ||
continue-on-error: true | ||
run: | | ||
# Mark files the pull request modified | ||
|
@@ -72,15 +75,35 @@ jobs: | |
- name: 'Build known-good files in nit-picky mode' | ||
run: | | ||
# Mark files that must pass nit-picky | ||
touch Doc/whatsnew/3.12.rst | ||
touch Doc/library/sqlite3.rst | ||
python Doc/tools/touch-clean-files.py | ||
# Build docs with the '-n' (nit-picky) option, convert warnings to errors (-W) | ||
make -C Doc/ PYTHON=../python SPHINXOPTS="-q -n -W --keep-going" html 2>&1 | ||
# This build doesn't use problem matchers or check annotations | ||
# It also does not run 'make check', as sphinx-lint is not installed into the | ||
# environment. | ||
build_doc_oldest_supported_sphinx: | ||
name: 'Docs (Oldest Sphinx)' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: 'Set up Python' | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' # known to work with Sphinx 3.2 | ||
cache: 'pip' | ||
cache-dependency-path: 'Doc/requirements-oldest-sphinx.txt' | ||
- name: 'Install build dependencies' | ||
run: make -C Doc/ venv REQUIREMENTS="requirements-oldest-sphinx.txt" | ||
- name: 'Build HTML documentation' | ||
run: make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html | ||
|
||
# Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release | ||
doctest: | ||
name: 'Doctest' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Register Sphinx problem matcher | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,16 +13,15 @@ jobs: | |
add-to-project: | ||
name: Add issues to projects | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
include: | ||
# if an issue has any of these labels, it will be added | ||
# to the corresponding project | ||
- { project: 2, label: "release-blocker, deferred-blocker" } | ||
- { project: 3, label: expert-subinterpreters } | ||
- { project: 29, label: expert-asyncio } | ||
- { project: 32, label: sprint } | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Check labels | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, labeled, unlabeled, synchronize] | ||
|
||
jobs: | ||
label: | ||
name: DO-NOT-MERGE / unresolved review | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: mheap/github-action-required-labels@v4 | ||
with: | ||
mode: exactly | ||
count: 0 | ||
labels: "DO-NOT-MERGE, awaiting changes, awaiting change review" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.