forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
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' of github.com:python/cpython into pythongh-102251
- Loading branch information
Showing
628 changed files
with
34,715 additions
and
34,642 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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,21 +87,9 @@ jobs: | |
with: | ||
filter: | | ||
Doc/** | ||
# Temporarily skip paths with spaces | ||
# (i.e. "C API", "Core and Builtins") | ||
# to avoid "Error: One of your files includes a space". | ||
# Pending https://github.com/python/core-workflow/issues/186 | ||
# Misc/** | ||
Misc/NEWS.d/next/Build/** | ||
Misc/NEWS.d/next/Documentation/** | ||
Misc/NEWS.d/next/IDLE/** | ||
Misc/NEWS.d/next/Library/** | ||
Misc/NEWS.d/next/Security/** | ||
Misc/NEWS.d/next/Tests/** | ||
Misc/NEWS.d/next/Tools-Demos/** | ||
Misc/NEWS.d/next/Windows/** | ||
Misc/NEWS.d/next/macOS/** | ||
Misc/** | ||
.github/workflows/reusable-docs.yml | ||
format: csv # works for paths with spaces | ||
- name: Check for docs changes | ||
if: >- | ||
github.event_name == 'pull_request' | ||
|
@@ -136,10 +124,10 @@ jobs: | |
run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV | ||
- name: Configure ccache action | ||
uses: hendrikmuhs/[email protected] | ||
- name: Check Autoconf version 2.69 and aclocal 1.16.3 | ||
- name: Check Autoconf and aclocal versions | ||
run: | | ||
grep "Generated by GNU Autoconf 2.69" configure | ||
grep "aclocal 1.16.3" aclocal.m4 | ||
grep "Generated by GNU Autoconf 2.71" configure | ||
grep "aclocal 1.16.4" aclocal.m4 | ||
grep -q "runstatedir" configure | ||
grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4 | ||
- name: Configure CPython | ||
|
@@ -232,17 +220,16 @@ jobs: | |
path: config.cache | ||
key: ${{ github.job }}-${{ runner.os }}-${{ needs.check_source.outputs.config_hash }} | ||
- name: Install Homebrew dependencies | ||
run: brew install pkg-config openssl@1.1 xz gdbm tcl-tk | ||
run: brew install pkg-config openssl@3.0 xz gdbm tcl-tk | ||
- name: Configure CPython | ||
run: | | ||
CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \ | ||
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \ | ||
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \ | ||
GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \ | ||
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \ | ||
./configure \ | ||
--config-cache \ | ||
--with-pydebug \ | ||
--prefix=/opt/python-dev \ | ||
--with-openssl="$(brew --prefix openssl@1.1)" | ||
--with-openssl="$(brew --prefix openssl@3.0)" | ||
- name: Build CPython | ||
run: make -j4 | ||
- name: Display build info | ||
|
@@ -257,7 +244,7 @@ jobs: | |
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' | ||
env: | ||
OPENSSL_VER: 1.1.1t | ||
OPENSSL_VER: 1.1.1u | ||
PYTHONSTRICTEXTENSIONBUILD: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -326,7 +313,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
openssl_ver: [1.1.1t, 3.0.8, 3.1.0-beta1] | ||
openssl_ver: [1.1.1u, 3.0.9, 3.1.1] | ||
env: | ||
OPENSSL_VER: ${{ matrix.openssl_ver }} | ||
MULTISSL_DIR: ${{ github.workspace }}/multissl | ||
|
@@ -378,7 +365,7 @@ jobs: | |
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' && needs.check_source.outputs.run_hypothesis == 'true' | ||
env: | ||
OPENSSL_VER: 1.1.1t | ||
OPENSSL_VER: 1.1.1u | ||
PYTHONSTRICTEXTENSIONBUILD: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -487,7 +474,7 @@ jobs: | |
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' | ||
env: | ||
OPENSSL_VER: 1.1.1t | ||
OPENSSL_VER: 1.1.1u | ||
PYTHONSTRICTEXTENSIONBUILD: 1 | ||
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0 | ||
steps: | ||
|
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 |
---|---|---|
|
@@ -28,8 +28,6 @@ jobs: | |
cache-dependency-path: 'Doc/requirements.txt' | ||
- name: 'Install build dependencies' | ||
run: make -C Doc/ venv | ||
- name: 'Check documentation' | ||
run: make -C Doc/ check | ||
- name: 'Build HTML documentation' | ||
run: make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html | ||
|
||
|
@@ -40,12 +38,14 @@ jobs: | |
uses: Ana06/[email protected] | ||
with: | ||
filter: "Doc/**" | ||
format: csv # works for paths with spaces | ||
- name: 'Build changed files in nit-picky mode' | ||
if: github.event_name == 'pull_request' | ||
continue-on-error: true | ||
run: | | ||
set -Eeuo pipefail | ||
# Mark files the pull request modified | ||
touch ${{ steps.changed_files.outputs.added_modified }} | ||
python Doc/tools/touch-clean-files.py --clean '${{ steps.changed_files.outputs.added_modified }}' | ||
# Build docs with the '-n' (nit-picky) option; convert warnings to annotations | ||
make -C Doc/ PYTHON=../python SPHINXOPTS="-q -n --keep-going" html 2>&1 | | ||
python Doc/tools/warnings-to-gh-actions.py | ||
|
@@ -59,8 +59,6 @@ jobs: | |
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 | ||
|
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
Oops, something went wrong.