- Notifications
You must be signed in to change notification settings - Fork750
Python 3.13#2454
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
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Python 3.13#2454
Changes fromall commits
Commits
Show all changes
12 commits Select commitHold shift + click to select a range
5cf2534
First attempt at Python 3.13
filmor2f3a0e7
Add Python 3.13 to CI
filmor5a7b5be
Update project file
filmorf3face0
Use PyThreadState_GetUnchecked on Python 3.13
filmor88d98f2
Workaround for geninterop failure to handle non-pointer fields
filmor4bb673f
Bump clr-loader and dev dependencies
filmor8283627
Raise maximum supported version
filmor1920b19
Xfail a test that only fails locally on my machine right now
filmor60a057f
Skip embed tests on Python 3.13 for now
filmor8f0ccb7
Add changelog entry
filmor7c87fec
Workaround for setuptools bug #4759
filmor0ea8e6f
Remove win-x86-py3.13 entirely for now
filmorFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
10 changes: 9 additions & 1 deletion.github/workflows/main.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
3 changes: 3 additions & 0 deletionsCHANGELOG.md
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
15 changes: 13 additions & 2 deletionspyproject.toml
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
152 changes: 152 additions & 0 deletionssrc/runtime/Native/TypeOffset313.cs
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,152 @@ | ||
// Auto-generated by geninterop.py. | ||
// DO NOT MODIFY BY HAND. | ||
// Python 3.13: ABI flags: '' | ||
// ReSharper disable InconsistentNaming | ||
// ReSharper disable IdentifierTypo | ||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.InteropServices; | ||
using Python.Runtime.Native; | ||
namespace Python.Runtime | ||
{ | ||
[SuppressMessage("Style", "IDE1006:Naming Styles", | ||
Justification = "Following CPython", | ||
Scope = "type")] | ||
[StructLayout(LayoutKind.Sequential)] | ||
internal class TypeOffset313 : GeneratedTypeOffsets, ITypeOffsets | ||
{ | ||
public TypeOffset313() { } | ||
// Auto-generated from PyHeapTypeObject in Python.h | ||
public int ob_refcnt { get; private set; } | ||
public int ob_type { get; private set; } | ||
public int ob_size { get; private set; } | ||
public int tp_name { get; private set; } | ||
public int tp_basicsize { get; private set; } | ||
public int tp_itemsize { get; private set; } | ||
public int tp_dealloc { get; private set; } | ||
public int tp_vectorcall_offset { get; private set; } | ||
public int tp_getattr { get; private set; } | ||
public int tp_setattr { get; private set; } | ||
public int tp_as_async { get; private set; } | ||
public int tp_repr { get; private set; } | ||
public int tp_as_number { get; private set; } | ||
public int tp_as_sequence { get; private set; } | ||
public int tp_as_mapping { get; private set; } | ||
public int tp_hash { get; private set; } | ||
public int tp_call { get; private set; } | ||
public int tp_str { get; private set; } | ||
public int tp_getattro { get; private set; } | ||
public int tp_setattro { get; private set; } | ||
public int tp_as_buffer { get; private set; } | ||
public int tp_flags { get; private set; } | ||
public int tp_doc { get; private set; } | ||
public int tp_traverse { get; private set; } | ||
public int tp_clear { get; private set; } | ||
public int tp_richcompare { get; private set; } | ||
public int tp_weaklistoffset { get; private set; } | ||
public int tp_iter { get; private set; } | ||
public int tp_iternext { get; private set; } | ||
public int tp_methods { get; private set; } | ||
public int tp_members { get; private set; } | ||
public int tp_getset { get; private set; } | ||
public int tp_base { get; private set; } | ||
public int tp_dict { get; private set; } | ||
public int tp_descr_get { get; private set; } | ||
public int tp_descr_set { get; private set; } | ||
public int tp_dictoffset { get; private set; } | ||
public int tp_init { get; private set; } | ||
public int tp_alloc { get; private set; } | ||
public int tp_new { get; private set; } | ||
public int tp_free { get; private set; } | ||
public int tp_is_gc { get; private set; } | ||
public int tp_bases { get; private set; } | ||
public int tp_mro { get; private set; } | ||
public int tp_cache { get; private set; } | ||
public int tp_subclasses { get; private set; } | ||
public int tp_weaklist { get; private set; } | ||
public int tp_del { get; private set; } | ||
public int tp_version_tag { get; private set; } | ||
public int tp_finalize { get; private set; } | ||
public int tp_vectorcall { get; private set; } | ||
// This is an error in our generator: | ||
// | ||
// The fields below are actually not pointers (like we incorrectly | ||
// assume for all other fields) but instead a char (1 byte) and a short | ||
// (2 bytes). By dropping one of the fields, we still get the correct | ||
// overall size of the struct. | ||
public int tp_watched { get; private set; } | ||
// public int tp_versions_used { get; private set; } | ||
public int am_await { get; private set; } | ||
public int am_aiter { get; private set; } | ||
public int am_anext { get; private set; } | ||
public int am_send { get; private set; } | ||
public int nb_add { get; private set; } | ||
public int nb_subtract { get; private set; } | ||
public int nb_multiply { get; private set; } | ||
public int nb_remainder { get; private set; } | ||
public int nb_divmod { get; private set; } | ||
public int nb_power { get; private set; } | ||
public int nb_negative { get; private set; } | ||
public int nb_positive { get; private set; } | ||
public int nb_absolute { get; private set; } | ||
public int nb_bool { get; private set; } | ||
public int nb_invert { get; private set; } | ||
public int nb_lshift { get; private set; } | ||
public int nb_rshift { get; private set; } | ||
public int nb_and { get; private set; } | ||
public int nb_xor { get; private set; } | ||
public int nb_or { get; private set; } | ||
public int nb_int { get; private set; } | ||
public int nb_reserved { get; private set; } | ||
public int nb_float { get; private set; } | ||
public int nb_inplace_add { get; private set; } | ||
public int nb_inplace_subtract { get; private set; } | ||
public int nb_inplace_multiply { get; private set; } | ||
public int nb_inplace_remainder { get; private set; } | ||
public int nb_inplace_power { get; private set; } | ||
public int nb_inplace_lshift { get; private set; } | ||
public int nb_inplace_rshift { get; private set; } | ||
public int nb_inplace_and { get; private set; } | ||
public int nb_inplace_xor { get; private set; } | ||
public int nb_inplace_or { get; private set; } | ||
public int nb_floor_divide { get; private set; } | ||
public int nb_true_divide { get; private set; } | ||
public int nb_inplace_floor_divide { get; private set; } | ||
public int nb_inplace_true_divide { get; private set; } | ||
public int nb_index { get; private set; } | ||
public int nb_matrix_multiply { get; private set; } | ||
public int nb_inplace_matrix_multiply { get; private set; } | ||
public int mp_length { get; private set; } | ||
public int mp_subscript { get; private set; } | ||
public int mp_ass_subscript { get; private set; } | ||
public int sq_length { get; private set; } | ||
public int sq_concat { get; private set; } | ||
public int sq_repeat { get; private set; } | ||
public int sq_item { get; private set; } | ||
public int was_sq_slice { get; private set; } | ||
public int sq_ass_item { get; private set; } | ||
public int was_sq_ass_slice { get; private set; } | ||
public int sq_contains { get; private set; } | ||
public int sq_inplace_concat { get; private set; } | ||
public int sq_inplace_repeat { get; private set; } | ||
public int bf_getbuffer { get; private set; } | ||
public int bf_releasebuffer { get; private set; } | ||
public int name { get; private set; } | ||
public int ht_slots { get; private set; } | ||
public int qualname { get; private set; } | ||
public int ht_cached_keys { get; private set; } | ||
public int ht_module { get; private set; } | ||
public int _ht_tpname { get; private set; } | ||
public int spec_cache_getitem { get; private set; } | ||
public int getitem_version { get; private set; } | ||
public int init { get; private set; } | ||
} | ||
} | ||
2 changes: 1 addition & 1 deletionsrc/runtime/PythonEngine.cs
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
14 changes: 12 additions & 2 deletionssrc/runtime/Runtime.Delegates.cs
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 deletionssrc/runtime/Runtime.cs
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
1 change: 1 addition & 0 deletionstests/test_method.py
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
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.