Skip to content

Commit 9d6c75b

Browse files
committed
Merge branch 'upstream_master' into pep551
2 parents f3c58c4 + f85af03 commit 9d6c75b

File tree

905 files changed

+26549
-13100
lines changed

Some content is hidden

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

905 files changed

+26549
-13100
lines changed

.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,20 @@ Lib/test/test_importlib/data01/* -text
3737
*.proj text eol=crlf
3838
PCbuild/readme.txt text eol=crlf
3939
PC/readme.txt text eol=crlf
40+
41+
# Generated files
42+
# https://github.com/github/linguist#generated-code
43+
Include/graminit.h linguist-generated=true
44+
Python/graminit.h linguist-generated=true
45+
Modules/clinic/*.h linguist-generated=true
46+
Objects/clinic/*.h linguist-generated=true
47+
PC/clinic/*.h linguist-generated=true
48+
Python/clinic/*.h linguist-generated=true
49+
Python/importlib.h linguist-generated=true
50+
Python/importlib_external.h linguist-generated=true
51+
Include/Python-ast.h linguist-generated=true
52+
Python/Python-ast.c linguist-generated=true
53+
Include/opcode.h linguist-generated=true
54+
Python/opcode_targets.h linguist-generated=true
55+
Objects/typeslots.inc linguist-generated=true
56+
Modules/unicodedata_db.h linguist-generated=true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
1-
!!! If this is a backport PR (PR made against branches other than `master`),
1+
<!--
2+
Thanks for your contribution!
3+
Please read this comment in its entirety. It's quite important.
4+
5+
# Pull Request title
6+
7+
It should be in the following format:
8+
9+
```
10+
bpo-NNNN: Summary of the changes made
11+
```
12+
13+
Where: bpo-NNNN refers to the issue number in the https://bugs.python.org.
14+
15+
Most PRs will require an issue number. Trivial changes, like fixing a typo, do not need an issue.
16+
17+
# Backport Pull Request title
18+
19+
If this is a backport PR (PR made against branches other than `master`),
220
please ensure that the PR title is in the following format:
321
422
```
523
[X.Y] <title from the original PR> (GH-NNNN)
624
```
725
8-
Where: [X.Y] is the branch name, e.g. [3.7].
26+
Where: [X.Y] is the branch name, e.g. [3.6].
927
1028
GH-NNNN refers to the PR number from `master`.
1129
12-
PLEASE: Remove this headline!!!
30+
-->

.github/appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
version: 3.7build{build}
1+
version: 3.8build{build}
22
clone_depth: 5
33
branches:
44
only:
55
- master
66
- /\d\.\d/
77
- buildbot-custom
88
cache:
9-
- externals -> PCbuild\*
9+
- externals -> PCbuild
1010
before_build:
1111
- ps: |+
1212
if ($env:APPVEYOR_RE_BUILD) {

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,4 @@ Tools/ssl/win32
115115
.vs/
116116
.vscode/
117117
gmon.out
118+
.mypy_cache/

.travis.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,30 @@ matrix:
4949
- cd Doc
5050
# Sphinx is pinned so that new versions that introduce new warnings won't suddenly cause build failures.
5151
# (Updating the version is fine as long as no warnings are raised by doing so.)
52-
- python -m pip install sphinx~=1.6.1 blurb
52+
# The theme used by the docs is stored seperately, so we need to install that as well.
53+
- python -m pip install sphinx~=1.6.1 blurb python-docs-theme
5354
script:
5455
- make check suspicious html SPHINXOPTS="-q -W -j4"
56+
- os: osx
57+
language: c
58+
compiler: clang
59+
# Testing under macOS is optional until testing stability has been demonstrated.
60+
env: OPTIONAL=true
61+
before_install:
62+
# Python 3 is needed for Argument Clinic and multissl
63+
- HOMEBREW_NO_AUTO_UPDATE=1 brew install xz python3
64+
- export PATH=$(brew --prefix)/bin:$(brew --prefix)/sbin:$PATH
5565
- os: linux
5666
language: c
5767
compiler: gcc
5868
env: OPTIONAL=true
69+
addons:
70+
apt:
71+
packages:
72+
- lcov
5973
before_script:
6074
- ./configure
61-
- make -s -j4
75+
- make coverage -s -j4
6276
# Need a venv that can parse covered code.
6377
- ./python -m venv venv
6478
- ./venv/bin/python -m pip install -U coverage
@@ -69,16 +83,17 @@ matrix:
6983
after_script: # Probably should be after_success once test suite updated to run under coverage.py.
7084
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
7185
- source ./venv/bin/activate
86+
- make coverage-lcov
7287
- bash <(curl -s https://codecov.io/bash)
7388

7489

7590
before_install:
7691
- set -e
7792
- |
7893
# Check short-circuit conditions
79-
if [ "${TESTING}" != "docs" ]
94+
if [[ "${TESTING}" != "docs" ]]
8095
then
81-
if [ "$TRAVIS_PULL_REQUEST" = "false" ]
96+
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]
8297
then
8398
echo "Not a PR, doing full build."
8499
else
@@ -101,7 +116,7 @@ before_install:
101116
install:
102117
- |
103118
# Install OpenSSL as necessary
104-
if [ "${TESTING}" != "docs" ]
119+
if [[ "${TESTING}" != "docs" ]]
105120
then
106121
# clang complains about unused-parameter a lot, redirect stderr
107122
python3 Tools/ssl/multissltests.py --steps=library \
@@ -139,6 +154,11 @@ script:
139154

140155
notifications:
141156
email: false
157+
webhooks:
158+
urls:
159+
- https://python.zulipchat.com/api/v1/external/travis?api_key=QTP4LAknlFml0NuPQmAetvH4KQaokiQE&stream=core%2Ftest+runs
160+
on_success: change
161+
on_failure: always
142162
irc:
143163
channels:
144164
# This is set to a secure variable to prevent forks from notifying the

.vsts/linux-buildbot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ steps:
5454
liblzma-dev
5555
libffi-dev
5656
uuid-dev
57+
xvfb
5758
displayName: 'Install dependencies'
5859
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
5960
displayName: 'python multissltests.py'
@@ -67,5 +68,5 @@ steps:
6768
- script: make pythoninfo
6869
displayName: 'Display build info'
6970

70-
- script: make buildbottest TESTOPTS="-j4 -uall,-cpu"
71+
- script: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
7172
displayName: 'Tests'

.vsts/linux-coverage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ steps:
5353
liblzma-dev
5454
libffi-dev
5555
uuid-dev
56+
xvfb
5657
displayName: 'Install dependencies'
5758
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
5859
displayName: 'python multissltests.py'
@@ -70,7 +71,7 @@ steps:
7071
- script: ./venv/bin/python -m test.pythoninfo
7172
displayName: 'Display build info'
7273

73-
- script: ./venv/bin/python -m coverage run --pylib -m test --fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn -x test_concurrent_futures
74+
- script: xvfb-run ./venv/bin/python -m coverage run --pylib -m test --fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn -x test_concurrent_futures
7475
displayName: 'Tests with coverage'
7576

7677
- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash)

.vsts/linux-deps.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ steps:
3131
liblzma-dev
3232
libffi-dev
3333
uuid-dev
34+
xvfb
3435
displayName: 'Install dependencies'
3536
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
3637
displayName: 'python multissltests.py'

.vsts/linux-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ steps:
5353
liblzma-dev
5454
libffi-dev
5555
uuid-dev
56+
xvfb
5657
displayName: 'Install dependencies'
5758
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
5859
displayName: 'python multissltests.py'
@@ -71,5 +72,5 @@ steps:
7172
- script: ./python Tools/scripts/patchcheck.py --travis true
7273
displayName: 'Run patchcheck.py'
7374

74-
- script: make buildbottest TESTOPTS="-j4 -uall,-cpu"
75+
- script: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
7576
displayName: 'Tests'

Doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ clean:
123123

124124
venv:
125125
$(PYTHON) -m venv $(VENVDIR)
126-
$(VENVDIR)/bin/python3 -m pip install -U Sphinx blurb
126+
$(VENVDIR)/bin/python3 -m pip install -U Sphinx blurb python-docs-theme
127127
@echo "The venv has been created in the $(VENVDIR) directory"
128128

129129
dist:

0 commit comments

Comments
 (0)