Skip to content

Commit

Permalink
Update 1 package
Browse files Browse the repository at this point in the history
python (3.12.4-6 -> 3.12.5-1)

Signed-off-by: Git for Windows Build Agent <ci@git-for-windows.build>
  • Loading branch information
Git for Windows Build Agent committed Aug 11, 2024
1 parent aba4b1c commit 0411492
Show file tree
Hide file tree
Showing 262 changed files with 8,396 additions and 4,977 deletions.
Binary file modified usr/bin/msys-python3.12.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion usr/bin/python-config
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ SYSLIBS="$LIBM $LIBC"
ABIFLAGS=""
LIBS="-lpython3.12 -lintl -ldl $SYSLIBS"
LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lintl -ldl $SYSLIBS"
BASECFLAGS=" -fno-strict-overflow"
BASECFLAGS=" -fno-strict-overflow -Wsign-compare"
LDLIBRARY="libpython${LDVERSION}.dll.a"
OPT="-DNDEBUG -g -O3 -Wall"
PY_ENABLE_SHARED="1"
Expand Down
Binary file modified usr/bin/python.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion usr/bin/python3-config
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ SYSLIBS="$LIBM $LIBC"
ABIFLAGS=""
LIBS="-lpython3.12 -lintl -ldl $SYSLIBS"
LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lintl -ldl $SYSLIBS"
BASECFLAGS=" -fno-strict-overflow"
BASECFLAGS=" -fno-strict-overflow -Wsign-compare"
LDLIBRARY="libpython${LDVERSION}.dll.a"
OPT="-DNDEBUG -g -O3 -Wall"
PY_ENABLE_SHARED="1"
Expand Down
2 changes: 1 addition & 1 deletion usr/bin/python3.12-config
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ SYSLIBS="$LIBM $LIBC"
ABIFLAGS=""
LIBS="-lpython3.12 -lintl -ldl $SYSLIBS"
LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lintl -ldl $SYSLIBS"
BASECFLAGS=" -fno-strict-overflow"
BASECFLAGS=" -fno-strict-overflow -Wsign-compare"
LDLIBRARY="libpython${LDVERSION}.dll.a"
OPT="-DNDEBUG -g -O3 -Wall"
PY_ENABLE_SHARED="1"
Expand Down
Binary file modified usr/bin/python3.12.exe
Binary file not shown.
Binary file modified usr/bin/python3.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion usr/include/python3.12/floatobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* Float object interface */

/*
PyFloatObject represents a (double precision) floating point number.
PyFloatObject represents a (double precision) floating-point number.
*/

#ifndef Py_FLOATOBJECT_H
Expand Down
10 changes: 3 additions & 7 deletions usr/include/python3.12/internal/pycore_dtoa.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ extern "C" {
#include "pycore_pymath.h" // _PY_SHORT_FLOAT_REPR


#if _PY_SHORT_FLOAT_REPR == 1

typedef uint32_t ULong;

struct
Expand All @@ -22,15 +20,15 @@ Bigint {
ULong x[1];
};

#ifdef Py_USING_MEMORY_DEBUGGER
#if defined(Py_USING_MEMORY_DEBUGGER) || _PY_SHORT_FLOAT_REPR == 0

struct _dtoa_state {
int _not_used;
};
#define _dtoa_interp_state_INIT(INTERP) \
#define _dtoa_state_INIT(INTERP) \
{0}

#else // !Py_USING_MEMORY_DEBUGGER
#else // !Py_USING_MEMORY_DEBUGGER && _PY_SHORT_FLOAT_REPR != 0

/* The size of the Bigint freelist */
#define Bigint_Kmax 7
Expand Down Expand Up @@ -65,8 +63,6 @@ PyAPI_FUNC(char *) _Py_dg_dtoa(double d, int mode, int ndigits,
int *decpt, int *sign, char **rve);
PyAPI_FUNC(void) _Py_dg_freedtoa(char *s);

#endif // _PY_SHORT_FLOAT_REPR == 1

#ifdef __cplusplus
}
#endif
Expand Down
5 changes: 1 addition & 4 deletions usr/include/python3.12/internal/pycore_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ _PyFrame_MakeAndSetFrameObject(_PyInterpreterFrame *frame);

