Steve Dower
afc5ab6cce
gh-135455: Fix version and architecture detection in PC/layout script. (GH-135461)
Tests / Windows MSI (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
mypy / Run mypy on Lib/_pyrepl (push) Waiting to run
mypy / Run mypy on Lib/test/libregrtest (push) Waiting to run
mypy / Run mypy on Lib/tomllib (push) Waiting to run
mypy / Run mypy on Tools/build (push) Waiting to run
mypy / Run mypy on Tools/cases_generator (push) Waiting to run
mypy / Run mypy on Tools/clinic (push) Waiting to run
mypy / Run mypy on Tools/jit (push) Waiting to run
mypy / Run mypy on Tools/peg_generator (push) Waiting to run
2025-06-13 16:04:43 +01:00
Serhiy Storchaka
bac3fcba5b
gh-108512: Add and use new replacements for PySys_GetObject() (GH-111035)
...
Add functions PySys_GetAttr(), PySys_GetAttrString(),
PySys_GetOptionalAttr() and PySys_GetOptionalAttrString().
2025-05-28 20:11:09 +03:00
Chris Eibl
e4fbfb1288
GH-130727: Avoid race condition in _wmimodule by copying shared data (GH-134313)
2025-05-20 22:21:25 +01:00
Steve Dower
986c367028
gh-133779: Revert Windows generation of pyconfig.h and go back to a static header. (GH-133966)
...
Extension builders must specify Py_GIL_DISABLED if they want to link to the free-threaded builds.
This was usually the case already, but this change guarantees it in all circumstances.
2025-05-19 11:35:22 +01:00
AN Long
7a504b3d5d
gh-130000: Release the GIL in winreg when doing Windows API calls (GH-130001)
2025-05-16 00:00:06 +01:00
Max Bachmann
74c4e35ff1
Let PyUnicode_FromWideChar calculate the input length (GH-134045)
2025-05-15 11:56:50 +00:00
Xuehai Pan
f0f93ba5fa
gh-131942: Use the Python-specific Py_DEBUG
macro rather than _DEBUG
in Windows-related C code (GH-131944)
2025-05-08 15:01:25 +00:00
Zachary Ware
74e2acddf6
Test fixes for 3.15 (GH-133599)
...
Followup to 942673ed19
(GH-133588)
* Update configure for Python 3.15
* Update magic number for 3.15
* Remove deprecated 'check_home' argument from sysconfig.is_python_build
* Add warningignore entries for Modules/_sqlite/clinic/connection.c.h
* Work around c-analyzer complaints about _testclinic deprecation tests
---------
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-05-07 14:50:39 -05:00
Hugo van Kemenade
9748fb3867
Python 3.15.0a0
2025-05-07 18:47:42 +03:00
Steve Dower
ed039b801d
gh-132930: Include IDLE path in registry for PyManager packages (GH-133246)
2025-05-01 14:41:17 +01:00
Steve Dower
ae37f3d3c0
gh-132930: Fixes PEP 514 registration for PyManager packages on x64 (GH-133154)
2025-04-29 16:20:41 +01:00
Adam Turner
208d06fd51
gh-132930: Fix use of ALIAS_WPREFIX in pymanager builds (GH-133120)
2025-04-29 08:53:43 +00:00
Adam Turner
4d54e9cdf6
GH-132930: Display 'free-threaded' in pymanager builds (GH-133119)
2025-04-29 09:28:04 +01:00
Steve Dower
3940e1f873
gh-132930: Improve the names of IDLE and PyDoc shortcuts (GH-133091)
2025-04-28 19:09:20 +01:00
Steve Dower
e20ca6d1b0
gh-132930: Implement PEP 773 (GH-132931)
...
This change to the core CPython repo:
* Adds PyManager support to PC/layout
* Adds a warning message to the legacy py.exe if subcommands are invoked
* Add deprecation message to traditional installer
* Updates using/windows docs
2025-04-28 13:57:47 +01:00
Bénédikt Tran
96bc1721d2
gh-111178: fix incorrect function signatures for Windows builds ( #133072 )
2025-04-28 13:05:39 +02:00
Steve Dower
09b624b80f
gh-132639: Adds PyLong_AsNativeBytes, PyLong_FromNativeBytes and PyLong_FromUnsignedNativeBytes to the limited API (GH-132640)
2025-04-21 15:59:03 +01:00
Steve Dower
b87189deae
gh-132649: Allow passing --include-tcltk to PC\layout on Windows ARM64 (GH-132650)
2025-04-17 20:14:00 +01:00
Adam Turner
231a50fa9a
gh-109599: Expose CapsuleType
via the _types
module ( #131969 )
2025-04-04 23:37:41 +01:00
Bénédikt Tran
0a97427ee5
gh-99108: Implement HACL* HMAC ( #130157 )
...
A new extension module, `_hmac`, now exposes the HACL* HMAC (formally verified) implementation.
The HACL* implementation is used as a fallback implementation when the OpenSSL implementation of HMAC
is not available or disabled. For now, only named hash algorithms are recognized and SIMD support provided
by HACL* for the BLAKE2 hash functions is not yet used.
2025-04-04 19:04:00 +02:00
Chris Eibl
7cbcb6efd9
GH-131296: Fix parenthesis warnings on Windows-specific code (GH-131905)
2025-03-31 15:54:30 +01:00
Michael Droettboom
8614f86b71
gh-131525: Cache the result of tuple_hash ( #131529 )
...
* gh-131525: Cache the result of tuple_hash
* Fix debug builds
* Add blurb
* Fix formatting
* Pre-compute empty tuple singleton
* Mostly set the cache within tuple_alloc
* Fixes for TSAN
* Pre-compute empty tuple singleton
* Fix for 32-bit platforms
* Assert that op != NULL in _PyTuple_RESET_HASH_CACHE
* Use FT_ATOMIC_STORE_SSIZE_RELAXED macro
* Update Include/internal/pycore_tuple.h
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Fix alignment
* atomic load
* Update Objects/tupleobject.c
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
2025-03-27 09:57:06 -04:00
Victor Stinner
9ef9d687ff
gh-131712: Build _suggestions extension on Windows ( #131759 )
...
Add a test checking that the '_suggestions' extension is available.
2025-03-27 09:53:39 +01:00
Chris Eibl
a04c0a9658
GH-131296: Remove unused variable from _wmimodule.cpp (GH-131587)
2025-03-24 14:57:07 +00:00
AN Long
00a9844888
gh-131453: Add additional constants to winsound module (GH-131454)
2025-03-20 16:35:52 +00:00
Victor Stinner
486d537065
Fix Windows build warnings ( #131487 )
...
Fix the following warnings:
* Modules\_io\fileio.c(1296,13): unused variable 'self'
* Modules\_io\winconsoleio.c(334,9): unused variable 'fd_is_own'
* Modules\faulthandler.c(409,11): unused variable 'flags'
* Modules\posixmodule.c(5699,9): unused variable 'pathError'
* PC\winreg.c(2077,5): suggest braces around initialization of
subobject
* PC\winreg.c(34,13): unused variable 'errNotAHandle'
* Python\fileutils.c(132,12): result of comparison of constant
1114111 with expression of type 'wchar_t' (aka 'unsigned short') is
always false
* Python\fileutils.c(58,21): unused variable 'INCOMPLETE_CHARACTER'
* Python\sysmodule.c(2534,21): unused variable 'perf_map_state'
2025-03-20 12:03:20 +01:00
Steve Dower
63a638c43f
gh-91349: Replace zlib with zlib-ng in Windows build (GH-131438)
2025-03-19 19:03:25 +00:00
Chris Eibl
ef4fe70785
GH-131291: Suppress clang-specific warning in python_uwp.cpp (GH-131292)
2025-03-17 16:22:25 +00:00
AN Long
bf4c1bf344
gh-131327: Document winsound.SND_APPLICATION ( #131328 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-03-16 16:27:24 +01:00
Chris Eibl
e82c2ca2a5
GH-131296: fix clang-cl warnings on Windows in pyshellext.cpp (GH-131300)
...
fix unused warnings in pyshellext.cpp
2025-03-15 18:55:00 +00:00
Chris Eibl
36ef3bfe39
gh-131020: py.exe launcher does not correctly detect a BOM when searching for the shebang (GH-131021)
2025-03-10 17:59:23 +00:00
Jean-Christophe Fillion-Robin
c3487c941d
gh-82909: Update PC/pyconfig.h to allow disabling pragma based auto-linking (GH-19740)
...
Define Py_NO_LINK_LIB to build extension disabling pragma based auto-linking. This is relevant when using build-system generator (e.g CMake) where the linking is explicitly handled
2025-03-10 17:40:17 +00:00
Erlend E. Aasland
537296cdcd
gh-111178: Generate correct signature for most self converters ( #128447 )
2025-01-20 12:40:18 +01:00
Victor Stinner
81159fce36
gh-59705: Make PYTHREAD_NAME_MAXLEN macro private ( #128945 )
...
Rename PYTHREAD_NAME_MAXLEN to _PYTHREAD_NAME_MAXLEN.
2025-01-18 15:10:29 +00:00
Victor Stinner
d7f703d54d
gh-59705: Implement _thread.set_name() on Windows ( #128675 )
...
Implement set_name() with SetThreadDescription() and _get_name() with
GetThreadDescription(). If SetThreadDescription() or
GetThreadDescription() is not available in kernelbase.dll, delete the
method when the _thread module is imported.
Truncate the thread name to 32766 characters.
Co-authored-by: Eryk Sun <eryksun@gmail.com>
2025-01-17 14:55:43 +01:00
Petr Viktorin
1439b81928
gh-128629: Add Py_PACK_VERSION and Py_PACK_FULL_VERSION (GH-128630)
2025-01-09 11:10:28 +01:00
AraHaan
bd3e200cce
Add Windows version comments to the python manifest. (GH-127439)
2024-12-24 13:01:21 +00:00
Hugo van Kemenade
91f4908798
gh-126133: Only use start year in PSF copyright, remove end years ( #126236 )
2024-11-12 15:59:19 +02:00
Serhiy Storchaka
061e50f196
gh-122943: Add the varpos parameter in _PyArg_UnpackKeywords (GH-126564)
...
Remove _PyArg_UnpackKeywordsWithVararg.
Add comments for integer arguments of _PyArg_UnpackKeywords.
2024-11-08 14:23:50 +02:00
Steve Dower
f51fd84034
gh-126074: Removes unnecessary DLLs from embeddable package (GH-126143)
2024-11-05 20:43:52 +00:00
Victor Stinner
0b67ce930a
gh-126433: Fix compiler warnings on 32-bit Windows ( #126444 )
2024-11-05 16:05:13 +01:00
Steve Dower
60c415bd53
gh-125315: Avoid crashing in _wmimodule due to slow WMI calls on some Windows machines (GH-126141)
2024-10-30 19:59:51 +00:00
Victor Stinner
db96327203
gh-121654: Add PyType_Freeze() function ( #122457 )
...
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-10-25 11:12:48 +02:00
Steve Dower
8e7b2a1161
gh-125550: Enable py.exe to detect Store installs of 3.14 (GH-125551)
2024-10-16 23:05:20 +01:00
Victor Stinner
a7f0727ca5
gh-124502: Add PyUnicode_Equal() function ( #124504 )
2024-10-07 21:24:53 +00:00
Steve Dower
fac5e7aa17
gh-124487: Require at least Windows 10 SDK and update install check (GH-124672)
2024-09-30 18:50:46 +01:00
Victor Stinner
9d344fafc4
gh-124127: Make Py_REFCNT() opaque in limited C API 3.14 ( #124128 )
2024-09-24 08:42:58 +02:00
Donghee Na
ad7c778546
gh-123990: Good bye WITH_FREELISTS macro (gh-124358)
2024-09-24 01:28:59 +00:00
neonene
646f16bdee
gh-124153: Implement PyType_GetBaseByToken()
and Py_tp_token
slot (GH-124163)
2024-09-18 09:18:19 +02:00
Victor Stinner
4c6dca8292
gh-120389: Add PyLong_FromInt64() and PyLong_AsInt64() ( #120390 )
...
Add new functions to convert C <stdint.h> numbers from/to Python int:
* PyLong_FromInt32()
* PyLong_FromUInt32()
* PyLong_FromInt64()
* PyLong_FromUInt64()
* PyLong_AsInt32()
* PyLong_AsUInt32()
* PyLong_AsInt64()
* PyLong_AsUInt64()
2024-08-28 10:16:13 +00:00