Skip to content
/ cpython Public
forked from python/cpython

Merge from cpython #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9,625 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
9625 commits
Select commit Hold shift + click to select a range
0c3455a
gh-111926: Set up basic sementics of weakref API for freethreading (g…
corona10 Jan 3, 2024
7d01fb4
gh-113603: Compiler no longer tries to maintain the no-empty-block in…
iritkatriel Jan 3, 2024
178919c
gh-113258: Write frozen modules to the build tree on Windows (GH-113303)
itamaro Jan 3, 2024
f1f8392
Document the `co_lines` method on code objects (#113682)
AlexWaygood Jan 3, 2024
4c4b08d
gh-52161: Enhance Cmd support for docstrings (#110987)
fipachu Jan 3, 2024
35ef8cb
GH-113689: Fix broken handling of invalid executors (GH-113694)
brandtbucher Jan 4, 2024
1ae7ceb
gh-113696: Docs: Annotate PyObject_CallOneArg and PyObject_CallNoArgs…
ordinary-jamie Jan 4, 2024
1600d78
gh-113569: Display calls in Mock.assert_has_calls failure when empty …
wookie184 Jan 4, 2024
4681a52
gh-113538: Don't error in stream reader protocol callback when task i…
gvanrossum Jan 4, 2024
c2e8298
GH-113225: Speed up `pathlib.Path.glob()` (#113226)
barneygale Jan 4, 2024
fcb3c2a
gh-112532: Isolate abandoned segments by interpreter (#113717)
colesbury Jan 4, 2024
ed6ea3e
gh-113320: Reduce the number of dangerous `getattr()` calls when cons…
AlexWaygood Jan 5, 2024
0ae60b6
GH-113486: Do not emit spurious PY_UNWIND events for optimized calls …
markshannon Jan 5, 2024
3003fbb
gh-113703: Correctly identify incomplete f-strings in the codeop modu…
pablogsal Jan 5, 2024
e56c533
gh-101100: Fix Sphinx warnings for 2.6 deprecations and removals (#11…
hugovk Jan 5, 2024
5e1916b
gh-80532: Do not set ipv6type when cross-compiling (#17956)
ZackerySpytz Jan 5, 2024
eb53750
gh-101100: Fix Sphinx warnings in `library/pyclbr.rst` (#113739)
hugovk Jan 5, 2024
0b74760
gh-112532: Tag mimalloc heaps and pages (#113742)
colesbury Jan 5, 2024
99854ce
gh-113688: Split up gcmodule.c (gh-113715)
colesbury Jan 5, 2024
3c4e972
GH-113568: Stop raising auditing events from pathlib ABCs (#113571)
barneygale Jan 5, 2024
bd754b9
gh-85567: Fix resouce warnings in pickle and pickletools CLIs (GH-113…
serhiy-storchaka Jan 5, 2024
d99d871
gh-113360: Fix the documentation of module's attribute __test__ (GH-1…
serhiy-storchaka Jan 5, 2024
3375dfe
GH-113568: Stop raising deprecation warnings from pathlib ABCs (#113757)
barneygale Jan 5, 2024
d0f0308
gh-113750: Fix object resurrection in free-threaded builds (gh-113751)
colesbury Jan 6, 2024
66f3964
gh-113729: Fix IDLE's Help -> "IDLE Help" menu bug in 3.12.1 and 3.11…
ronaldoussoren Jan 6, 2024
bbf214d
gh-113537: support loads str in plistlib.loads (#113582)
aisk Jan 6, 2024
bb4c167
gh-111488: Changed error message in case of no 'in' keyword after 'fo…
grigoriev-semyon Jan 6, 2024
d36a365
gh-107901: synthetic jumps which are not at end of loop no longer che…
iritkatriel Jan 6, 2024
d429a5a
GH-113528: pathlib ABC tests: add repr to dummy path classes. (#113777)
barneygale Jan 6, 2024
f152635
GH-113528: Split up pathlib tests for invalid basenames. (#113776)
barneygale Jan 6, 2024
2205510
GH-113528: Slightly improve `pathlib.Path.glob()` tests for symlink l…
barneygale Jan 6, 2024
1e914ad
GH-113528: Deoptimise `pathlib._abc.PurePathBase.name` (#113531)
barneygale Jan 6, 2024
37bd893
GH-113528: Deoptimise `pathlib._abc.PurePathBase.parent` (#113530)
barneygale Jan 6, 2024
a15a773
GH-113528: Deoptimise `pathlib._abc.PurePathBase.relative_to()` (#113…
barneygale Jan 6, 2024
84d1f76
gh-89532: Remove LibreSSL workarounds (#28728)
ramikg Jan 6, 2024
541c5db
gh-112795: Allow `/` folder in a zipfile (#112932)
aisk Jan 7, 2024
f19b93f
gh-73965: New environment variable PYTHON_HISTORY (#13208)
ZackerySpytz Jan 7, 2024
e5d0316
gh-73965: Move PYTHON_HISTORY into the correct usage section (#113798)
hugovk Jan 8, 2024
73c9326
gh-80109: Fix io.TextIOWrapper dropping the internal buffer during wr…
ZackerySpytz Jan 8, 2024
802d495
gh-74678: Increase base64 test coverage (GH-21913)
ZackerySpytz Jan 8, 2024
a03ec20
gh-110721: Remove unused code from suggestions.c after moving PyErr_D…
pablogsal Jan 8, 2024
61dd77b
gh-113391: fix outdated PyObject_HasAttr docs (#113420)
skirpichev Jan 8, 2024
ace4d7f
gh-113787: Fix refleaks in test_capi (gh-113816)
neonene Jan 8, 2024
35fa13d
gh-113755: Fully adapt gcmodule.c to Argument Clinic (#113756)
erlend-aasland Jan 8, 2024
aef375f
Minor algebraic simplification for the totient() recipe (gh-113822)
rhettinger Jan 8, 2024
a9df076
GH-113528: Move a few misplaced pathlib tests (#113527)
barneygale Jan 8, 2024
bc71ae2
gh-113688: fix dtrace build on Solaris (#113814)
kulikjak Jan 8, 2024
b3dba18
GH-113528: Speed up pathlib ABC tests. (#113788)
barneygale Jan 8, 2024
c6ca562
gh-113791: Expose CLOCK_MONOTONIC_RAW_APPROX and CLOCK_UPTIME_RAW_APR…
ronaldoussoren Jan 8, 2024
5216178
GH-111693: Propagate correct asyncio.CancelledError instance out of a…
kristjanvalur Jan 8, 2024
92f9624
gh-113827: Move Windows frozen modules directory to allow PGO builds …
zooba Jan 8, 2024
931d7e0
gh-113027: Fix test_variable_tzname in test_email (#113821)
serhiy-storchaka Jan 8, 2024
0b23402
readme: fix displaying issue of command (#113719)
mara004 Jan 8, 2024
ae968d1
gh-112806: Remove unused function warnings during mimalloc build on S…
kulikjak Jan 8, 2024
10d3f04
gh-112808: Fix mimalloc build on Solaris (#112809)
kulikjak Jan 8, 2024
a023bc2
gh-112087: Update list.{pop,clear,reverse,remove} to use CS (gh-113764)
corona10 Jan 9, 2024
f3d5d4a
Docs: Link tokens in the format string grammars (#108184)
wjandrea Jan 9, 2024
842b738
gh-113692: skip a test if multiprocessing isn't available. (GH-113704)
vsajip Jan 9, 2024
2e17cad
gh-101100: Fix Sphinx warnings for 2.6 port-specific deprecations (#1…
hugovk Jan 9, 2024
fda901a
gh-113842: Add missing error check for PyIter_Next() in Python/symtab…
WolframAlph Jan 9, 2024
c31be58
gh-87868: Sort and remove duplicates in getenvironment() (GH-102731)
aisk Jan 9, 2024
be89ee5
gh-103092: Test _ctypes type hierarchy and features (#113727)
aisk Jan 9, 2024
ad849b4
gh-113650: Add workaround option for MSVC ARM64 bug affecting string …
zooba Jan 9, 2024
65f8eb7
Fix opcode name printing in debug mode (#113870)
gvanrossum Jan 9, 2024
2fd2e74
Simplify binomial approximation example with random.binomialvariate()…
rhettinger Jan 9, 2024
9100fc4
GH-113528: Deoptimise `pathlib._abc.PathBase._make_child_relpath()` (…
barneygale Jan 9, 2024
5273655
gh-113848: Use PyErr_GivenExceptionMatches() for check for CancelledE…
serhiy-storchaka Jan 9, 2024
a5db6a3
gh-113848: Handle CancelledError subclasses in asyncio TaskGroup() an…
serhiy-storchaka Jan 9, 2024
0297418
gh-113781: Silence AttributeError in warning module during Python fin…
serhiy-storchaka Jan 9, 2024
3a9096c
GH-113661: unittest runner: Don't exit 5 if tests were skipped (#113856)
stefanor Jan 9, 2024
1092cfb
GH-113528: Deoptimise `pathlib._abc.PathBase.resolve()` (#113782)
barneygale Jan 9, 2024
623b338
gh-66060: Use actual class name in _io type's __repr__ (#30824)
aisk Jan 9, 2024
5c7bd0e
GH-113528: Deoptimise `pathlib._abc.PurePathBase.parts` (#113883)
barneygale Jan 9, 2024
cdca0ce
GH-113528: Deoptimise `pathlib._abc.PurePathBase.relative_to()` (agai…
barneygale Jan 9, 2024
57bdc6c
gh-111968: Introduce _PyFreeListState and _PyFreeListState_GET API (g…
corona10 Jan 9, 2024
beb80d1
GH-113528: Deoptimise `pathlib._abc.PurePathBase` (#113559)
barneygale Jan 9, 2024
5d8a3e7
pathlib ABCs: Require one or more initialiser arguments (#113885)
barneygale Jan 10, 2024
4826d52
gh-112182: Replace StopIteration with RuntimeError for future (#113220)
ordinary-jamie Jan 10, 2024
5d384b0
GH-113858: GitHub Actions config: Only save ccache on pushes (GH-113859)
encukou Jan 10, 2024
1b7e002
gh-113877: Fix Tkinter method winfo_pathname() on 64-bit Windows (GH-…
serhiy-storchaka Jan 10, 2024
ab0ad62
gh-113879: Fix ResourceWarning in test_asyncio.test_server (GH-113881)
serhiy-storchaka Jan 10, 2024
aef4a12
gh-96037: Always insert TimeoutError when exit an expired asyncio.tim…
serhiy-storchaka Jan 10, 2024
568d220
gh-70835: Clarify error message for CSV file opened with wrong newlin…
serhiy-storchaka Jan 10, 2024
e9d5b6e
gh-113594: Fix UnicodeEncodeError in TokenList.fold() (GH-113730)
serhiy-storchaka Jan 10, 2024
a862981
gh-113664: Improve style of Big O notation (GH-113695)
serhiy-storchaka Jan 10, 2024
b3d2427
gh-58032: Do not use argparse.FileType in module CLIs and scripts (GH…
serhiy-storchaka Jan 10, 2024
89cee94
gh-89850: Add default C implementations of persistent_id() and persis…
serhiy-storchaka Jan 10, 2024
be5e65f
gh-66515: Fix locking of an MH mailbox without ".mh_sequences" file (…
serhiy-storchaka Jan 10, 2024
183b97b
gh-111789: Use PyDict_GetItemRef() in Modules/_zoneinfo.c (GH-112078)
serhiy-storchaka Jan 10, 2024
66363b9
gh-109858: Protect zipfile from "quoted-overlap" zipbomb (GH-110016)
serhiy-storchaka Jan 10, 2024
93930ea
gh-111139: Optimize math.gcd(int, int) (#113887)
vstinner Jan 10, 2024
a0c9cf9
GH-113860: All executors are now defined in terms of micro ops. Conve…
markshannon Jan 10, 2024
f728f72
gh-111968: Use per-thread freelists for float in free-threading (gh-1…
corona10 Jan 10, 2024
7049721
Add @requires_zlib() decorator for gh-109858 tests (GH-113918)
serhiy-storchaka Jan 10, 2024
901a971
gh-113625: Align object addresses in the Descriptor HowTo Guide (#113…
rhettinger Jan 10, 2024
73ae202
gh-113753: Clear finalized bit when putting PyAsyncGenASend back into…
colesbury Jan 10, 2024
e82b096
gh-112302: Point core developers to SBOM devguide on errors (#113490)
sethmlarson Jan 10, 2024
1d75fa4
gh-77046: os.pipe() sets _O_NOINHERIT flag on fds (#113817)
vstinner Jan 10, 2024
fafb327
gh-87868: Skip `test_one_environment_variable` in `test_subprocess` w…
aisk Jan 10, 2024
9d33c23
gh-113896: Fix test_builtin.BuiltinTest.test___ne__() (#113897)
Eclips4 Jan 10, 2024
c65ae26
gh-111968: Unify naming scheme for freelist (gh-113919)
corona10 Jan 10, 2024
f653caa
gh-89811: Check for valid tp_version_tag in specializer (GH-113558)
lazorchakp Jan 11, 2024
2ac4cf4
gh-112640: Add `kwdefaults` parameter to `types.FunctionType.__new__`…
sobolevn Jan 11, 2024
ec23e90
gh-112419: Document removal of sys.meta_path's 'find_module' fallback…
aisk Jan 11, 2024
9f08833
gh-113932: assert ``SyntaxWarning`` in test_compile.TestSpecifics.tes…
Eclips4 Jan 11, 2024
7ed76fc
gh-91960: Remove Cirrus CI configuration (#113938)
vstinner Jan 11, 2024
0d8fec7
gh-107901: jump leaving an exception handler doesn't need an eval bre…
iritkatriel Jan 11, 2024
55824d0
GH-113853: Guarantee forward progress in executors (GH-113854)
markshannon Jan 11, 2024
8717f7b
gh-113845: Fix a compiler warning in Python/suggestions.c (GH-113949)
serhiy-storchaka Jan 11, 2024
2e7577b
gh-111968: Use per-thread freelists for tuple in free-threading (gh-1…
corona10 Jan 11, 2024
2f126a7
Update KDE recipe to match the standard use of the h parameter (gh-#1…
rhettinger Jan 11, 2024
b4d4aa9
gh-81489: Use Unicode APIs for mmap tagname on Windows (GH-14133)
ZackerySpytz Jan 11, 2024
c9b8a22
GH-107678: Improve Unicode handling clarity in ``library/re.rst`` (#1…
AA-Turner Jan 11, 2024
53d2e1f
Improve kde graph with better caption and number formatting (gh-113967)
rhettinger Jan 12, 2024
efa738e
gh-111968: Explicit handling for finalized freelist (gh-113929)
corona10 Jan 12, 2024
c4992f4
gh-113903: Fix an IDLE configdialog test (#113973)
terryjreedy Jan 12, 2024
e58334e
gh-113937 Fix failures in type cache tests due to re-running (GH-113953)
lazorchakp Jan 12, 2024
fcb4c8d
gh-113858: Cut down ccache size (GH-113945)
encukou Jan 12, 2024
de777e4
gh-108364: In sqlite3, disable foreign keys before dumping SQL schema…
felixxm Jan 12, 2024
29e2839
gh-113027: Fix timezone check in test_variable_tzname in test_email (…
pablogsal Jan 12, 2024
30e6cbd
GH-113860: Get rid of `_PyUOpExecutorObject` (GH-113954)
brandtbucher Jan 12, 2024
e68806c
Docs: Amend codeobject.co_lines docs; end number is exclusive (#113970)
nedbat Jan 12, 2024
ed06648
gh-111877: Fixes stat() handling for inaccessible files on Windows (G…
zooba Jan 12, 2024
e02c15b
gh-113980: Fix resource warnings in test_asyncgen (GH-113984)
serhiy-storchaka Jan 12, 2024
8aa0088
gh-107901: duplicate blocks with no lineno that have an eval break an…
iritkatriel Jan 12, 2024
7997079
gh-113868: Add a number of MAP_* flags from macOS to module mmap (#11…
ronaldoussoren Jan 12, 2024
ac92527
gh-113710: Add types to the interpreter DSL (#113711)
Fidget-Spinner Jan 12, 2024
b44b9d9
gh-113971: Make `zipfile.ZipInfo._compresslevel` public as `.compress…
gpshead Jan 12, 2024
8aa1263
GH-111802: set a low recursion limit for `test_bad_getattr()` in `tes…
brettcannon Jan 12, 2024
dce30c9
gh-95649: Document that asyncio contains uvloop code (#107536)
aloisklink Jan 12, 2024
794983c
gh-101100: Fix Sphinx Lint warnings in `Misc/` (#113946)
hugovk Jan 12, 2024
9a71750
Fix a grammatical error in `pycore_pymem.h` (#112993)
JoeyPearson822 Jan 12, 2024
32f3684
Tutorial: Clarify 'nonzero exit status' in the appendix (#112039)
zipperer Jan 12, 2024
e97da86
Link to the glossary for "magic methods" in ``MagicMock`` (#111292)
pieqq Jan 12, 2024
a47353d
datamodel: Fix a typo in ``object.__init_subclass__`` (#111599)
InSyncWithFoo Jan 12, 2024
3c19ee0
GH-111801: set a lower recursion limit for `test_infintely_many_bases…
brettcannon Jan 12, 2024
3aa4b83
gh-89159: Document missing TarInfo members (#91564)
slateny Jan 12, 2024
dac1da2
GH-111798: skip `test_super_deep()` from `test_call` under pydebug bu…
brettcannon Jan 13, 2024
e4ff131
GH-44626, GH-105476: Fix `ntpath.isabs()` handling of part-absolute p…
barneygale Jan 13, 2024
f20b151
pathlib ABCs: add `_raw_path` property (#113976)
barneygale Jan 13, 2024
21f83ef
Add module docstring for `pathlib._abc`. (#113691)
barneygale Jan 13, 2024
c7d59bd
gh-101225: Increase the socket backlog when creating a multiprocessin…
ronaldoussoren Jan 13, 2024
dd56b57
gh-114014: Update `fractions.Fraction()`'s rational parsing regex (#1…
thatbirdguythatuknownot Jan 13, 2024
77b45fa
gh-111803: Support loading more deeply nested lists in binary plist f…
serhiy-storchaka Jan 13, 2024
5dbcdfd
gh-113317: Move global utility functions into libclinic (#113986)
erlend-aasland Jan 14, 2024
c280843
gh-101100: Fix Sphinx warnings in `howto/urllib2.rst` and `library/ht…
hugovk Jan 14, 2024
ca6cf56
Add `pathlib._abc.PathModuleBase` (#113893)
barneygale Jan 14, 2024
4de4e65
Replace `pathlib._abc.PathModuleBase.splitroot()` with `splitdrive()`…
barneygale Jan 14, 2024
1709020
gh-113317: Move FormatCounterFormatter into libclinic (#114066)
erlend-aasland Jan 14, 2024
f8a7910
gh-109862: Fix test_create_subprocess_with_pidfd when it was run sepa…
serhiy-storchaka Jan 15, 2024
892155d
gh-114075: Capture `test_compileall` stdout output (#114076)
Eclips4 Jan 15, 2024
2010d45
gh-113666: Adding missing UF_ and SF_ flags to module 'stat' (#113667)
ronaldoussoren Jan 15, 2024
ac10947
GH-112354: `_GUARD_IS_TRUE_POP` side-exits to target the next instruc…
markshannon Jan 15, 2024
0f2fa61
gh-109598: make PyComplex_RealAsDouble/ImagAsDouble use __complex__ (…
skirpichev Jan 15, 2024
44e47df
gh-112532: Fix memory block count for free-threaded build (gh-113995)
colesbury Jan 15, 2024
3eae765
gh-111968: Use per-thread slice_cache in free-threading (gh-113972)
corona10 Jan 15, 2024
d457345
gh-99437: runpy: decode path-like objects before setting globals
kamilturek Jan 15, 2024
4f24b92
gh-114070: correct the specification of ``digit`` in the float() docs…
skirpichev Jan 15, 2024
5094690
gh-91539: Small performance improvement of urrlib.request.getproxies_…
RaphaelMarinier Jan 15, 2024
42b90cf
gh-112087: Update list impl to be thread-safe with manual CS (gh-113863)
corona10 Jan 16, 2024
8fd287b
gh-78502: Add a trackfd parameter to mmap.mmap() (GH-25425)
ZackerySpytz Jan 16, 2024
6c502ba
gh-114101: Correct PyErr_Format arguments in _testcapi module (#114102)
aisk Jan 16, 2024
17b73ab
GH-113655: Lower the C recursion limit on various platforms (GH-113944)
markshannon Jan 16, 2024
04fabe2
gh-113358: Fix rendering tracebacks with exceptions with a broken __g…
perrinjerome Jan 16, 2024
c85c002
gh-113238: add Anchor to importlib.resources (#113801)
mikeziminio Jan 16, 2024
d4dfad2
gh-114077: Fix OverflowError in socket.sendfile() when pass count >2G…
serhiy-storchaka Jan 16, 2024
af85274
Docs: Align multiprocessing.shared_memory docs with Sphinx recommenda…
erlend-aasland Jan 16, 2024
ac44ec6
gh-113858: GH Actions: Limit max ccache size for the asan build (GH-1…
encukou Jan 16, 2024
c361a1f
gh-114107: Fix importlib.resources symlink test if symlinks aren't su…
encukou Jan 16, 2024
a482bc6
gh-102468: Document `PyCFunction_New*` and `PyCMethod_New` (GH-112557)
aisk Jan 16, 2024
d2d8332
gh-113626: Add allow_code parameter in marshal functions (GH-113648)
serhiy-storchaka Jan 16, 2024
867f59f
gh-111968: Use per-thread freelists for PyContext in free-threading (…
corona10 Jan 16, 2024
c77f552
gh-114107: test.pythoninfo logs Windows Developer Mode (#114121)
vstinner Jan 16, 2024
e454f93
Fix an incorrect comment in iobase_is_closed (GH-102952)
JonathonReinhart Jan 16, 2024
31a2543
gh-114069: Revise Tutorial Methods paragraph (#114127)
terryjreedy Jan 16, 2024
de4ced5
gh-114096: Restore privileges in _winapi.CreateJunction after creatin…
zooba Jan 16, 2024
b1db627
Docs: Improve multiprocessing.SharedMemory reference (#114093)
erlend-aasland Jan 16, 2024
7a24ecc
Fix 'expresion' typo in IDLE doc (#114130)
terryjreedy Jan 16, 2024
74208ed
gh-113659: Skip hidden .pth files (GH-113660)
serhiy-storchaka Jan 16, 2024
3d5df54
Clean up backslash avoiding code in ast, fix typo (#113605)
hauntsaninja Jan 16, 2024
03f7839
GH-114013: fix setting `HOSTRUNNER` for `Tools/wasm/wasi.py` (GH-114097)
brettcannon Jan 16, 2024
c86571e
Update copyright years to 2024. (GH-113608)
0xSalikh Jan 16, 2024
b331381
gh-112529: Track if debug allocator is used as underlying allocator (…
colesbury Jan 16, 2024
2e672f7
gh-113655: Increase default stack size for PGO builds to avoid C stac…
zooba Jan 16, 2024
7092b3f
GH-78988: Document `pathlib.Path.glob()` exception propagation. (#114…
barneygale Jan 16, 2024
6e84f3b
gh-94220: Align fnmatch docs with the implementation and amend markup…
erlend-aasland Jan 16, 2024
1d6989f
Fix typo in c_annotations.py comment (#108773)
visitorckw Jan 16, 2024
45e527d
GH-110109: pathlib docs: bring `from_uri()` and `as_uri()` together. …
barneygale Jan 16, 2024
60ca37f
gh-106293: Fix typos in Objects/object_layout.md (#106294)
manosriram Jan 16, 2024
05008c2
gh-88531 Fix dataclass __post_init__/__init__ interplay documentation…
Kaniee Jan 17, 2024
8d26db4
gh-112043: Align concurrent.futures.Executor.map docs with implementa…
erlend-aasland Jan 17, 2024
e07a400
gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (#114…
terryjreedy Jan 17, 2024
4a32275
gh-72284: Revise lists in IDLE doc (#114174)
terryjreedy Jan 17, 2024
b204c4b
gh-86179: Skip test case that fails on POSIX with unversioned binary …
zooba Jan 17, 2024
f009305
Python 3.13.0a3
Yhg1s Jan 17, 2024
0154405
gh-104282: Fix null pointer dereference in `lzma._decode_filter_prope…
chgnrdv Jan 17, 2024
f497525
gh-111301: Advertise importlib methods removal in What's new in Pytho…
befeleme Jan 17, 2024
5c351fc
gh-112343: pdb: Use tokenize to replace convenience variables (#112380)
gaogaotiantian Jan 17, 2024
1a2e18b
Post 3.13.0a3
Yhg1s Jan 17, 2024
8cf37f2
Merge branch 'main' of https://github.com/python/cpython
Yhg1s Jan 17, 2024
7a0ac89
gh-114178: Fix generate_sbom.py for out-of-tree builds (#114179)
erlend-aasland Jan 17, 2024
029ecee
gh-114070: fix token reference warnings in expressions.rst (#114169)
skirpichev Jan 17, 2024
33b47a2
gh-114149: [Enum] fix tuple subclass handling when using custom __new…
ethanfurman Jan 17, 2024
0b541f6
gh-105102: Fix nested unions in structures when the system byteorder …
Sh3idan Jan 17, 2024
7573c44
Fix typo in tkinter.ttk.rst (GH-106157)
christopheNan Jan 17, 2024
78fcde0
gh-38807: Fix race condition in Lib/trace.py (GH-110143)
buermarc Jan 17, 2024
f56d132
gh-112984 Update Windows build and installer for free-threaded builds…
zooba Jan 17, 2024
9455403
gh-112984: Fix test_ctypes.test_loading.test_load_dll_with_flags when…
zooba Jan 18, 2024
4c7e09d
gh-114149: [Enum] revert #114160 and add more tuple-subclass tests (G…
ethanfurman Jan 18, 2024
e2c097e
gh-104522: Fix OSError raised when run a subprocess (#114195)
serhiy-storchaka Jan 18, 2024
c1db960
gh-113205: test_multiprocessing.test_terminate: Test the API on threa…
encukou Jan 18, 2024
8cda720
gh-114211: Update EmailMessage doc about ordered keys (#114224)
terryjreedy Jan 18, 2024
6f4b242
gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object'…
terryjreedy Jan 18, 2024
ba683c2
gh-114231: Fix indentation in enum.rst (#114232)
miyashiiii Jan 18, 2024
311d1e2
gh-104522: Fix test_subprocess failure when build Python in the root …
serhiy-storchaka Jan 18, 2024
a571a2f
gh-114050: Fix crash when more than two arguments are passed to int()…
kcatss Jan 18, 2024
8e31cdc
gh-103092: Convert some `_ctypes` metatypes to heap types (GH-113620)
aisk Jan 18, 2024
b8f29b1
gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350)
chrstphrchvz Jan 18, 2024
2ff072f
Delete unused macro (GH-114238)
markshannon Jan 18, 2024
9c93350
gh-108303: Move all doctest related files and tests to `Lib/test/test…
sobolevn Jan 18, 2024
339fc3c
gh-114198: Rename dataclass __replace__ argument to 'self' (gh-114251)
pschanely Jan 18, 2024
2d3f6b5
gh-114087: Speed up dataclasses._asdict_inner (#114088)
keithasaurus Jan 18, 2024
7fa511b
gh-111968: Use per-thread freelists for generator in free-threading (…
corona10 Jan 18, 2024
68a7b78
gh-112092: clarify unstable ABI recompilation requirements (#112093)
DerSchinken Jan 18, 2024
72abb8c
gh-114123: Migrate docstring from _csv to csv (#114124)
smontanaro Jan 18, 2024
d544285
gh-112087: Remove duplicated critical_section (gh-114268)
corona10 Jan 18, 2024
a34e4db
gh-111968: Fix --without-freelists build (gh-114270)
corona10 Jan 18, 2024
05e4720
gh-114286: Fix `maybe-uninitialized` warning in `Modules/_io/fileio.c…
sobolevn Jan 19, 2024
28eacf2
gh-113884: Refactor `queue.SimpleQueue` to use a ring buffer to store…
mpage Jan 19, 2024
efb81a6
gh-114275: Skip doctests that use `asyncio` in `test_pdb` for WASI bu…
sobolevn Jan 19, 2024
7e49f27
gh-114265: move line number propagation before cfg optimization, remo…
iritkatriel Jan 19, 2024
229ee5b
Retain shorter tables of contents for Sphinx 5.2.3+ (#114318)
hugovk Jan 19, 2024
681e9e8
Add a `clean` subcommand to `Tools/wasm/wasi.py` (GH-114274)
brettcannon Jan 19, 2024
6313cdd
GH-79634: Accept path-like objects as pathlib glob patterns. (#114017)
barneygale Jan 20, 2024
1e610fb
GH-113225: Speed up `pathlib.Path.walk(top_down=False)` (#113693)
barneygale Jan 20, 2024
567a85e
gh-114332: Fix the flags reference for ``re.compile()`` (#114334)
dhgutteridge Jan 20, 2024
e649515
GH-99380: Update to Sphinx 7 (#99381)
AA-Turner Jan 20, 2024
b1ad5a5
Docs: structure the ftplib reference (#114317)
erlend-aasland Jan 20, 2024
1d6d5e8
gh-112529: Use GC heaps for GC allocations in free-threaded builds (g…
colesbury Jan 20, 2024
0554a95
gh-114281: Remove incorrect type hints from `asyncio.staggered` (#114…
sobolevn Jan 20, 2024
8f4f773
Docs: Add missing line continuation to FTP_TLS class docs (#114352)
erlend-aasland Jan 20, 2024
c48b8f8
Remove the non-test Lib/test/time_hashlib.py. (#114354)
gpshead Jan 20, 2024
52eade2
Remove deleted `time_hashlib.py` from `Lib/test/.ruff.toml` (#114355)
hugovk Jan 20, 2024
b04c500
Fix the confusing "User-defined methods" reference in the datamodel (…
cdzhan Jan 21, 2024
fbc2874
Docs: mark up the FTP debug levels as a list (#114360)
erlend-aasland Jan 21, 2024
47133d8
gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (#114373)
sobolevn Jan 21, 2024
5adff3f
gh-80931: Skip some socket tests while hunting for refleaks on macOS …
ronaldoussoren Jan 21, 2024
96c15b1
Docs: mark up FTP() constructor with param list (#114359)
erlend-aasland Jan 21, 2024
38768e4
gh-114384: Align sys.set_asyncgen_hooks signature in docs to reflect …
sobolevn Jan 21, 2024
de17cf4
Docs: link to sys.stdout in ftplib docs (#114396)
erlend-aasland Jan 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
87 changes: 3 additions & 84 deletions .azure-pipelines/ci.yml
Original file line number Diff line number Diff line change
@@ -1,104 +1,23 @@
variables:
coverage: false

trigger: ['main', '3.10', '3.9', '3.8', '3.7']
trigger: ['main', '3.12', '3.11', '3.10', '3.9', '3.8', '3.7']

jobs:
- job: Prebuild
displayName: Pre-build checks

pool:
vmImage: ubuntu-20.04
vmImage: ubuntu-22.04

steps:
- template: ./prebuild-checks.yml


- job: Docs_PR
displayName: Docs PR
dependsOn: Prebuild
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))

pool:
vmImage: ubuntu-20.04

steps:
- template: ./docs-steps.yml
parameters:
upload: true


- job: macOS_CI_Tests
displayName: macOS CI Tests
dependsOn: Prebuild
#condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
# bpo-39837: macOS tests on Azure Pipelines are disabled
condition: false

variables:
testRunTitle: '$(build.sourceBranchName)-macos'
testRunPlatform: macos

pool:
vmImage: macos-10.15

steps:
- template: ./macos-steps.yml


- job: Ubuntu_CI_Tests
displayName: Ubuntu CI Tests
dependsOn: Prebuild
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))

pool:
vmImage: ubuntu-20.04

variables:
testRunTitle: '$(build.sourceBranchName)-linux'
testRunPlatform: linux
openssl_version: 1.1.1l

steps:
- template: ./posix-steps.yml
parameters:
dependencies: apt


- job: Ubuntu_Coverage_CI_Tests
displayName: Ubuntu CI Tests (coverage)
dependsOn: Prebuild
condition: |
and(
and(
succeeded(),
eq(variables['coverage'], 'true')
),
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
)

pool:
vmImage: ubuntu-20.04

variables:
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
testRunPlatform: linux-coverage
openssl_version: 1.1.1l

steps:
- template: ./posix-steps.yml
parameters:
dependencies: apt
coverage: true


- job: Windows_CI_Tests
displayName: Windows CI Tests
dependsOn: Prebuild
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))

pool:
vmImage: windows-2019
vmImage: windows-2022

strategy:
matrix:
Expand Down
47 changes: 0 additions & 47 deletions .azure-pipelines/docs-steps.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .azure-pipelines/macos-steps.yml

This file was deleted.

71 changes: 8 additions & 63 deletions .azure-pipelines/posix-steps.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
parameters:
coverage: false
sudo_dependencies: sudo
dependencies: apt
patchcheck: true
xvfb: true

steps:
- checkout: self
clean: true
Expand All @@ -14,7 +7,7 @@ steps:
- script: sudo setfacl -Rb /home/vsts
displayName: 'Workaround ACL issue'

- script: ${{ parameters.sudo_dependencies }} ./.azure-pipelines/posix-deps-${{ parameters.dependencies }}.sh $(openssl_version)
- script: sudo ./.azure-pipelines/posix-deps-apt.sh $(openssl_version)
displayName: 'Install dependencies'

- script: ./configure --with-pydebug
Expand All @@ -23,59 +16,11 @@ steps:
- script: make -j4
displayName: 'Build CPython'

- ${{ if eq(parameters.coverage, 'true') }}:
- script: ./python -m venv venv && ./venv/bin/python -m pip install -U coverage
displayName: 'Set up virtual environment'

- script: ./venv/bin/python -m test.pythoninfo
displayName: 'Display build info'

- script: |
$COMMAND -m coverage run --pylib -m test \
--fail-env-changed \
-uall,-cpu \
--junit-xml=$(build.binariesDirectory)/test-results.xml \
-x test_multiprocessing_fork \
-x test_multiprocessing_forkserver \
-x test_multiprocessing_spawn \
-x test_concurrent_futures
displayName: 'Tests with coverage'
env:
${{ if eq(parameters.xvfb, 'true') }}:
COMMAND: xvfb-run ./venv/bin/python
${{ if ne(parameters.xvfb, 'true') }}:
COMMAND: ./venv/bin/python

- script: ./venv/bin/python -m coverage xml
displayName: 'Generate coverage.xml'

- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash) -y .github/codecov.yml
displayName: 'Publish code coverage results'


- ${{ if ne(parameters.coverage, 'true') }}:
- script: make pythoninfo
displayName: 'Display build info'

- script: $COMMAND buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
displayName: 'Tests'
env:
${{ if eq(parameters.xvfb, 'true') }}:
COMMAND: xvfb-run make
${{ if ne(parameters.xvfb, 'true') }}:
COMMAND: make

- ${{ if eq(parameters.patchcheck, 'true') }}:
- script: ./python Tools/scripts/patchcheck.py --travis true
displayName: 'Run patchcheck.py'
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))

- script: make pythoninfo
displayName: 'Display build info'

- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '$(build.binariesDirectory)/test-results.xml'
mergeTestResults: true
testRunTitle: $(testRunTitle)
platform: $(testRunPlatform)
condition: succeededOrFailed()
- script: |
git fetch origin
./python Tools/patchcheck/patchcheck.py --ci true
displayName: 'Run patchcheck.py'
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
Loading