/* Gets the PyFrameObject for this frame, lazily
* creating it if necessary.
* Returns a borrowed referennce */
* Returns a borrowed reference */
static inline PyFrameObject *
_PyFrame_GetFrameObject(_PyInterpreterFrame *frame)
{
Expand All @@ -213,9 +213,6 @@ _PyFrame_GetFrameObject(_PyInterpreterFrame *frame)
return _PyFrame_MakeAndSetFrameObject(frame);
}

void
_PyFrame_ClearLocals(_PyInterpreterFrame *frame);

/* Clears all references in the frame.
* If take is non-zero, then the _PyInterpreterFrame frame
* may be transferred to the frame object it references
Expand Down
4 changes: 2 additions & 2 deletions usr/include/python3.12/patchlevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
/*--start constants--*/
#define PY_MAJOR_VERSION 3
#define PY_MINOR_VERSION 12
#define PY_MICRO_VERSION 4
#define PY_MICRO_VERSION 5
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
#define PY_RELEASE_SERIAL 0

/* Version as a string */
#define PY_VERSION "3.12.4"
#define PY_VERSION "3.12.5"
/*--end constants--*/

/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
Expand Down
8 changes: 4 additions & 4 deletions usr/include/python3.12/pymacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
// MSVC makes static_assert a keyword in C11-17, contrary to the standards.
//
// In C++11 and C2x, static_assert is a keyword, redefining is undefined
// behaviour. So only define if building as C (if __STDC_VERSION__ is defined),
// not C++, and only for C11-17.
// behaviour. So only define if building as C, not C++ (if __cplusplus is
// not defined), and only for C11-17.
#if !defined(static_assert) && (defined(__GNUC__) || defined(__clang__)) \
&& defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
&& __STDC_VERSION__ <= 201710L
&& !defined(__cplusplus) && defined(__STDC_VERSION__) \
&& __STDC_VERSION__ >= 201112L && __STDC_VERSION__ <= 201710L
# define static_assert _Static_assert
#endif

Expand Down
Binary file modified usr/lib/libpython3.12.dll.a
Binary file not shown.
2 changes: 2 additions & 0 deletions usr/lib/python3.12/_pydatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,8 @@ def __new__(cls, year, month=None, day=None):
@classmethod
def fromtimestamp(cls, t):
"Construct a date from a POSIX timestamp (like time.time())."
if t is None:
raise TypeError("'NoneType' object cannot be interpreted as an integer")
y, m, d, hh, mm, ss, weekday, jday, dst = _time.localtime(t)
return cls(y, m, d)

Expand Down
2 changes: 1 addition & 1 deletion usr/lib/python3.12/_pydecimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def sin(x):
# numbers.py for more detail.

class Decimal(object):
"""Floating point class for decimal arithmetic."""
"""Floating-point class for decimal arithmetic."""

