| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,21 +46,9 @@ jobs: | |||
| 46 | 46 | instance: macos-15 | |
| 47 | 47 | suffix: -macos-aarch64-none | |
| 48 | 48 | ||
| 49 | - python: ["3.10", "3.11", "3.12", "3.13", "3.14"] | ||
| 49 | + python: ["3.11", "3.12", "3.13", "3.14", "3.15"] | ||
| 50 | 50 | ||
| 51 | 51 | exclude: | |
| 52 | - # Fails with initfs_encoding error | ||
| 53 | - - os: | ||
| 54 | - category: windows | ||
| 55 | - platform: x86 | ||
| 56 | - python: "3.10" | ||
| 57 | - | ||
| 58 | - # Fails to find pytest | ||
| 59 | - - os: | ||
| 60 | - category: windows | ||
| 61 | - platform: x64 | ||
| 62 | - python: '3.10' | ||
| 63 | - | ||
| 64 | 52 | # fails to call mono methods | |
| 65 | 53 | - os: | |
| 66 | 54 | category: windows | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ dependencies = [ | |||
| 13 | 13 | "clr_loader>=0.3.1,<0.4.0" | |
| 14 | 14 | ] | |
| 15 | 15 | ||
| 16 | - requires-python = ">=3.10, <3.15" | ||
| 16 | + requires-python = ">=3.11, <3.16" | ||
| 17 | 17 | ||
| 18 | 18 | classifiers = [ | |
| 19 | 19 | "Development Status :: 5 - Production/Stable", | |
@@ -25,6 +25,7 @@ classifiers = [ | |||
| 25 | 25 | "Programming Language :: Python :: 3.12", | |
| 26 | 26 | "Programming Language :: Python :: 3.13", | |
| 27 | 27 | "Programming Language :: Python :: 3.14", | |
| 28 | + "Programming Language :: Python :: 3.15", | ||
| 28 | 29 | "Operating System :: Microsoft :: Windows", | |
| 29 | 30 | "Operating System :: POSIX :: Linux", | |
| 30 | 31 | "Operating System :: MacOS :: MacOS X", | |
@@ -36,8 +37,7 @@ dynamic = ["version"] | |||
| 36 | 37 | dev = [ | |
| 37 | 38 | "pytest >= 6", | |
| 38 | 39 | "find_libpython >= 0.3", | |
| 39 | - "numpy >=2 ; python_version >= '3.10'", | ||
| 40 | - "numpy <2 ; python_version < '3.10'", | ||
| 40 | + "numpy >=2", | ||
| 41 | 41 | ] | |
| 42 | 42 | doc = [ | |
| 43 | 43 | "sphinx", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | // Auto-generated by geninterop.py. | |
| 3 | 3 | // DO NOT MODIFY BY HAND. | |
| 4 | 4 | ||
| 5 | - // Python 3.10: ABI flags: '' | ||
| 5 | + // Python 3.15: ABI flags: '' | ||
| 6 | 6 | ||
| 7 | 7 | // ReSharper disable InconsistentNaming | |
| 8 | 8 | // ReSharper disable IdentifierTypo | |
@@ -20,11 +20,11 @@ namespace Python.Runtime | |||
| 20 | 20 | Scope = "type")] | |
| 21 | 21 | ||
| 22 | 22 | [StructLayout(LayoutKind.Sequential)] | |
| 23 | - internal class TypeOffset310 : GeneratedTypeOffsets, ITypeOffsets | ||
| 23 | + internal class TypeOffset315 : GeneratedTypeOffsets, ITypeOffsets | ||
| 24 | 24 | { | |
| 25 | - public TypeOffset310() { } | ||
| 25 | + public TypeOffset315() { } | ||
| 26 | 26 | // Auto-generated from PyHeapTypeObject in Python.h | |
| 27 | - public int ob_refcnt { get; private set; } | ||
| 27 | + public int ob_refcnt_full { get; private set; } | ||
| 28 | 28 | public int ob_type { get; private set; } | |
| 29 | 29 | public int ob_size { get; private set; } | |
| 30 | 30 | public int tp_name { get; private set; } | |
@@ -75,6 +75,15 @@ public TypeOffset310() { } | |||
| 75 | 75 | public int tp_version_tag { get; private set; } | |
| 76 | 76 | public int tp_finalize { get; private set; } | |
| 77 | 77 | public int tp_vectorcall { get; private set; } | |
| 78 | + // This is an error in our generator: | ||
| 79 | + // | ||
| 80 | + // The fields below are actually not pointers (like we incorrectly | ||
| 81 | + // assume for all other fields) but instead a char (1 byte) and a short | ||
| 82 | + // (2 bytes). By dropping one of the fields, we still get the correct | ||
| 83 | + // overall size of the struct. | ||
| 84 | + public int tp_watched { get; private set; } | ||
| 85 | + // public int tp_versions_used { get; private set; } | ||
| 86 | + public int tp_iteritem { get; private set; } | ||
| 78 | 87 | public int am_await { get; private set; } | |
| 79 | 88 | public int am_aiter { get; private set; } | |
| 80 | 89 | public int am_anext { get; private set; } | |
@@ -135,6 +144,11 @@ public TypeOffset310() { } | |||
| 135 | 144 | public int qualname { get; private set; } | |
| 136 | 145 | public int ht_cached_keys { get; private set; } | |
| 137 | 146 | public int ht_module { get; private set; } | |
| 147 | + public int _ht_tpname { get; private set; } | ||
| 148 | + public int ht_token { get; private set; } | ||
| 149 | + public int spec_cache_getitem { get; private set; } | ||
| 150 | + public int getitem_version { get; private set; } | ||
| 151 | + public int init { get; private set; } | ||
| 138 | 152 | } | |
| 139 | 153 | } | |
| 140 | 154 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -134,8 +134,8 @@ public static string PythonPath | |||
| 134 | 134 | } | |
| 135 | 135 | } | |
| 136 | 136 | ||
| 137 | - public static Version MinSupportedVersion => new(3, 7); | ||
| 138 | - public static Version MaxSupportedVersion => new(3, 14, int.MaxValue, int.MaxValue); | ||
| 137 | + public static Version MinSupportedVersion => new(3, 10); | ||
| 138 | + public static Version MaxSupportedVersion => new(3, 15, int.MaxValue, int.MaxValue); | ||
| 139 | 139 | public static bool IsSupportedVersion(Version version) => version >= MinSupportedVersion && version <= MaxSupportedVersion; | |
| 140 | 140 | ||
| 141 | 141 | public static string Version | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -245,7 +245,6 @@ static Delegates() | |||
| 245 | 245 | catch (MissingMethodException) { } | |
| 246 | 246 | PyObject_GC_Track = (delegate* unmanaged[Cdecl]<BorrowedReference, void>)GetFunctionByName(nameof(PyObject_GC_Track), GetUnmanagedDll(_PythonDll)); | |
| 247 | 247 | PyObject_GC_UnTrack = (delegate* unmanaged[Cdecl]<BorrowedReference, void>)GetFunctionByName(nameof(PyObject_GC_UnTrack), GetUnmanagedDll(_PythonDll)); | |
| 248 | - _PyObject_Dump = (delegate* unmanaged[Cdecl]<BorrowedReference, void>)GetFunctionByName(nameof(_PyObject_Dump), GetUnmanagedDll(_PythonDll)); | ||
| 249 | 248 | PyMem_Malloc = (delegate* unmanaged[Cdecl]<IntPtr, IntPtr>)GetFunctionByName(nameof(PyMem_Malloc), GetUnmanagedDll(_PythonDll)); | |
| 250 | 249 | PyMem_Realloc = (delegate* unmanaged[Cdecl]<IntPtr, IntPtr, IntPtr>)GetFunctionByName(nameof(PyMem_Realloc), GetUnmanagedDll(_PythonDll)); | |
| 251 | 250 | PyMem_Free = (delegate* unmanaged[Cdecl]<IntPtr, void>)GetFunctionByName(nameof(PyMem_Free), GetUnmanagedDll(_PythonDll)); | |
@@ -513,7 +512,6 @@ static Delegates() | |||
| 513 | 512 | internal static delegate* unmanaged[Cdecl]<BorrowedReference, int> PyObject_GC_IsTracked { get; } | |
| 514 | 513 | internal static delegate* unmanaged[Cdecl]<BorrowedReference, void> PyObject_GC_Track { get; } | |
| 515 | 514 | internal static delegate* unmanaged[Cdecl]<BorrowedReference, void> PyObject_GC_UnTrack { get; } | |
| 516 | - internal static delegate* unmanaged[Cdecl]<BorrowedReference, void> _PyObject_Dump { get; } | ||
| 517 | 515 | internal static delegate* unmanaged[Cdecl]<nint, IntPtr> PyMem_Malloc { get; } | |
| 518 | 516 | internal static delegate* unmanaged[Cdecl]<IntPtr, nint, IntPtr> PyMem_Realloc { get; } | |
| 519 | 517 | internal static delegate* unmanaged[Cdecl]<IntPtr, void> PyMem_Free { get; } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1653,8 +1653,6 @@ internal static bool PyObject_GC_IsTracked(BorrowedReference ob) | |||
| 1653 | 1653 | ||
| 1654 | 1654 | internal static void PyObject_GC_UnTrack(BorrowedReference ob) => Delegates.PyObject_GC_UnTrack(ob); | |
| 1655 | 1655 | ||
| 1656 | - internal static void _PyObject_Dump(BorrowedReference ob) => Delegates._PyObject_Dump(ob); | ||
| 1657 | - | ||
| 1658 | 1656 | //==================================================================== | |
| 1659 | 1657 | // Python memory API | |
| 1660 | 1658 | //==================================================================== | |
| Back | FazBrowse Home | New Git URL |
0 commit comments