Skip to content

Commit ba16891

Browse files
authored
Merge branch 'master' into indent
2 parents a098b5d + 451d1ed commit ba16891

File tree

1,595 files changed

+135698
-72984
lines changed

Some content is hidden

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

1,595 files changed

+135698
-72984
lines changed

.gitattributes

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ Lib/test/decimaltestdata/*.decTest -text
2626
Lib/test/test_email/data/*.txt -text
2727
Lib/test/xmltestdata/* -text
2828
Lib/test/coding20731.py -text
29-
30-
# Special files in third party code
31-
Modules/zlib/zlib.map -text
29+
Lib/test/test_importlib/data01/* -text
3230

3331
# CRLF files
3432
*.bat text eol=crlf

.github/CODEOWNERS

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# See https://help.github.com/articles/about-codeowners/
2+
# for more info about CODEOWNERS file
3+
4+
# It uses the same pattern rule for gitignore file
5+
# https://git-scm.com/docs/gitignore#_pattern_format
6+
7+
# asyncio
8+
**/*asyncio* @1st1 @asvetlov
9+
10+
# Core
11+
**/*context* @1st1
12+
**/*genobject* @1st1
13+
**/*hamt* @1st1
14+
15+
# Hashing
16+
**/*hashlib* @python/crypto-team
17+
**/*pyhash* @python/crypto-team
18+
19+
# Import (including importlib).
20+
# Ignoring importlib.h so as to not get flagged on
21+
# all pull requests that change the the emitted
22+
# bytecode.
23+
**/*import*.c @python/import-team
24+
**/*import*.py @python/import-team
25+
26+
27+
# SSL
28+
**/*ssl* @python/crypto-team
29+
30+
# CSPRNG
31+
Python/bootstrap_hash.c @python/crypto-team
32+
33+
# Email and related
34+
**/*mail* @python/email-team
35+
**/*smtp* @python/email-team
36+
**/*mime* @python/email-team
37+
**/*imap* @python/email-team
38+
**/*poplib* @python/email-team
39+
40+
# subprocess
41+
**/*subprocess* @gpshead
42+
43+
# Windows
44+
/PC/ @python/windows-team
45+
/PCbuild/ @python/windows-team
46+
47+
# Windows installer packages
48+
/Tools/msi/ @python/windows-team
49+
/Tools/nuget/ @python/windows-team
50+
51+
**/*itertools* @rhettinger
52+
**/*collections* @rhettinger
53+
**/*random* @rhettinger
54+
**/*queue* @rhettinger
55+
**/*bisect* @rhettinger
56+
**/*heapq* @rhettinger
57+
**/*functools* @ncoghlan @rhettinger
58+
**/*decimal* @rhettinger @skrah
59+
60+
**/*dataclasses* @ericvsmith
61+
62+
**/*idlelib* @terryjreedy
63+
64+
**/*typing* @gvanrossum @ilevkivskyi

.github/CODE_OF_CONDUCT.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Code of Conduct
2+
===============
3+
4+
Please note that all interactions on
5+
`Python Software Foundation <https://www.python.org/psf-landing/>`__-supported
6+
infrastructure is `covered
7+
<https://www.python.org/psf/records/board/minutes/2014-01-06/#management-of-the-psfs-web-properties>`__
8+
by the `PSF Code of Conduct <https://www.python.org/psf/codeofconduct/>`__,
9+
which includes all infrastructure used in the development of Python itself
10+
(e.g. mailing lists, issue trackers, GitHub, etc.).
11+
12+
In general this means everyone is expected to be open, considerate, and
13+
respectful of others no matter what their position is within the project.
14+

.github/CONTRIBUTING.rst

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,47 @@ Build Status
1212

1313
+ `Stable buildbots <http://buildbot.python.org/3.6.stable/>`_
1414

15-
- 3.5
16-
17-
+ `Stable buildbots <http://buildbot.python.org/3.5.stable/>`_
18-
1915
- 2.7
2016

2117
+ `Stable buildbots <http://buildbot.python.org/2.7.stable/>`_
2218

2319

20+
Thank You
21+
---------
22+
First off, thanks for contributing to the maintenance of the Python programming
23+
language and the CPython interpreter! Even if your contribution is not
24+
ultimately accepted, the fact you put time and effort into helping out is
25+
greatly appreciated.
26+
27+
2428
Contribution Guidelines
2529
-----------------------
26-
Please read the `devguide <https://cpython-devguide.readthedocs.io/>`_ for
30+
Please read the `devguide <https://devguide.python.org/>`_ for
2731
guidance on how to contribute to this project. The documentation covers
2832
everything from how to build the code to submitting a pull request. There are
2933
also suggestions on how you can most effectively help the project.
3034

3135
Please be aware that our workflow does deviate slightly from the typical GitHub
3236
project. Details on how to properly submit a pull request are covered in
33-
`Lifecycle of a Pull Request <https://cpython-devguide.readthedocs.io/pullrequest.html>`_.
34-
One key point is to keep comments on GitHub to only those related to the reviewing
35-
the code in the pull request. All other discussions -- e.g. about the issue being
36-
fixed -- should happen on bugs.python.org.
37-
38-
If you are making a code contribution or large documentation contribution,
39-
please feel free to add yourself to the ``Misc/ACKS`` file alphabetically.
37+
`Lifecycle of a Pull Request <https://devguide.python.org/pullrequest/>`_.
38+
We utilize various bots and status checks to help with this, so do follow the
39+
comments they leave and their "Details" links, respectively. The key points of
40+
our workflow that are not covered by a bot or status check are:
41+
42+
- All discussions that are not directly related to the code in the pull request
43+
should happen on bugs.python.org
44+
- Upon your first non-trivial pull request (which includes documentation changes),
45+
feel free to add yourself to ``Misc/ACKS``
46+
47+
48+
Setting Expectations
49+
--------------------
50+
Due to the fact that this project is entirely volunteer-run (i.e. no one is paid
51+
to work on Python full-time), we unfortunately can make no guarantees as to if
52+
or when a core developer will get around to reviewing your pull request.
53+
If no core developer has done a review or responded to changes made because of a
54+
"changes requested" review, please feel free to email python-dev to ask if
55+
someone could take a look at your pull request.
4056

4157

4258
Code of Conduct

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
!!! If this is a backport PR (PR made against branches other than `master`),
2+
please ensure that the PR title is in the following format:
3+
```
4+
[X.Y] <title from the original PR> (GH-NNNN)
5+
```
6+
Where: [X.Y] is the branch name, e.g. [3.6].
7+
8+
GH-NNNN refers to the PR number from `master`.
9+
10+
PLEASE: Remove this headline!!!

.github/appveyor.yml

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,37 @@
1-
version: 3.7.0a0.{build}
1+
version: 3.8build{build}
22
clone_depth: 5
33
branches:
44
only:
55
- master
66
- /\d\.\d/
77
- buildbot-custom
8+
cache:
9+
- externals -> PCbuild
10+
before_build:
11+
- ps: |+
12+
if ($env:APPVEYOR_RE_BUILD) {
13+
echo 'Doing full build due to re-build request.'
14+
} elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
15+
echo 'Not a PR, doing full build.'
16+
} else {
17+
git fetch -q origin +refs/heads/$env:APPVEYOR_REPO_BRANCH
18+
$mergebase = git merge-base HEAD FETCH_HEAD
19+
$changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)'
20+
If (!$changes) {
21+
echo 'Only docs were updated, stopping build process.'
22+
Exit-AppveyorBuild
23+
}
24+
echo 'Doing full build due to non-doc changes in these files:'
25+
echo $changes
26+
}
27+
28+
829
build_script:
9-
- cmd: PCbuild\build.bat -e
30+
- cmd: PCbuild\build.bat -e
31+
- cmd: PCbuild\win32\python.exe -m test.pythoninfo
1032
test_script:
11-
- cmd: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 --fail-env-changed -j0
33+
- cmd: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 --fail-env-changed -j0
1234
environment:
1335
HOST_PYTHON: C:\Python36\python.exe
14-
15-
# Only trigger AppVeyor if actual code or its configuration changes
16-
only_commits:
17-
files:
18-
- .github/appveyor.yml
19-
- .gitattributes
20-
- Grammar/
21-
- Include/
22-
- Lib/
23-
- Modules/
24-
- Objects/
25-
- PC/
26-
- PCBuild/
27-
- Parser/
28-
- Programs/
29-
- Python/
30-
- Tools/
36+
image:
37+
- Visual Studio 2017

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# added for local development
2+
.buildaix/
3+
Modules/python.exp
4+
buildaix/
5+
installp/
6+
.gitignore
7+
18
# Two-trick pony for OSX and other case insensitive file systems:
29
# Ignore ./python binary on Unix but still look into ./Python/ directory.
310
/python
@@ -19,6 +26,9 @@
1926
.gdb_history
2027
Doc/build/
2128
Doc/venv/
29+
Doc/.venv/
30+
Doc/env/
31+
Doc/.env/
2232
Include/pydtrace_probes.h
2333
Lib/distutils/command/*.pdb
2434
Lib/lib2to3/*.pickle

.hgeol

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)