__slots__ = ('_exp','_int','_sign', '_is_special')
# Generally, the value of the Decimal instance is given by
Expand Down
82 changes: 50 additions & 32 deletions usr/lib/python3.12/_sysconfigdata__cygwin_x86_64-cygwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'ANDROID_API_LEVEL': 0,
'AR': 'ar',
'ARFLAGS': 'rcs',
'BASECFLAGS': '-fno-strict-overflow',
'BASECFLAGS': '-fno-strict-overflow -Wsign-compare',
'BASECPPFLAGS': '',
'BASEMODLIBS': '',
'BINDIR': '/usr/bin',
Expand All @@ -25,9 +25,9 @@
'BYTESTR_DEPS': '\\',
'CC': 'gcc',
'CCSHARED': '',
'CFLAGS': '-fno-strict-overflow -DNDEBUG -g -O3 -Wall -march=nocona -msahf '
'-mtune=generic -O2 -pipe -march=nocona -msahf -mtune=generic -O2 '
'-pipe',
'CFLAGS': '-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall '
'-march=nocona -msahf -mtune=generic -O2 -pipe -march=nocona -msahf '
'-mtune=generic -O2 -pipe',
'CFLAGSFORSHARED': '',
'CFLAGS_ALIASING': '',
'CFLAGS_NODIST': '',
Expand All @@ -37,7 +37,10 @@
'CONFIGFILES': 'configure configure.ac acconfig.h pyconfig.h.in '
'Makefile.pre.in',
'CONFIGURE_CFLAGS': '-march=nocona -msahf -mtune=generic -O2 -pipe',
'CONFIGURE_CFLAGS_NODIST': '-std=c11 -Werror=implicit-function-declaration '
'CONFIGURE_CFLAGS_NODIST': '-std=c11 -Wextra -Wno-unused-parameter '
'-Wno-missing-field-initializers '
'-Wstrict-prototypes '
'-Werror=implicit-function-declaration '
'-fvisibility=hidden',
'CONFIGURE_CPPFLAGS': '',
'CONFIGURE_LDFLAGS': '',
Expand All @@ -56,9 +59,9 @@
'CONFINCLUDEDIR': '/usr/include',
'CONFINCLUDEPY': '/usr/include/python3.12',
'COREPYTHONPATH': '',
'COVERAGE_INFO': '/c/S/B/src/Python-3.12.4/coverage.info',
'COVERAGE_INFO': '/c/S/B/src/Python-3.12.5/coverage.info',
'COVERAGE_LCOV_OPTIONS': '--rc lcov_branch_coverage=1',
'COVERAGE_REPORT': '/c/S/B/src/Python-3.12.4/lcov-report',
'COVERAGE_REPORT': '/c/S/B/src/Python-3.12.5/lcov-report',
'COVERAGE_REPORT_OPTIONS': '--rc lcov_branch_coverage=1 --branch-coverage '
'--title "CPython 3.12 LCOV report [commit $(shell '
')]"',
Expand Down Expand Up @@ -628,17 +631,21 @@
'LIBDEST': '/usr/lib/python3.12',
'LIBDIR': '/usr/lib',
'LIBEXPAT_A': 'Modules/expat/libexpat.a',
'LIBEXPAT_CFLAGS': '-fno-strict-overflow -DNDEBUG -g -O3 -Wall -march=nocona '
'-msahf -mtune=generic -O2 -pipe -march=nocona -msahf '
'-mtune=generic -O2 -pipe -std=c11 '
'LIBEXPAT_CFLAGS': '-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall '
'-march=nocona -msahf -mtune=generic -O2 -pipe '
'-march=nocona -msahf -mtune=generic -O2 -pipe -std=c11 '
'-Wextra -Wno-unused-parameter '
'-Wno-missing-field-initializers -Wstrict-prototypes '
'-Werror=implicit-function-declaration '
'-fvisibility=hidden -I./Include/internal -I. -I./Include',
'LIBEXPAT_HEADERS': '\\',
'LIBEXPAT_OBJS': '\\',
'LIBHACL_CFLAGS': '-I./Modules/_hacl/include -D_BSD_SOURCE -D_DEFAULT_SOURCE '
'-fno-strict-overflow -DNDEBUG -g -O3 -Wall -march=nocona '
'-msahf -mtune=generic -O2 -pipe -march=nocona -msahf '
'-mtune=generic -O2 -pipe -std=c11 '
'-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall '
'-march=nocona -msahf -mtune=generic -O2 -pipe '
'-march=nocona -msahf -mtune=generic -O2 -pipe -std=c11 '
'-Wextra -Wno-unused-parameter '
'-Wno-missing-field-initializers -Wstrict-prototypes '
'-Werror=implicit-function-declaration -fvisibility=hidden '
'-I./Include/internal -I. -I./Include',
'LIBHACL_HEADERS': '\\',
Expand All @@ -648,9 +655,11 @@
'LIBM': '',
'LIBMPDEC_A': 'Modules/_decimal/libmpdec/libmpdec.a',
'LIBMPDEC_CFLAGS': '-DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1 '
'-fno-strict-overflow -DNDEBUG -g -O3 -Wall -march=nocona '
'-msahf -mtune=generic -O2 -pipe -march=nocona -msahf '
'-mtune=generic -O2 -pipe -std=c11 '
'-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall '
'-march=nocona -msahf -mtune=generic -O2 -pipe '
'-march=nocona -msahf -mtune=generic -O2 -pipe -std=c11 '
'-Wextra -Wno-unused-parameter '
'-Wno-missing-field-initializers -Wstrict-prototypes '
'-Werror=implicit-function-declaration '
'-fvisibility=hidden -I./Include/internal -I. -I./Include',
'LIBMPDEC_HEADERS': '\\',
Expand Down Expand Up @@ -1009,21 +1018,28 @@
'PYTHON_HEADERS': '\\',
'PYTHON_OBJS': '\\',
'PY_BUILTIN_HASHLIB_HASHES': '"md5,sha1,sha2,sha3,blake2"',
'PY_BUILTIN_MODULE_CFLAGS': '-fno-strict-overflow -DNDEBUG -g -O3 -Wall '
'-march=nocona -msahf -mtune=generic -O2 -pipe '
'-march=nocona -msahf -mtune=generic -O2 -pipe '
'-std=c11 -Werror=implicit-function-declaration '
'PY_BUILTIN_MODULE_CFLAGS': '-fno-strict-overflow -Wsign-compare -DNDEBUG -g '
'-O3 -Wall -march=nocona -msahf -mtune=generic '
'-O2 -pipe -march=nocona -msahf -mtune=generic '
'-O2 -pipe -std=c11 -Wextra -Wno-unused-parameter '
'-Wno-missing-field-initializers '
'-Wstrict-prototypes '
'-Werror=implicit-function-declaration '
'-fvisibility=hidden -I./Include/internal -I. '
'-I./Include -DPy_BUILD_CORE_BUILTIN',
'PY_CFLAGS': '-fno-strict-overflow -DNDEBUG -g -O3 -Wall -march=nocona -msahf '
'-mtune=generic -O2 -pipe -march=nocona -msahf -mtune=generic '
'-O2 -pipe',
'PY_CFLAGS_NODIST': '-std=c11 -Werror=implicit-function-declaration '
'PY_CFLAGS': '-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall '
'-march=nocona -msahf -mtune=generic -O2 -pipe -march=nocona '
'-msahf -mtune=generic -O2 -pipe',
'PY_CFLAGS_NODIST': '-std=c11 -Wextra -Wno-unused-parameter '
'-Wno-missing-field-initializers -Wstrict-prototypes '
'-Werror=implicit-function-declaration '
'-fvisibility=hidden -I./Include/internal',
'PY_COERCE_C_LOCALE': 1,
'PY_CORE_CFLAGS': '-fno-strict-overflow -DNDEBUG -g -O3 -Wall -march=nocona '
'-msahf -mtune=generic -O2 -pipe -march=nocona -msahf '
'-mtune=generic -O2 -pipe -std=c11 '
'PY_CORE_CFLAGS': '-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall '
'-march=nocona -msahf -mtune=generic -O2 -pipe '
'-march=nocona -msahf -mtune=generic -O2 -pipe -std=c11 '
'-Wextra -Wno-unused-parameter '
'-Wno-missing-field-initializers -Wstrict-prototypes '
'-Werror=implicit-function-declaration -fvisibility=hidden '
'-I./Include/internal -I. -I./Include -DPy_BUILD_CORE',
'PY_CORE_LDFLAGS': '',
Expand All @@ -1037,10 +1053,12 @@
'PY_SQLITE_HAVE_SERIALIZE': 1,
'PY_SSL_DEFAULT_CIPHERS': 1,
'PY_SSL_DEFAULT_CIPHER_STRING': 0,
'PY_STDMODULE_CFLAGS': '-fno-strict-overflow -DNDEBUG -g -O3 -Wall '
'PY_STDMODULE_CFLAGS': '-fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 '
'-Wall -march=nocona -msahf -mtune=generic -O2 -pipe '
'-march=nocona -msahf -mtune=generic -O2 -pipe '
'-march=nocona -msahf -mtune=generic -O2 -pipe '
'-std=c11 -Werror=implicit-function-declaration '
'-std=c11 -Wextra -Wno-unused-parameter '
'-Wno-missing-field-initializers -Wstrict-prototypes '
'-Werror=implicit-function-declaration '
'-fvisibility=hidden -I./Include/internal -I. '
'-I./Include',
'PY_SUPPORT_TIER': 0,
Expand Down Expand Up @@ -1205,8 +1223,8 @@
'WITH_VALGRIND': 0,
'X87_DOUBLE_ROUNDING': 0,
'XMLLIBSUBDIRS': 'xml xml/dom xml/etree xml/parsers xml/sax',
'abs_builddir': '/c/S/B/src/Python-3.12.4',
'abs_srcdir': '/c/S/B/src/Python-3.12.4',
'abs_builddir': '/c/S/B/src/Python-3.12.5',
'abs_srcdir': '/c/S/B/src/Python-3.12.5',
'datarootdir': '/usr/share',
'exec_prefix': '/usr',
'prefix': '/usr',
Expand Down
26 changes: 16 additions & 10 deletions usr/lib/python3.12/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1843,7 +1843,7 @@ def _get_kwargs(self):
# ==================================
def add_subparsers(self, **kwargs):
if self._subparsers is not None:
self.error(_('cannot have multiple subparser arguments'))
raise ArgumentError(None, _('cannot have multiple subparser arguments'))

