summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* [3.8] bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) (GH-25089)Christian Heimes2021-03-301-2/+2
| | | | | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran. (cherry picked from commit a54fc683f237d8f0b6e999a63aa9b8c0a45b7fef) Co-authored-by: Christian Heimes <christian@python.org>
* Do not remove x bit from published directories (GH-24101)Miss Islington (bot)2021-01-041-2/+2
| | | | | (cherry picked from commit af4cd16479f2d55bee3db899e7679d7cde1d2ab7) Co-authored-by: Steve Dower <steve.dower@python.org>
* closes bpo-42726: gdb libpython: InstanceProxy support for py3 (GH-23912)Miss Islington (bot)2020-12-241-1/+1
| | | | | | | | | | On Fedora 31 gdb is using python 3.7.9, calling `proxyval` on an instance with a dictionary fails because of the `dict.iteritems` usage. This PR changes the code to be compatible with py2 and py3. This changed seemed small enough to not need an issue and news blurb, if one is required please let me know. Automerge-Triggered-By: GH:benjaminp (cherry picked from commit b57ada98da0d5b0cf1ebc2c9c5502d04aa962042) Co-authored-by: Augusto Hack <hack.augusto@gmail.com>
* [3.8] bpo-42630: Improve error reporting in Tkinter for absent default root ↵Serhiy Storchaka2020-12-191-8/+4
| | | | | | | | | | | | | | | (GH-23781) (GH-23854) * Tkinter functions and constructors which need a default root window raise now RuntimeError with descriptive message instead of obscure AttributeError or NameError if it is not created yet or cannot be created automatically. * Add tests for all functions which use default root window. * Fix import in the pynche script. (cherry picked from commit 3d569fd6dccf9f582bafaca04d3535094cae393e)
* bpo-42613: Fix freeze.py config directory (GH-23792)Miss Islington (bot)2020-12-171-10/+10
| | | | | | Fix freeze.py tool to use the prope config and library directories. (cherry picked from commit 1c653f17cb84d81df3a74ab0b42140d2bb68c5c4) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to ↵Pablo Galindo2020-12-071-1/+1
| | | | allow using older Python versions (GH-23685)
* bpo-42398: Fix "make regen-all" race condition (GH-23362) (GH-23367)Miss Islington (bot)2020-11-181-19/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a race condition in "make regen-all" when make -jN option is used to run jobs in parallel. The clinic.py script now only use atomic write to write files. Moveover, generated files are now left unchanged if the content does not change, to not change the file modification time. The "make regen-all" command runs "make clinic" and "make regen-importlib" targets: * "make regen-importlib" builds object files (ex: Modules/_weakref.o) from source files (ex: Modules/_weakref.c) and clinic files (ex: Modules/clinic/_weakref.c.h) * "make clinic" always rewrites all clinic files (ex: Modules/clinic/_weakref.c.h) Since there is no dependency between "clinic" and "regen-importlib" Makefile targets, these two targets can be run in parallel. Moreover, half of clinic.py file writes are not atomic and so there is a race condition when "make regen-all" runs jobs in parallel using make -jN option (which can be passed in MAKEFLAGS environment variable). Fix clinic.py to make all file writes atomic: * Add write_file() function to ensure that all file writes are atomic: write into a temporary file and then use os.replace(). * Moreover, write_file() doesn't recreate or modify the file if the content does not change to avoid modifying the file modification file. * Update test_clinic to verify these assertions with a functional test. * Remove Clinic.force attribute which was no longer used, whereas Clinic.verify remains useful. (cherry picked from commit 8fba9523cf08029dc2e280d9f48fdd57ab178c9d) (cherry picked from commit c53c3f400050a7edc92ccb7285a6d7eeb4c37fd2) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271)Miss Islington (bot)2020-11-131-2/+2
| | | | | (cherry picked from commit 9b6934230c35e24d8582ea8c58456fa8eab72ae2) Co-authored-by: Steve Dower <steve.dower@python.org>
* Enable signing of nuget.org packages and update to supported timestamp ↵Miss Skeleton (bot)2020-11-031-3/+3
| | | | | | | server (GH-23132) (cherry picked from commit db6434c474f7389a98b8118ca87fca988416bf33) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-41744: Package python.props with correct name in NuGet package (GH-22154)Miss Islington (bot)2020-09-144-4/+7
| | | | | | | | | | | NuGet automatically includes .props file from the build directory in the target using the package, but only if the .props file has the correct name: it must be $(id).props Rename python.props correspondingly in all the nuspec variants. Also keep python.props as it were for backward compatibility. (cherry picked from commit 7c11a9accabe3720940f334eb1226bb7bb9179c7) Co-authored-by: Václav Slavík <vaclav@slavik.io>
* [3.8] bpo-41043: Escape literal part of the path for glob(). (GH-20994). ↵Serhiy Storchaka2020-07-022-2/+4
| | | | | (GH-21277) (cherry picked from commit 935586845815f5b4c7814794413f6a812d4bd45f)
* bpo-30008: Fix OpenSSL no-deprecated compilation (GH-20397)Miss Islington (bot)2020-06-011-0/+1
| | | | | | | | | | | | Fix :mod:`ssl`` code to be compatible with OpenSSL 1.1.x builds that use ``no-deprecated`` and ``--api=1.1.0``. Note: Tests assume full OpenSSL API and fail with limited API. Signed-off-by: Christian Heimes <christian@python.org> Co-authored-by: Mark Wright <gienah@gentoo.org> (cherry picked from commit a871f692b4a2e6c7d45579693e787edc0af1a02c) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-39631: Fix file association MIME type in the Windows installer (GH-20205)Miss Islington (bot)2020-05-191-2/+2
| | | | | | Use text/x-python instead of text/plain to avoid issues with tools assuming that "ShellExecute(script)" is a non-executable operation. (cherry picked from commit 8c862e51248c5ebfec787badec88eb58c9267e1e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-40457: Support OpenSSL without TLS 1.0/1.1 (GH-19862)Miss Islington (bot)2020-05-161-4/+5
| | | | | | | | | | | | | | OpenSSL can be build without support for TLS 1.0 and 1.1. The ssl module now correctly adheres to OPENSSL_NO_TLS1 and OPENSSL_NO_TLS1_1 flags. Also update multissltest to test with latest OpenSSL and LibreSSL releases. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran (cherry picked from commit 6e8cda91d92da72800d891b2fc2073ecbc134d98) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-40163: Fix multissltest download of old OpenSSL (GH-19329)Miss Islington (bot)2020-05-151-11/+41
| | | | | (cherry picked from commit 938717fd04c53c717895a756d5910e8c8813706c) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-40479: Test with latest OpenSSL versions (GH-20108)Miss Islington (bot)2020-05-151-3/+58
| | | | | | | | | | | | | | | | * 1.0.2u (EOL) * 1.1.0l (EOL) * 1.1.1g * 3.0.0-alpha2 (disabled for now) Build the FIPS provider and create a FIPS configuration file for OpenSSL 3.0.0. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran (cherry picked from commit 62d618c06bd395308b7163dbcb26c7e6d0922033) Co-authored-by: Christian Heimes <christian@python.org>
* [3.8] bpo-40179: Fix translation of #elif in Argument Clinic (GH-19364) ↵Serhiy Storchaka2020-04-181-21/+16
| | | | | | | (GH-19583) Co-authored-by: Ammar Askar <ammar@ammaraskar.com> (cherry picked from commit 12446e6a605f066d837d3a595d0a73e4f3b43b65)
* closes bpo-40266, closes bpo-39953: Use numeric lib code if compiling ↵Miss Islington (bot)2020-04-141-4/+8
| | | | | | | against old OpenSSL. (GH-19506) (cherry picked from commit 584a3cfda4d7a65ea0c1ea1ee541378bb7be46ca) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* closes bpo-39953: Generate ifdefs around library code definitions. (GH-19490)Miss Islington (bot)2020-04-121-0/+2
| | | | | (cherry picked from commit 909b87d2bb3d6330d39c48e43f7f50f4d086cc41) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* closes bpo-39953: Update OpenSSL error codes table. (GH-19082)Miss Islington (bot)2020-04-111-9/+16
| | | | | | I updated the error codes using the OpenSSL 1.1.1f source tree. (cherry picked from commit 3e0dd3730b5eff7e9ae6fb921aa77cd26efc9e3a) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-40019: Skip test_gdb if Python was optimized (GH-19081)Miss Islington (bot)2020-03-311-7/+9
| | | | | | | test_gdb now skips tests if it detects that gdb failed to read debug information because the Python binary is optimized. (cherry picked from commit 7bf069b6110278102c8f4719975a5eb5a5af25f9) Co-authored-by: Victor Stinner <vstinner@python.org>
* closes bpo-40125: Update multissltests.py to use OpenSSL 1.1.1f. (GH-19248)Miss Islington (bot)2020-03-311-1/+1
| | | | | (cherry picked from commit cd16661f903153ecac55f190ed682e576c5deb24) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-39930: Ensure vcruntime140.dll is included in all Windows packages ↵Miss Islington (bot)2020-03-112-1/+9
| | | | | | | | (GH-18918) Also adds GitHub CI test for Windows installer changes (cherry picked from commit 2dd41740c97bd77695ddcc590caa7f53e76dc35a) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-36184: Port python-gdb.py to FreeBSD (GH-18873)Miss Islington (bot)2020-03-091-1/+1
| | | | | | | | | python-gdb.py now checks for "take_gil" function name to check if a frame tries to acquire the GIL, instead of checking for "pthread_cond_timedwait" which is specific to Linux and can be a different condition than the GIL. (cherry picked from commit 6d0ee60740f2862a878f009671b1aaa75aeb0c2a) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.8] bpo-39889: Fix unparse.py for subscript. (GH-18824). (GH-18826)Serhiy Storchaka2020-03-071-2/+17
| | | | (cherry picked from commit c4928fc1a853f3f84e2b4ec1253d0349137745e5)
* bpo-39789: Update Windows release build machines to VS 2019 (GH-18695)Miss Islington (bot)2020-02-291-1/+1
| | | | | | Also fixes some potential Nuget build issues. (cherry picked from commit 03153dd1459fab94f294a118ed1525e34d58601a) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-38589: Fixes HTML Help shortcut when Windows is not installed to C drive ↵Miss Skeleton (bot)2019-10-281-1/+1
| | | | | | | (GH-16968) (cherry picked from commit 0ac6137dd3d1e2c8f9558153ad63021f57e05e73) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-38534: Replace wrong KB number references (GH-16955)Miss Skeleton (bot)2019-10-281-4/+4
| | | | | (cherry picked from commit 794616f837c254c68d8384ab48fb78123a3c8a8b) Co-authored-by: benedwards14 <53377856+benedwards14@users.noreply.github.com>
* bpo-38347: find pathfix for Python scripts whose name contain a '-' (GH-16536)Miss Islington (bot)2019-10-111-4/+1
| | | | | | pathfix.py: Assume all files that end on '.py' are Python scripts when working recursively. (cherry picked from commit 2b7dc40b2af6578181808ba73c1533fc114e55df) Co-authored-by: Ruediger Pluem <r.pluem@gmx.de>
* bpo-37064: Add -k and -a options to pathfix.py tool (GH-16387)Victor Stinner2019-09-251-5/+59
| | | | | | | | | | | | | | * bpo-37064: Add option -k to Tools/scripts/pathfix.py (GH-15548) Add flag -k to pathscript.py script: preserve shebang flags. (cherry picked from commit 50254ac4c179cb412e90682098c97db786143929) * bpo-37064: Add option -a to pathfix.py tool (GH-15717) Add option -a to Tools/Scripts/pathfix.py script: add flags. (cherry picked from commit 1dc1acbd73f05f14c974b7ce1041787d7abef31e)
* closes bpo-16637: libpython: construct integer object directly from gdbvalue ↵Miss Islington (bot)2019-09-241-1/+1
| | | | | | | | | | | (GH-15232) This fixes the exception '`ValueError: invalid literal for int() with base 10` if `str(gdbval)` returns a hexadecimal value (e.g. '0xa0'). This is the case if the output-radix is set to 16 in gdb. See https://sourceware.org/gdb/onlinedocs/gdb/Numbers.html for more information. (cherry picked from commit 6f53d34fb0f944a8c0ee530334c353559ac40f72) Co-authored-by: Marc Hartmayer <marc1006@users.noreply.github.com>
* [3.8] bpo-37206: Unrepresentable default values no longer represented as ↵Serhiy Storchaka2019-09-141-7/+6
| | | | | | | | | | None. (GH-13933) (GH-16141) In ArgumentClinic, value "NULL" should now be used only for unrepresentable default values (like in the optional third parameter of getattr). "None" should be used if None is accepted as argument and passing None has the same effect as not passing the argument at all. (cherry picked from commit 279f44678c8b84a183f9eeb85e0b086228154497) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-38117: Test with OpenSSL 1.1.1d (GH-15983)Miss Islington (bot)2019-09-111-5/+4
| | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 58ab13479d854491ac9207bacfae25e8b18b044a) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-37283: Ensure command-line and unattend.xml setting override previously ↵Miss Islington (bot)2019-09-092-8/+25
| | | | | | | detected states in Windows installer (GH-15759) (cherry picked from commit 3a0ddbcdfcbc0f4372905fabf81e093f1b043e99) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.8] bpo-37034: Display argument name on errors with keyword arguments with ↵Serhiy Storchaka2019-08-291-80/+101
| | | | | | | Argument Clinic. (GH-13593). (GH-15599) (cherry picked from commit 4901fe274bc82b95dc89bcb3de8802a3dfedab32) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
* bpo-36743: __get__ is sometimes called without the owner argument (GH-12992) ↵Miss Islington (bot)2019-08-291-1/+1
| | | | | | | (GH-15589) (cherry picked from commit 0dac68f1e593c11612ed54af9edb865d398f3b05) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-36511: Fix failures in Windows ARM32 buildbot (GH-15181)Miss Islington (bot)2019-08-291-0/+1
| | | | | (cherry picked from commit ed70a344b5fbddea85726ebc1964ee0cfdef9c40) Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
* [3.8] bpo-37942: Improve argument clinic float converter (GH-15470) (GH-15480)Raymond Hettinger2019-08-251-6/+18
| | | (cherry picked from commit aef9ad82f7f667cd001a7112d3bc636e918626f7)
* Fix publishing of Windows release (GH-15006)Miss Islington (bot)2019-07-291-0/+4
| | | | | (cherry picked from commit fe330fc4ad3b8218a84216a824af7d7007dcb85b) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.8] bpo-36974: separate vectorcall functions for each calling convention ↵Jeroen Demeyer2019-07-231-3/+2
| | | | (GH-13781) (#14782)
* Enable publish of Windows releases through Azure Pipelines (GH-14720)Miss Islington (bot)2019-07-131-1/+0
| | | | | (cherry picked from commit 994a3b88dca852696351358e2743313e546b5ecf) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37351: Removes libpython38.a from standard Windows distribution (GH-14276)Steve Dower2019-06-224-37/+1
|
* bpo-36511: Fix -u parameters for ARM32 tests (GH-14280)Steve Dower2019-06-211-1/+1
|
* bpo-36511: Improve ARM32 buildbot scripts (GH-14251)Steve Dower2019-06-203-10/+92
|
* Implement Windows release builds in Azure Pipelines (GH-14065)Steve Dower2019-06-1411-87/+66
| | | Includes backported fixes from GH-14091
* bpo-37181: Fix test_regrtest failures on Windows arm64 (GH-13872)Miss Islington (bot)2019-06-071-1/+1
| | | | | (cherry picked from commit e7e5039d6940e41839dcef0433262ff363408dad) Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
* bpo-37156: Fix libssl DLL tag in MSI sources (GH-13866)Miss Islington (bot)2019-06-061-2/+3
| | | | | (cherry picked from commit e0c0c7e8c9f8153a54b92e43aa3d09e69a9fd0c0) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-34271: Fix compatibility with 1.0.2 (GH-13728)Christian Heimes2019-06-031-1/+2
| | | | | | Fix various compatibility issues with LibreSSL and OpenSSL 1.0.2 introduced by bpo-34271. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-37081: Test with OpenSSL 1.1.1c (GH-13631)Christian Heimes2019-06-031-3/+3
| | | Signed-off-by: Christian Heimes <christian@python.org>
* Add description to the command line help of the argument clinic (GH-8518)Tim Hoffmann2019-06-021-1/+8
|