Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
bpo-35381 Make all posixmodule types heap-allocated#10854
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Closed
eduardo-elizondo wants to merge1,733 commits intopython:masterfromeduardo-elizondo:posixmodule-fromspec
Uh oh!
There was an error while loading.Please reload this page.
Closed
Changes fromall commits
Commits
Show all changes
1733 commits Select commitHold shift + click to select a range
b607d99
bpo-37459: importlib docs improperly reference get_resource_loader() …
aldwinaldwin9d40554
bpo-37421: Fix multiprocessing get_temp_dir() finalizer (GH-14572)
vstinner196a530
bpo-37483: add _PyObject_CallOneArg() function (#14558)
jdemeyer7f41c8e
bpo-37493: use _PyObject_CallNoArg in more places (GH-14575)
jdemeyerb4e6896
bpo-37266: Add bpo number to the What's New entry (GH614584)
vstinner2f19e82
bpo-37479: on Enum subclasses with mixins, __format__ uses overridden…
thatneata55f75a
Use OSError subclasses in os documentation (GH-14262)
timhoffm1da4462
bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)
vstinner6e43d07
bpo-37483: fix reference leak in _PyCodec_Lookup (GH-14600)
jdemeyer0d722f3
bpo-36974: separate vectorcall functions for each calling convention …
jdemeyer8fbeb14
bpo-37421: multiprocessing tests now stop ForkServer (GH-14601)
vstinner7b57c03
bpo-37151: remove _PyMethodDef_RawFastCall* functions (GH-14603)
jdemeyerbad02cc
Move test_threaded_import.py to test_importlib/ (GH-14582)
aeros10e5c66
Typo fix in file Include/object.h (GH-14556)
hansrajdasf7d72e4
Fix some typos (GH-14435)
minho4239a5d17
closes bpo-37508: Fix name of type in memory.rst. (GH-14604)
shihai199145bc61b
bpo-37149: Replace dead link for online Tkinter reference (GH-14616)
terryjreedyfcf1d00
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
taleinatf8709e8
bpo-37487: Fix PyList_GetItem index description. (GH-14623)
terryjreedy6f2a8c0
bpo-37456: Slash ('/') is now part of syntax. (GH-14627)
terryjreedy0717b4d
bpo-37478: Specify possible exceptions for os.chdir() (GH-14611)
aerosa9b40e4
bpo-37478: Add missing 'and'. (GH-14631)
terryjreedyf6cdd3f
bpo-37513: Change ValueError to TypeError in an example in ctypes doc…
shihai199138f44b4
bpo-37520: Correct behavior for zipfile.Path.parent (GH-14638)
jaraco762f93f
bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)
jdemeyere676244
bpo-37421: test_concurrent_futures stops ForkServer (GH-14643)
vstinner2da622f
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
JulienPalard66b4150
Doc: Fix example title. (GH-14639)
JulienPalard110a47c
bpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607)
cfbolzcf9c41c
bpo-37322: Fix test_ssl.test_pha_required_nocert() ResourceWarning (G…
vstinner91b4f7a
bpo-37526: Add support.catch_threading_exception() (GH-14664)
vstinner76611c7
bpo-37120: Fix _ssl get_num_tickets() (GH-14668)
vstinner61b1bc5
Revert "bpo-37322: Fix test_ssl.test_pha_required_nocert() ResourceWa…
vstinner430a9f4
bpo-18374: fix tests to check the correct thing about line numbers (G…
cfbolz73ea546
bpo-37322: ssl test_pha_required_nocert() ignores expected SSLError (…
vstinner3a3db97
bpo-27679: Remove set_bitfields() from _ctypes_test (GH-14648)
shihai19916aeb2fe
bpo-26806: IDLE should run without docstrings (#14657)
terryjreedy4749dbe
Really remove vcstdint.h. (#14686)
skrahf117d87
Rename memory.c to mpalloc.c for consistency with the header file. (#…
skrah5d25f2b
bpo-37537: Compute allocated blocks in _Py_GetAllocatedBlocks() (#14680)
naschemeb64c2c6
Fix compiler warning in new code. (#14690)
tim-one2a3d4d9
Document default parameter of .seek() in the signature. (GH-14691)
benjaminp59ad110
bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)
jdemeyer79042ac
bpo-34369: make kqueue.control() docs better reflect that timeout is …
taleinat9b5ce62
bpo-36390: simplify classifyws(), rename it and add unit tests (GH-14…
taleinat1dbd084
bpo-29548: no longer use PyEval_Call* functions (GH-14683)
jdemeyer7cbef72
closes bpo-37554: Remove `q:q` in os.rst documentation (GH-14692)
Mariatta4737265
bpo-37558: Shared memory tests are failing due to double slashes (GH-…
kulikjak13ab570
Remove redundant check from arraymodule b_getitem (GH-14676)
disconnect3dc8e7146
closes bpo-37566: Remove _realsocket from socket.py. (GH-14711)
shihai1991a65c977
bpo-19696: Move threaded_import_hangers (GH-14655)
aeros0827064
bpo-37521: No longer treat insertion into sys.modules as optional in …
brettcannonb9a0376
closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268)
gescheitfb6c1f8
Fix typo in re.escape documentation (GH-14722)
rdipietro994a3b8
Enable publish of Windows releases through Azure Pipelines (GH-14720)
zoobab5bbb8a
bpo-37580: Fix typo in http.cookiejar documentation (GH-14731)
zvyn05f2d84
bpo-28269: Replace strcasecmp with system function _stricmp. (GH-13095)
gongminmine6b46aa
bpo-37579: Improve equality behavior for pure Python datetime and tim…
tirkarthidc3f99f
bpo-37548: Document range of atan, acos and asin (GH-14717)
potomaked184c0
bpo-37358: Use vectorcall for functools.partial (GH-14284)
jdemeyere441847
bpo-30088: Document that existing dir structure isn't verified by mai…
webknjaz0148470
Fix inconsequential typo in math.remainder algorithm comments. (#14746)
mdickinsondffca9e
bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316)
Zac-HD8efade9
bpo-36261: Improve example of the preamble field in email docs (GH-14…
carlbordum6b92958
bpo-37571: Add 'b' to prevent the TypeError exception. (GH-14721)
mangrisano68c74d0
bpo-37571: Remove extra space in ctypes docs (GH14764)
zooba40d2226
Remove redundant docs of PyEval_EvalFrameEx (GH-14765)
shihai199152c8c09
bpo-37553: SendfileUsingSendTest tests timeout too short for Windows …
paulmon0d4f435
Clarify that plistlib's load and dump functions take a binary file ob…
cstyles1c5e68e
bpo-34749: Improved performance of binascii.a2b_base64(). (GH-9444)
sir-sigurd8b7db5a
bpo-37473: Don't import importlib ASAP in tests (GH-14661)
vstinnercd6e83b
bpo-37593: Swap the positions of posonlyargs and args in the construc…
pablogsal18c5f9d
bpo-37500: Make sure dead code does not generate bytecode but also de…
pablogsal52693c1
bpo-37284: Add note to sys.implementation doc (GH-14328)
potomake869281
bpo-37468: make install no longer install wininst-*.exe files (GH-14511)
vstinner6a61714
Replace backquote with command substitution in subprocess doc example…
drj11a0f7119
bpo-37352: Minor word-smithing for design.rst (GH #14730)
ikamensh1d8b04e
bpo-37599: Remove a vague statement in documentation of Integer Objec…
sgalalf69d5c6
Fix infinite loop in email folding logic (GH-12732)
pgansslef8d4cc7
bpo-27452: IDLE: Cleanup config.py code (GH-14577)
csabellabd26a44
Docs: Correct formatting of a multiline code block (GH-13806)
madphysicist7036e1d
bpo-37530: simplify, optimize and clean up IDLE code context (GH-14675)
taleinatfb26504
bpo-37543: optimize pymalloc (#14674)
methane82494aa
bpo-36390: IDLE: Combine region formatting methods. (GH-12481)
csabellaa4a994b
bpo-37461: Fix infinite loop in parsing of specially crafted email he…
maxking719a062
Fix IndexError when parsing unexpectedly ending quoted-string. (GH-14…
maxking8cb65d1
bpo-34155: Dont parse domains containing @ (GH-13079)
jpic1b38922
bpo-36390: Gather IDLE Format menu functions into format.py (#14827)
terryjreedy9cd39b1
bpo-37552: Skip failing tests in strptime/strftime with UCRT version …
paulmonaf2f5b1
Adjust builtins.zip() docstring to better communicate its signature (…
sir-sigurd323842c
bpo-34443: Use __qualname__ instead of __name__ in enum exception mes…
doerwaltere0a1f8f
bpo-33610: IDLE's code-context always shows current context immediate…
taleinat8f040b7
bpo-37610: improve Using Python doc wrt Editors & IDE (GH-14850)
aldwinaldwind395209
bpo-37547: Fix a compiler warning in winconsoleio.c (GH-14785)
ZackerySpytz8dbe563
bpo-37624: Document weight assumptions for random.choices() (GH-14855)
rhettingereed5e9a
bpo-36546: Clean-up comments (GH-14857)
rhettinger5623ac8
bpo-37476: Adding tests for asutf8 and asutf8andsize (GH-14531)
shihai199102c91f5
bpo-36324: Make internal attributes for statistics.NormalDist() priva…
rhettinger35b87e6
bpo-37627: Initialize IDLE Custom Run dialog with previous entries (#…
nsiregar22f0483
Bpo-37644: update suspicious.csv for distutils/examples (GH-14885)
ned-deily1c0e9bb
Minor whitespace, indentation, and quoting changes to improve interna…
rhettinger8e3a738
Fix typo found by Min ho Kim (#14879)
terryjreedy96e12d5
Fix typos in docs, comments and test assert messages (#14872)
minho424214f1e
bpo-37627: Add acknowledgment (#14883)
terryjreedyb530a44
Add examples to elucidate the formulas (GH-14898)
rhettinger7397cda
bpo-21478: Record calls to parent when autospecced objects are used a…
tirkarthid309352
Update logging cookbook to show multiple worker processes using the c…
vsajip4e16a4a
bpo-36044: Reduce number of unit tests run for PGO build (GH-14702)
nascheme1ebee37
bpo-33610: validate non-negative integer inputs in IDLE's config (GH-…
taleinat7123ea0
bpo-17535: IDLE editor line numbers (GH-14030)
taleinat387c3c5
bpo-37653: Fix libinstall target in Makefile (GH-14911)
c6fd6c8
bpo-29446: IDLE -- add explicit imports (GH-14919)
terryjreedy2f224a0
Touch up venv docs (GH-14922)
brettcannonf0807ab
Only setup PGO tests when --pgo is enabled. (GH-14927)
gpsheade95ac20
bpo-37667: Add regression test for regrtest. (GH-14929)
gpshead151b91d
bpo-29548: deprecate PyEval_Call* functions (GH-14804)
jdemeyerc6cb4cd
bpo-37399: Correctly attach tail text to the last element/comment/pi …
scodera3697db
bpo-34160: explain how to deal with attribute order in ElementTree (G…
scoder5380def
bpo-37664: Update bundled pip to 19.2.1 and setuptools to 41.0.1 (GH-…
pradyunsge018dc5
Remove duplicate call to strip method in Parser/pgen/token.py (GH-14938)
hansrajdas123536f
bpo-37672: Switch Windows Store package to use pip.ini for user mode …
zooba93e8aa6
closes bpo-37675: Use pkgutil.iter_modules to find fixers in a packag…
benjaminp898318b
bpo-37502: handle default parameter for buffers argument of pickle.lo…
mmohrhard544fa15
Swap 'if' branches so content matches to condition in importlib examp…
uranusjrc4cda43
bpo-37641 preserve relative file location in embeddable zip (GH-14884)
mrginglymus76b6451
bpo-29446: tkinter 'import *' only imports what it should (GH-14864)
3e54b57
bpo-37340: remove free_list for bound method objects (GH-14232)
methaneb1eb20e
bpo-37664: Update regex for ignoring cache warning on some buildbots …
zooba9d9893a
bpo-35524: Update Windows installer image in docs (GH-14966)
zooba91e4957
bpo-32910: Remove implementation detail in venv documentation. (GH-14…
d3r3kk46ebd4a
bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14…
taleinat1ed915e
Add Qt GUI example to the logging cookbook. (GH-14978)
vsajip3221a63
bpo-37628: Fix IDLE config sample sizes (#14958)
taleinat6b5f1b4
bpo-37691: Let math.dist() accept sequences and iterables for coordin…
rhettinger17a058e
Remove trailing .0 from version changed note (GH-14987)
ncoghlanb222955
bpo-37692: Improve highlight config sample (#14983)
terryjreedy049460d
bpo-37697: Sync with importlib_metadata 0.19 (#14993)
jaracoe1b9002
bpo-36044: Avoid warnings in Windows PGO build and add lzma, bz2 and …
zooba5b94f35
Fix `SyntaxError` indicator printing too many spaces for multi-line s…
asottile44212ec
Add additional test for multi-line SyntaxError (GH-15003)
asottilefe330fc
Fix publishing of Windows release (GH-15006)
zoobae8874b8
bpo-37706: Disable 3 IDLE scrollbar tests on Mac. (#15010)
terryjreedyf35c51d
bpo-34162: Update idlelib/news.txt. (#15011)
terryjreedy9211e2f
bpo-37268: Add deprecation notice and a DeprecationWarning for the pa…
pablogsal8a758f5
bpo-37587: Make json.loads faster for long strings (GH-14752)
mpaolini27eeaf0
bpo-37704: Remove Tools/scripts/h2py.py (GH-15000)
vstinner52a48e6
bpo-37707: Exclude expensive unit tests from PGO task (GH-15009)
naschemeeca7ffc
Don't skip pickle check_frame_opcodes() (GH-15025)
nascheme84846b0
bpo-36084: Add threading Native ID information to What's New document…
jaketesler0acb646
Fix idlelib typos discovered by min ho, pr 15018. (GH-15029)
terryjreedyc4cacc8
Fix typos in comments, docs and test names (#15018)
minho42fff5cb2
bpo-34162: Add missing items to idlelib/NEWS.txt. (GH-15034)
terryjreedya72ca90
bpo-33822: Add IDLE section of What's New 3.8 (#15035)
terryjreedy5982b72
bpo-33821: Update IDLE section of What's New 3.7 (#15036)
terryjreedyd04f890
IDLE: changelog correction and addition (GH-15042)
terryjreedy472eced
Refined Qt GUI example in the logging cookbook. (GH-15045)
vsajip31c4fd2
bpo-37085: Expose SocketCAN bcm_msg_head flags (#13646)
karldingc9345e3
bpo-37695: Correct unget_wch error message. (GH-14986)
asottile1b29af8
bpo-34101: Add doc of PyBuffer_GetPointer (GH-14994)
shihai19919f55551
bpo-37723: Fix performance regression on regular expression parsing. …
yannvgned5e8e0
bpo-37730: Fix usage of NotImplemented instead of NotImplementedError…
1a057ba
bpo-18049: Sync thread stack size to main thread size on macOS (GH-14…
ronaldoussoren0d30ae1
bpo-36302: Sort list of sources (GH-12341)
bmwiedemann2491134
bpo-37726: Prefer argparse over getopt in stdlib tutorial (#15052)
mental324b3e975
bpo-16970: Adding error message for invalid args (GH-14844)
tmblweedbf8162c
bpo-37729: gc: write stats at once (GH-15050)
methane854d0a4
bpo-36487: Make C-API docs clear about what the main interpreter is.…
nanjekyejoannahcb65b3a
bpo-37742: Return the root logger when logging.getLogger('root') is c…
vsajip8fbece1
bpo-36590: Add Bluetooth RFCOMM and support for Windows. (GH-12767)
topnotcher7ea9a85
bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)
tdhopper8e568ef
bpo-30974: Change os.path.samefile docstring to match docs (GH-7337)
timofurrerc5fa449
bpo-37444: Update differing exception between builtins and importlib …
nsiregar9670ce7
bpo-18049: Define THREAD_STACK_SIZE for AIX to pass default recursion…
aixtools5c72bad
Correct description of HTTP status code 308. (GH-15078)
FlorianWendelborn17e5264
bpo-37685: Fixed comparisons of datetime.timedelta and datetime.timez…
serhiy-storchaka18b711c
bpo-37648: Fixed minor inconsistency in some __contains__. (GH-14904)
serhiy-storchaka86f1a18
bpo-37706: IDLE - fix sidebar code bug and drag tests (GH-15103)
taleinat8183bb8
bpo-36324: Update comments to include the target hash sums (GH-15110)
rhettingerb1c8ec0
bpo-28292: Mark calendar.py helper functions as private. (GH-15113)
rhettingeradf02b3
Update itertools docs (GH-15114)
rhettinger1407029
bpo-37748: Re-order the Run menu. (GH-15115)
terryjreedyd748a80
Adds Tim Hopper and Dan Lidral-Porter to ACKS (GH-15101)
tdhopper1213123
bpo-36419: IDLE - Refactor autocompete and improve testing. (#15121)
terryjreedy4f9ffc9
bpo-37759: First round of major edits to Whatsnew 3.8 (GH-15127)
rhettingercfebfef
Improve signal documentation (GH-14274)
geryogam3a5c433
Make importlib.metadata a simple module (#15153)
warsaw3e41f3c
bpo-34488: optimize BytesIO.writelines() (GH-8904)
sir-sigurd610a482
bpo-37646: Document that eval() cannot access nested scopes (GH-15117)
rhettingere9cbcd0
bpo-37004: Documented asymmetry of string arguments in difflib.Sequen…
sweeneyde362f535
Update pickle.rst (GH-14128)
geryogam1fab9cb
bpo-37734: Fix use of registry values to launch Python from Microsoft…
zooba87ce958
bpo-37778: Fixes the icons used for file associations to the Microsof…
zooba0378d98
bpo-37734: Remove unnecessary brace escapes in PC/layout script (GH-1…
zooba4c69be2
bpo-34775: Return NotImplemented in PurePath division. (GH-9509)
aiudirog662db12
bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. …
serhiy-storchaka7d44e7a
bpo-37685: Use singletons ALWAYS_EQ and NEVER_EQ in more tests. (GH-1…
serhiy-storchakae43e7ed
bpo-35892: Add usage note to mode() (GH-15122)
rhettinger2a570af
bpo-37587: optimize json.loads (GH-15134)
methanef4e725f
bpo-25172: Raise appropriate ImportError msg when crypt module used o…
shireenrao10a0a09
bpo-37268: test_parser fails when run with -Werror (GH-15183)
ZackerySpytzaa542c2
bpo-37795: Capture DeprecationWarnings in the test suite (GH-15184)
pablogsaled70a34
bpo-36511: Fix failures in Windows ARM32 buildbot (GH-15181)
paulmon92c7e30
bpo-37642: Update acceptable offsets in timezone (GH-14878)
nsiregarb4be87a
bpo-32912: Revert SyntaxWarning on invalid escape sequences. (GH-15195)
gpshead51aac15
Delete leftover clinic-generated file for C zipimport. (GH-15174)
gnprice09a1872
bpo-32178: Fix IndexError trying to parse 'To' header starting with '…
maxkingf03b4c8
bpo-37819: Add Fraction.as_integer_ratio() (GH-15212)
rhettingerf9590ed
Fix docs for assert_called and assert_called_once (#15197)
ismail-s44046fe
bpo-37804: Remove the deprecated method threading.Thread.isAlive() (G…
corona10732775d
bpo-37354: Make Powershell Activate.ps1 script static to allow for si…
d3r3kk3e34a25
bpo-37354: Sign Activate.ps1 for release (GH-15235)
zoobac1aeb29
Remove versioned executables from non-APPX packages (GH-15237)
zooba66a34d3
bpo-37759: Second round of edits to Whatsnew 3.8 (GH-15204)
rhettingeref2af1a
bpo-37760: Factor out the basic UCD parsing logic of makeunicodedata.…
gnprice4e3dfcc
bpo-37760: Mark all generated Unicode data headers as generated. (GH-…
gnpricedef97c9
bpo-37758: Clean out vestigial script-bits from test_unicodedata. (GH…
gnprice99d208e
bpo-37760: Constant-fold some old options in makeunicodedata. (GH-15129)
gnpriceb0dace3
bpo-37841: Remove python_uwp dependency on msvcp140.dll (GH-15253)
zooba1ac2a83
bpo-37583: Add err 113 to support.get_socket_conn_refused_errs() (GH-…
shihai19918a784af
bpo-37814: Document the empty tuple type annotation syntax (GH-15208)
keysmashes82642a0
bpo-37689: add Path.is_relative_to() method (GH-14982)
shihai1991243a73d
bpo-25172: Add test for crypt ImportError on Windows (GH-15252)
shireenrao38c7199
bpo-37256: Wording in Request class docs (#14792)
nsiregarc03e698
bpo-37760: Factor out standard range-expanding logic in makeunicodeda…
gnprice43d564c
bpo-37337: Fix a GCC 9 warning in Objects/descrobject.c (GH-14814)
ZackerySpytz7e479c8
bpo-37681: no_sanitize_thread support from GCC 5.1 (GH-15096)
shihai1991077af8c
bpo-37738: Fix curses addch(str, color_pair) (GH-15071)
vstinner6bccbe7
bpo-36502: Correct documentation of str.isspace() (GH-15019)
gnpriceb0c8369
bpo-37531: Fix regrtest timeout for subprocesses (GH-15072)
vstinner4fa10dd
bpo-36030: Improve performance of some tuple operations (GH-12052)
sir-sigurd71662dc
bpo-37849: IDLE: fix completion window positioning above line (GH-15267)
taleinatdcfe111
bpo-37826: Document exception chaining in Python tutorial for errors.…
maxking2814620
bpo-37811: FreeBSD, OSX: fix poll(2) usage in sockets module (GH-15202)
akhramovac827ed
bpo-21131: Fix faulthandler.register(chain=True) stack (GH-15276)
vstinner68e495d
bpo-37775: Update compileall doc for invalidation_mode parameter (GH-…
shihai19913e4498d
bpo-37760: Avoid cluttering work tree with downloaded Unicode files. …
gnprice40dad95
Replace usage of the obscure PEM_read_bio_X509_AUX with the more stan…
alex37806f4
bpo-37207: enable vectorcall for type.__call__ (GH-14588)
jdemeyer69f37bc
Indent code inside if block. (GH-15284)
hansrajdasf3cb68f
bpo-37863: Optimize Fraction.__hash__() (#15298)
rhettinger0567786
bpo-37540: vectorcall: keyword names must be strings (GH-14682)
jdemeyer29bb227
Add a minor `Fraction.__hash__()` optimization (GH-15313)
tim-one1b1d051
fix link to time function from time_ns doc (GH-15285)
merwok5fa6e46
Make Posixmodule use PyType_FromSpec
eduardo-elizondodf178b4
Added NEWS
eduardo-elizondoe59208f
Updated hash
eduardo-elizondodef6467
Addressed PR Issues
eduardo-elizondobb2ead8
Ran argument clinic
eduardo-elizondo427c772
Added NEWS
eduardo-elizondo7b9b85f
Merged to master
eduardo-elizondoFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
The table of contents is too big for display.
Diff view
Diff view
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions.azure-pipelines/ci.yml
This file contains hidden or 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
2 changes: 1 addition & 1 deletion.azure-pipelines/docs-steps.yml
This file contains hidden or 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
4 changes: 4 additions & 0 deletions.azure-pipelines/posix-steps.yml
This file contains hidden or 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
4 changes: 2 additions & 2 deletions.azure-pipelines/pr.yml
This file contains hidden or 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
129 changes: 129 additions & 0 deletions.azure-pipelines/windows-release.yml
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,129 @@ | ||
name: Release_$(Build.SourceBranchName)_$(SourceTag)_$(Date:yyyyMMdd)$(Rev:.rr) | ||
variables: | ||
__RealSigningCertificate: 'Python Software Foundation' | ||
# QUEUE TIME VARIABLES | ||
# GitRemote: python | ||
# SourceTag: | ||
# DoPGO: true | ||
# SigningCertificate: 'Python Software Foundation' | ||
# SigningDescription: 'Built: $(Build.BuildNumber)' | ||
# DoLayout: true | ||
# DoMSIX: true | ||
# DoNuget: true | ||
# DoEmbed: true | ||
# DoMSI: true | ||
# DoPublish: false | ||
# PyDotOrgUsername: '' | ||
# PyDotOrgServer: '' | ||
# BuildToPublish: '' | ||
trigger: none | ||
pr: none | ||
stages: | ||
- stage: Build | ||
displayName: Build binaries | ||
condition: and(succeeded(), not(variables['BuildToPublish'])) | ||
jobs: | ||
- template: windows-release/stage-build.yml | ||
- stage: Sign | ||
displayName: Sign binaries | ||
dependsOn: Build | ||
condition: and(succeeded(), not(variables['BuildToPublish'])) | ||
jobs: | ||
- template: windows-release/stage-sign.yml | ||
- stage: Layout | ||
displayName: Generate layouts | ||
dependsOn: Sign | ||
condition: and(succeeded(), not(variables['BuildToPublish'])) | ||
jobs: | ||
- template: windows-release/stage-layout-full.yml | ||
- template: windows-release/stage-layout-embed.yml | ||
- template: windows-release/stage-layout-nuget.yml | ||
- stage: Pack | ||
dependsOn: Layout | ||
condition: and(succeeded(), not(variables['BuildToPublish'])) | ||
jobs: | ||
- template: windows-release/stage-pack-nuget.yml | ||
- stage: Test | ||
dependsOn: Pack | ||
condition: and(succeeded(), not(variables['BuildToPublish'])) | ||
jobs: | ||
- template: windows-release/stage-test-embed.yml | ||
- template: windows-release/stage-test-nuget.yml | ||
- stage: Layout_MSIX | ||
displayName: Generate MSIX layouts | ||
dependsOn: Sign | ||
condition: and(succeeded(), and(eq(variables['DoMSIX'], 'true'), not(variables['BuildToPublish']))) | ||
jobs: | ||
- template: windows-release/stage-layout-msix.yml | ||
- stage: Pack_MSIX | ||
displayName: Package MSIX | ||
dependsOn: Layout_MSIX | ||
condition: and(succeeded(), not(variables['BuildToPublish'])) | ||
jobs: | ||
- template: windows-release/stage-pack-msix.yml | ||
- stage: Build_MSI | ||
displayName: Build MSI installer | ||
dependsOn: Sign | ||
condition: and(succeeded(), and(eq(variables['DoMSI'], 'true'), not(variables['BuildToPublish']))) | ||
jobs: | ||
- template: windows-release/stage-msi.yml | ||
- stage: Test_MSI | ||
displayName: Test MSI installer | ||
dependsOn: Build_MSI | ||
condition: and(succeeded(), not(variables['BuildToPublish'])) | ||
jobs: | ||
- template: windows-release/stage-test-msi.yml | ||
- stage: PublishPyDotOrg | ||
displayName: Publish to python.org | ||
dependsOn: ['Test_MSI', 'Test'] | ||
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), not(variables['BuildToPublish']))) | ||
jobs: | ||
- template: windows-release/stage-publish-pythonorg.yml | ||
- stage: PublishNuget | ||
displayName: Publish to nuget.org | ||
dependsOn: Test | ||
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), not(variables['BuildToPublish']))) | ||
jobs: | ||
- template: windows-release/stage-publish-nugetorg.yml | ||
- stage: PublishStore | ||
displayName: Publish to Store | ||
dependsOn: Pack_MSIX | ||
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), not(variables['BuildToPublish']))) | ||
jobs: | ||
- template: windows-release/stage-publish-store.yml | ||
- stage: PublishExistingPyDotOrg | ||
displayName: Publish existing build to python.org | ||
dependsOn: [] | ||
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), variables['BuildToPublish'])) | ||
jobs: | ||
- template: windows-release/stage-publish-pythonorg.yml | ||
- stage: PublishExistingNuget | ||
displayName: Publish existing build to nuget.org | ||
dependsOn: [] | ||
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), variables['BuildToPublish'])) | ||
jobs: | ||
- template: windows-release/stage-publish-nugetorg.yml | ||
- stage: PublishExistingStore | ||
displayName: Publish existing build to Store | ||
dependsOn: [] | ||
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), variables['BuildToPublish'])) | ||
jobs: | ||
- template: windows-release/stage-publish-store.yml |
83 changes: 83 additions & 0 deletions.azure-pipelines/windows-release/build-steps.yml
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
parameters: | ||
ShouldPGO: false | ||
steps: | ||
- template: ./checkout.yml | ||
- powershell: | | ||
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }}; | ||
Write-Host "##vso[task.setvariable variable=VersionText]$($d.PythonVersion)" | ||
Write-Host "##vso[task.setvariable variable=VersionNumber]$($d.PythonVersionNumber)" | ||
Write-Host "##vso[task.setvariable variable=VersionHex]$($d.PythonVersionHex)" | ||
Write-Host "##vso[task.setvariable variable=VersionUnique]$($d.PythonVersionUnique)" | ||
Write-Host "##vso[build.addbuildtag]$($d.PythonVersion)" | ||
Write-Host "##vso[build.addbuildtag]$($d.PythonVersion)-$(Name)" | ||
displayName: 'Extract version numbers' | ||
- ${{ if eq(parameters.ShouldPGO, 'false') }}: | ||
- powershell: | | ||
$env:SigningCertificate = $null | ||
.\PCbuild\build.bat -v -p $(Platform) -c $(Configuration) | ||
displayName: 'Run build' | ||
env: | ||
IncludeUwp: true | ||
Py_OutDir: '$(Build.BinariesDirectory)\bin' | ||
- ${{ if eq(parameters.ShouldPGO, 'true') }}: | ||
- powershell: | | ||
$env:SigningCertificate = $null | ||
.\PCbuild\build.bat -v -p $(Platform) --pgo | ||
displayName: 'Run build with PGO' | ||
env: | ||
IncludeUwp: true | ||
Py_OutDir: '$(Build.BinariesDirectory)\bin' | ||
- powershell: | | ||
$kitroot = (gp 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots\').KitsRoot10 | ||
$tool = (gci -r "$kitroot\Bin\*\x64\signtool.exe" | sort FullName -Desc | select -First 1) | ||
if (-not $tool) { | ||
throw "SDK is not available" | ||
} | ||
Write-Host "##vso[task.prependpath]$($tool.Directory)" | ||
displayName: 'Add WinSDK tools to path' | ||
- powershell: | | ||
$env:SigningCertificate = $null | ||
.\python.bat PC\layout -vv -t "$(Build.BinariesDirectory)\catalog" --catalog "${env:CAT}.cdf" --preset-default | ||
makecat "${env:CAT}.cdf" | ||
del "${env:CAT}.cdf" | ||
if (-not (Test-Path "${env:CAT}.cat")) { | ||
throw "Failed to build catalog file" | ||
} | ||
displayName: 'Generate catalog' | ||
env: | ||
CAT: $(Build.BinariesDirectory)\bin\$(Arch)\python | ||
- task: PublishPipelineArtifact@0 | ||
displayName: 'Publish binaries' | ||
condition: and(succeeded(), not(and(eq(variables['Configuration'], 'Release'), variables['SigningCertificate']))) | ||
inputs: | ||
targetPath: '$(Build.BinariesDirectory)\bin\$(Arch)' | ||
artifactName: bin_$(Name) | ||
- task: PublishPipelineArtifact@0 | ||
displayName: 'Publish binaries for signing' | ||
condition: and(succeeded(), and(eq(variables['Configuration'], 'Release'), variables['SigningCertificate'])) | ||
inputs: | ||
targetPath: '$(Build.BinariesDirectory)\bin\$(Arch)' | ||
artifactName: unsigned_bin_$(Name) | ||
- task: CopyFiles@2 | ||
displayName: 'Layout Artifact: symbols' | ||
inputs: | ||
sourceFolder: $(Build.BinariesDirectory)\bin\$(Arch) | ||
targetFolder: $(Build.ArtifactStagingDirectory)\symbols\$(Name) | ||
flatten: true | ||
contents: | | ||
**\*.pdb | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: symbols' | ||
inputs: | ||
PathToPublish: '$(Build.ArtifactStagingDirectory)\symbols' | ||
ArtifactName: symbols |
21 changes: 21 additions & 0 deletions.azure-pipelines/windows-release/checkout.yml
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
parameters: | ||
depth: 3 | ||
steps: | ||
- checkout: none | ||
- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(SourceTag) --single-branch https://github.com/$(GitRemote)/cpython.git . | ||
displayName: 'git clone ($(GitRemote)/$(SourceTag))' | ||
condition: and(succeeded(), and(variables['GitRemote'], variables['SourceTag'])) | ||
- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(SourceTag) --single-branch $(Build.Repository.Uri) . | ||
displayName: 'git clone (<default>/$(SourceTag))' | ||
condition: and(succeeded(), and(not(variables['GitRemote']), variables['SourceTag'])) | ||
- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(Build.SourceBranchName) --single-branch https://github.com/$(GitRemote)/cpython.git . | ||
displayName: 'git clone ($(GitRemote)/<default>)' | ||
condition: and(succeeded(), and(variables['GitRemote'], not(variables['SourceTag']))) | ||
- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(Build.SourceBranchName) --single-branch $(Build.Repository.Uri) . | ||
displayName: 'git clone' | ||
condition: and(succeeded(), and(not(variables['GitRemote']), not(variables['SourceTag']))) |
17 changes: 17 additions & 0 deletions.azure-pipelines/windows-release/find-sdk.yml
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Locate the Windows SDK and add its binaries directory to PATH | ||
# | ||
# `toolname` can be overridden to use a different marker file. | ||
parameters: | ||
toolname: signtool.exe | ||
steps: | ||
- powershell: | | ||
$kitroot = (gp 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots\').KitsRoot10 | ||
$tool = (gci -r "$kitroot\Bin\*\${{ parameters.toolname }}" | sort FullName -Desc | select -First 1) | ||
if (-not $tool) { | ||
throw "SDK is not available" | ||
} | ||
Write-Host "##vso[task.prependpath]$($tool.Directory)" | ||
Write-Host "Adding $($tool.Directory) to PATH" | ||
displayName: 'Add WinSDK tools to path' |
28 changes: 28 additions & 0 deletions.azure-pipelines/windows-release/gpg-sign.yml
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
parameters: | ||
GPGKeyFile: $(GPGKey) | ||
GPGPassphrase: $(GPGPassphrase) | ||
Files: '*' | ||
WorkingDirectory: $(Build.BinariesDirectory) | ||
steps: | ||
- task: DownloadSecureFile@1 | ||
name: gpgkey | ||
inputs: | ||
secureFile: ${{ parameters.GPGKeyFile }} | ||
displayName: 'Download GPG key' | ||
- powershell: | | ||
git clone https://github.com/python/cpython-bin-deps --branch gpg --single-branch --depth 1 --progress -v "gpg" | ||
gpg/gpg2.exe --import "$(gpgkey.secureFilePath)" | ||
(gci -File ${{ parameters.Files }}).FullName | %{ | ||
gpg/gpg2.exe -ba --batch --passphrase ${{ parameters.GPGPassphrase }} $_ | ||
"Made signature for $_" | ||
} | ||
displayName: 'Generate GPG signatures' | ||
workingDirectory: ${{ parameters.WorkingDirectory }} | ||
- powershell: | | ||
$p = gps "gpg-agent" -EA 0 | ||
if ($p) { $p.Kill() } | ||
displayName: 'Kill GPG agent' | ||
condition: true |
15 changes: 15 additions & 0 deletions.azure-pipelines/windows-release/layout-command.yml
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
steps: | ||
- powershell: > | ||
Write-Host ( | ||
'##vso[task.setvariable variable=LayoutCmd]& | ||
"{0}\bin\python.exe" | ||
"{1}\PC\layout" | ||
-vv | ||
--source "{1}" | ||
--build "{0}\bin" | ||
--temp "{0}\layout-temp" | ||
--include-cat "{0}\bin\python.cat" | ||
--doc-build "{0}\doc"' | ||
-f ("$(Build.BinariesDirectory)", "$(Build.SourcesDirectory)") | ||
) | ||
displayName: 'Set LayoutCmd' |
13 changes: 13 additions & 0 deletions.azure-pipelines/windows-release/mingw-lib.yml
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
parameters: | ||
DllToolOpt: -m i386:x86-64 | ||
#DllToolOpt: -m i386 --as-flags=--32 | ||
steps: | ||
- powershell: | | ||
git clone https://github.com/python/cpython-bin-deps --branch binutils --single-branch --depth 1 --progress -v "binutils" | ||
gci "bin\$(Arch)\python*.dll" | %{ | ||
& "binutils\gendef.exe" $_ | Out-File -Encoding ascii tmp.def | ||
& "binutils\dlltool.exe" --dllname $($_.BaseName).dll --def tmp.def --output-lib "$($_.Directory)\lib$($_.BaseName).a" ${{ parameters.DllToolOpt }} | ||
} | ||
displayName: 'Generate MinGW import library' | ||
workingDirectory: $(Build.BinariesDirectory) |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.