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' into pythongh-91896
- Loading branch information
Showing
673 changed files
with
29,133 additions
and
14,709 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 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 |
---|---|---|
|
@@ -111,6 +111,9 @@ jobs: | |
run: make smelly | ||
- name: Check limited ABI symbols | ||
run: make check-limited-abi | ||
- name: Check for unsupported C global variables | ||
if: github.event_name == 'pull_request' # $GITHUB_EVENT_NAME | ||
run: make check-c-globals | ||
|
||
build_win32: | ||
name: 'Windows (x86)' | ||
|
@@ -154,15 +157,23 @@ jobs: | |
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' | ||
env: | ||
HOMEBREW_NO_ANALYTICS: 1 | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
HOMEBREW_NO_INSTALL_CLEANUP: 1 | ||
PYTHONSTRICTEXTENSIONBUILD: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Prepare homebrew environment variables | ||
run: | | ||
echo "LDFLAGS=-L$(brew --prefix tcl-tk)/lib" >> $GITHUB_ENV | ||
echo "PKG_CONFIG_PATH=$(brew --prefix [email protected])/lib/pkgconfig:$(brew --prefix tcl-tk)/lib/pkgconfig" >> $GITHUB_ENV | ||
- name: Install Homebrew dependencies | ||
run: brew install pkg-config [email protected] xz gdbm tcl-tk | ||
- name: Configure CPython | ||
run: ./configure --with-pydebug --prefix=/opt/python-dev | ||
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" \ | ||
./configure \ | ||
--with-pydebug \ | ||
--prefix=/opt/python-dev \ | ||
--with-openssl="$(brew --prefix [email protected])" | ||
- name: Build CPython | ||
run: make -j4 | ||
- name: Display build info | ||
|
@@ -176,7 +187,7 @@ jobs: | |
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' | ||
env: | ||
OPENSSL_VER: 1.1.1s | ||
OPENSSL_VER: 1.1.1t | ||
PYTHONSTRICTEXTENSIONBUILD: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -235,7 +246,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
openssl_ver: [1.1.1s, 3.0.7, 3.1.0-beta1] | ||
openssl_ver: [1.1.1t, 3.0.8, 3.1.0-beta1] | ||
env: | ||
OPENSSL_VER: ${{ matrix.openssl_ver }} | ||
MULTISSL_DIR: ${{ github.workspace }}/multissl | ||
|
@@ -282,7 +293,7 @@ jobs: | |
needs: check_source | ||
if: needs.check_source.outputs.run_tests == 'true' | ||
env: | ||
OPENSSL_VER: 1.1.1s | ||
OPENSSL_VER: 1.1.1t | ||
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 |
---|---|---|
|
@@ -53,6 +53,30 @@ jobs: | |
- name: 'Build HTML documentation' | ||
run: make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html | ||
|
||
# Add pull request annotations for Sphinx nitpicks (missing references) | ||
- name: 'Get list of changed files' | ||
id: changed_files | ||
uses: Ana06/[email protected] | ||
with: | ||
filter: "Doc/**" | ||
- name: 'Build changed files in nit-picky mode' | ||
continue-on-error: true | ||
run: | | ||
# Mark files the pull request modified | ||
touch ${{ 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 | ||
# Ensure some files always pass Sphinx nit-picky mode (no missing references) | ||
- 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 | ||
# 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 | ||
# Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release | ||
doctest: | ||
name: 'Doctest' | ||
|
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 |
---|---|---|
|
@@ -19,13 +19,13 @@ jobs: | |
- name: Send notification | ||
uses: actions/github-script@v6 | ||
env: | ||
MAILGUN_API_KEY: ${{ secrets.PSF_MAILGUN_KEY }} | ||
MAILGUN_API_KEY: ${{ secrets.MAILGUN_PYTHON_ORG_MAILGUN_KEY }} | ||
with: | ||
script: | | ||
const Mailgun = require("mailgun.js"); | ||
const formData = require('form-data'); | ||
const mailgun = new Mailgun(formData); | ||
const DOMAIN = "mg.python.org"; | ||
const DOMAIN = "mailgun.python.org"; | ||
const mg = mailgun.client({username: 'api', key: process.env.MAILGUN_API_KEY}); | ||
github.rest.issues.get({ | ||
issue_number: context.issue.number, | ||
|
@@ -44,7 +44,7 @@ jobs: | |
}; | ||
const data = { | ||
from: "CPython Issues <github@mg.python.org>", | ||
from: "CPython Issues <github@mailgun.python.org>", | ||
to: "[email protected]", | ||
subject: `[Issue ${issue.data.number}] ${issue.data.title}`, | ||
template: "new-github-issue", | ||
|
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.