Visitar URL original
Use .NET 8.0 and uv in CI by filmor · Pull Request #2612 · pythonnet/pythonnet · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
54d089b
Use the BinaryFormatter only on .NET FW and Mono
filmor Oct 1, 2024
d2414ca
Use uv
filmor Nov 25, 2024
95e89de
Rely on setup-uv for the env installation
filmor Apr 14, 2025
9233873
Bump uv action
filmor Apr 14, 2025
6c956e8
venv should be active, use installed exec
filmor Apr 14, 2025
f470add
Use uv run
filmor Apr 26, 2025
bef4e0c
Activate environment in CI
filmor Apr 27, 2025
ba2002b
Next permutation :)
filmor Apr 27, 2025
a03ca40
Next permutation :)
filmor Apr 27, 2025
0ced4e6
Use uv run for tests that might need PYTHONHOME
filmor Apr 27, 2025
abbf0d7
Initial 3.14 commit
filmor Aug 9, 2025
b7d0e53
Use .NET 8.0 in CI
filmor Aug 10, 2025
38c87d9
Merge branch 'fix-binaryformatter-usage' into net8.0
filmor Aug 11, 2025
74ff35f
Update compilers toolset dependency
filmor Sep 29, 2025
1156f38
Disable non-copyable analyzer for now
filmor Sep 29, 2025
52e2ceb
Fix pyproject.toml license spec
filmor Sep 29, 2025
d051481
Drop perf tests
filmor Oct 11, 2025
9a30911
Update actions and also install .NET9
filmor Oct 11, 2025
6b99b22
Bump minimal Python version and drop license-files entry
filmor Oct 11, 2025
f23e54c
Merge uv changes
filmor Oct 11, 2025
e5feb0b
Update lock
filmor Oct 11, 2025
3118ebb
Use the fact that the venv should be active
filmor Oct 11, 2025
39fa1c5
Explicitly sync
filmor Oct 11, 2025
a5b67c6
Skip embedding tests for now
filmor Oct 11, 2025
08b7bcd
Merge branch 'python3.14' into net8.0
filmor Oct 11, 2025
9cdf2ae
Update lock
filmor Oct 11, 2025
4d50553
Try setting PYTHONHOME
filmor Oct 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
platform: x64
instance: macos-13

python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]

# This fails in pytest with:
# CSC : error CS4023: /platform:anycpu32bitpreferred can only be used with /t:exe, /t:winexe and /t:appcontainerexe [D:\a\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"clr_loader>=0.2.7,<0.3.0"
]

requires-python = ">=3.9, <3.14"
requires-python = ">=3.7, <3.15"

classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down
147 changes: 147 additions & 0 deletions src/runtime/Native/TypeOffset314.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@

// Auto-generated by geninterop.py.
// DO NOT MODIFY BY HAND.

// Python 3.14: 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 TypeOffset314 : GeneratedTypeOffsets, ITypeOffsets
{
public TypeOffset314() { }
// Auto-generated from PyHeapTypeObject in Python.h
public int ob_refcnt_full { 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; }
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 ht_token { 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 deletion src/runtime/PythonEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static string PythonPath
}

public static Version MinSupportedVersion => new(3, 7);
public static Version MaxSupportedVersion => new(3, 13, int.MaxValue, int.MaxValue);
public static Version MaxSupportedVersion => new(3, 14, int.MaxValue, int.MaxValue);
public static bool IsSupportedVersion(Version version) => version >= MinSupportedVersion && version <= MaxSupportedVersion;

public static string Version
Expand Down
Loading