# add the parser class to the arguments if it's not present
kwargs.setdefault('parser_class', type(self))
Expand Down Expand Up @@ -1895,8 +1895,11 @@ def _get_positional_actions(self):
def parse_args(self, args=None, namespace=None):
args, argv = self.parse_known_args(args, namespace)
if argv:
msg = _('unrecognized arguments: %s')
self.error(msg % ' '.join(argv))
msg = _('unrecognized arguments: %s') % ' '.join(argv)
if self.exit_on_error:
self.error(msg)
else:
raise ArgumentError(None, msg)
return args

def parse_known_args(self, args=None, namespace=None):
Expand Down Expand Up @@ -2175,7 +2178,7 @@ def consume_positionals(start_index):
self._get_value(action, action.default))

if required_actions:
self.error(_('the following arguments are required: %s') %
raise ArgumentError(None, _('the following arguments are required: %s') %
', '.join(required_actions))

# make sure all required groups had one option present
Expand All @@ -2191,7 +2194,7 @@ def consume_positionals(start_index):
for action in group._group_actions
if action.help is not SUPPRESS]
msg = _('one of the arguments %s is required')
self.error(msg % ' '.join(names))
raise ArgumentError(None, msg % ' '.join(names))

# return the updated namespace and the extra arguments
return namespace, extras
Expand All @@ -2218,7 +2221,7 @@ def _read_args_from_files(self, arg_strings):
arg_strings = self._read_args_from_files(arg_strings)
new_arg_strings.extend(arg_strings)
except OSError as err:
self.error(str(err))
raise ArgumentError(None, str(err))

# return the modified argument list
return new_arg_strings
Expand Down Expand Up @@ -2298,7 +2301,7 @@ def _parse_optional(self, arg_string):
for action, option_string, sep, explicit_arg in option_tuples])
args = {'option': arg_string, 'matches': options}
msg = _('ambiguous option: %(option)s could match %(matches)s')
self.error(msg % args)
raise ArgumentError(None, msg % args)

# if exactly one action matched, this segmentation is good,
# so return the parsed action
Expand Down Expand Up @@ -2358,7 +2361,7 @@ def _get_option_tuples(self, option_string):

# shouldn't ever get here
else:
self.error(_('unexpected option string: %s') % option_string)
raise ArgumentError(None, _('unexpected option string: %s') % option_string)

# return the collected option tuples
return result
Expand Down Expand Up @@ -2415,8 +2418,11 @@ def _get_nargs_pattern(self, action):
def parse_intermixed_args(self, args=None, namespace=None):
args, argv = self.parse_known_intermixed_args(args, namespace)
if argv:
msg = _('unrecognized arguments: %s')
self.error(msg % ' '.join(argv))
msg = _('unrecognized arguments: %s') % ' '.join(argv)
if self.exit_on_error:
self.error(msg)
else:
raise ArgumentError(None, msg)
return args

def parse_known_intermixed_args(self, args=None, namespace=None):
Expand Down
2 changes: 2 additions & 0 deletions usr/lib/python3.12/asyncio/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def run(self):


if __name__ == '__main__':
sys.audit("cpython.run_stdin")

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)

Expand Down
Loading

0 comments on commit 0411492

Please sign in to comment.