FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[pull] master from pythonnet:master by pull[bot] · Pull Request #1 · vvolis/pythonnet · GitHub

Repository navigation

Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1138 commits
Select commit Hold shift + click to select a range
43769f5
Merge pull request #1942 from filmor/configless-coreclr
filmor Sep 17, 2022
f1ef11d
Bump release candidate version
filmor Sep 18, 2022
a02799d
Fix implicit float conversion for classes that derive from float
filmor Sep 19, 2022
2194d6c
Drop PyLong_Check (which checked for exact type) in favour of PyInt_C…
filmor Sep 19, 2022
52cf03c
Merge pull request #1908 from filmor/implicit-float-int
filmor Sep 20, 2022
15a8b26
Bump release candidate version
filmor Sep 20, 2022
08fd638
Add initial documentation setup
filmor May 26, 2022
64ea044
Ensure build props always read the correct version file
filmor Sep 19, 2022
13f2a9c
Convert back to RST, add section on runtime loading
filmor Sep 26, 2022
42b122d
Publish documentation from the release branch for now
filmor Sep 26, 2022
cc2fdac
Adjust installation documentation
filmor Sep 26, 2022
80adda9
Merge pull request #1863 from filmor/docs
filmor Sep 26, 2022
3c4dd16
Update README
filmor Sep 26, 2022
33b107c
Move clr module to separate file
filmor Sep 26, 2022
6ec635d
Drop unused param doc
filmor Sep 26, 2022
aae9d56
Bump version to 3.0.0
filmor Sep 29, 2022
95c1371
Merge remote-tracking branch 'upstream/release'
filmor Sep 29, 2022
2c233ef
Bump master version to 3.1.0-dev
filmor Sep 29, 2022
eb62787
Run documentation build from master
filmor Sep 29, 2022
a3b7789
Roll changelog over
filmor Sep 29, 2022
0119f1c
Specify supported Python version in project metadata
filmor Sep 29, 2022
bf984f0
Merge backports-2.5 changelog in and fix links
filmor Sep 30, 2022
b5c222c
a few debug helper properties
lostmsu Oct 13, 2022
6838ee1
fixed name collision for generated delegate dispatchers
lostmsu Oct 13, 2022
5a28fd4
delete target object from event handler collections when it has no mo…
lostmsu Oct 13, 2022
ce76dae
Merge pull request #1973 from losttech/bugs/1972
filmor Oct 14, 2022
c422abd
Add Python 3.11 type offsets
filmor Sep 18, 2022
d6c024c
explicit functions for exact type checks
lostmsu Oct 24, 2022
782a0e5
allow decoders to override conversion of types derived from primitive…
lostmsu Oct 24, 2022
02b6c2f
Merge pull request #1986 from losttech/FloatDerivedCodec
filmor Oct 28, 2022
2b52910
Add Python 3.11 to metadata and workflows
filmor Sep 18, 2022
c0b4eb2
Improve geninterop script to handle new case in 3.11
filmor Sep 19, 2022
cc86068
Fix offsets for 3.11
filmor Sep 19, 2022
5636262
Update requires-python
filmor Oct 15, 2022
8668579
Define slots before initialization
filmor Oct 15, 2022
218610e
fixed positive PyInt converted to negative BigInteger
lostmsu Oct 28, 2022
fb17907
Merge pull request #1993 from losttech/bugs/BadBigInt200
filmor Oct 28, 2022
ddf5a70
Only clear dict if tp_dictoffset > 0
filmor Oct 30, 2022
d3b56ff
Ensure that sub-processes in tests use the same runtime settings
filmor Oct 30, 2022
a6efeae
Update MaxSupportedVersion
filmor Oct 30, 2022
da082ac
Enforce tp_traverse/clear in AllocateTypeObject
filmor Oct 30, 2022
e9283e3
Ensure that Python is initialized before probing properties
Oct 31, 2022
cc97b8a
Add an Action variant of TryUsingDll
filmor Nov 1, 2022
096f50a
Adjust code a bit and skip PythonHome tests for empty strings
filmor Nov 2, 2022
461c9c7
Add tests for deriving a Python subclass from a generic interface
filmor Nov 2, 2022
15e2e95
Set PYTHONHOME for tests
filmor Nov 2, 2022
6968d01
Merge pull request #1955 from filmor/python-3.11
filmor Nov 2, 2022
cc364c3
Update changelog and add Python 3.11 to metadata
filmor Nov 2, 2022
5c1e02f
fixed resolution of generic methods in Python implementations
lostmsu Nov 2, 2022
cfe1585
Merge pull request #1998 from filmor/fix-derived-generic-interface
filmor Nov 2, 2022
e28dd80
Release 3.0.1
filmor Nov 2, 2022
556882d
Reset version to dev
filmor Nov 2, 2022
1729698
1776 Generic Virtual Method Causes Invalid Program: Fix + test (#2026)
rmadsen-ks Nov 30, 2022
4020a0c
don't force setuptools upgrade during installation of requirements fo…
lostmsu Jan 17, 2023
a041811
Ensure that `load` only runs once (#2079)
filmor Jan 18, 2023
c2fa467
Remove suggestions to use `internal` functions (#2092)
filmor Jan 29, 2023
a404d6e
1783 Implement Interface And Inherit Class (#2028)
rmadsen-ks Feb 3, 2023
131b466
Fix `GetBuffer` throwing `ArgumentOutOfRangeException` (#2120)
legomanww Mar 12, 2023
a1cd73f
Exclude .gitignore from binary distribution
siegfriedpammer May 4, 2023
dddadbe
Adjust docs for importing
filmor Jul 7, 2023
3b6500f
Add documentation dependency to fix empty docs
filmor Jul 21, 2023
639023a
Bump clr_loader dependency
filmor Aug 29, 2023
6a4e04c
Release 3.0.2
filmor Aug 29, 2023
c6f12cf
Reset version to dev
filmor Aug 29, 2023
171cee4
Change PyScope to PyModule in docs (#2231)
OmkarBorhade98 Sep 2, 2023
22d07dd
custom repr for enum values (#2239)
koubaa Sep 22, 2023
a9e757f
fixed ARM CI
lostmsu Oct 4, 2023
6aa92c1
Add type offsets for 3.12 and update interop generation
filmor Sep 27, 2023
93d4119
Drop unused custom incref/decref
filmor Sep 27, 2023
7a31d38
Add 3.12 to CI and metadata
filmor Sep 27, 2023
d057724
Update changelog
filmor Sep 27, 2023
8dfe408
Remove deprecated function call
filmor Sep 27, 2023
080d1bd
For now skip over "new style" weakrefs in clear
filmor Sep 27, 2023
fb49470
Ignore test-case on Python 3.12
filmor Oct 2, 2023
293f8b1
Python 3.12 has been released, use final version
filmor Oct 3, 2023
88418da
Merge pull request #2249 from pythonnet/python-3.12
filmor Oct 6, 2023
04670ea
only run docs CI/main CI for corresponding changes (#2257)
lostmsu Oct 6, 2023
5a4a986
Revert "only run docs CI/main CI for corresponding changes (#2257)" (…
filmor Oct 6, 2023
0a5a63c
Release 3.0.3
filmor Oct 11, 2023
c05f578
Reset version to dev
filmor Oct 11, 2023
8e8c3f3
Allow setting of the python module file (#2044)
bmello4688 Oct 16, 2023
eef67db
To fix memory access exception when iteration breaks in the middle of…
JakeJP Nov 7, 2023
87fc365
Tests for operators on type CS type with codec
gertdreyer Feb 23, 2024
01d6772
Bugfix: RecursionError when reverse/righthand operations invoked. e.g…
gertdreyer Feb 21, 2024
d3bde9d
Update Authors and Changelog
gertdreyer Feb 23, 2024
1542cc9
Normalized names. Added HashCode and Equals to testing objects
gertdreyer Feb 26, 2024
71ca063
Cleanup Codec/Argument Reversing Passing.
gertdreyer Feb 26, 2024
9d18a24
Added `ToPythonAs<T>()` extension method to allow for explicit conver…
lostmsu Feb 28, 2024
563e369
IComparable and IEquatable implementations for PyInt, PyFloat, and Py…
lostmsu Feb 15, 2024
6a8a97d
Fix CI by using macos-13 explicitly, adjust OS config (#2373)
filmor May 5, 2024
195cde6
Use non-BOM encodings (#2370)
filmor May 10, 2024
32051cb
Expose serialization api (#2336)
BadSingleton May 10, 2024
b112885
handle bad paths in sys.path (#2383)
lostmsu May 11, 2024
4e5afdf
Fix access violation exception on shutdown (#1977)
Frawak May 13, 2024
6f0f671
Restrict first garbage collection
Frawak May 13, 2024
f82aeea
Simplify UTF8 StrPtr usage (#2374)
filmor Jun 8, 2024
9ebfbde
Fix crash when event does not have `Add` method and improve message f…
lostmsu Jul 2, 2024
c99cdf3
Throw exception trying to add a reflected object after the hashset is…
Frawak Jul 8, 2024
6cdd6d7
Move reflected object creation block
Frawak Aug 5, 2024
ea059ca
Merge pull request #2386 from Frawak/fix/1977-access-violation-gc
lostmsu Aug 6, 2024
6690310
Bump to 3.0.4
filmor Sep 19, 2024
5c50b20
Back to dev
filmor Sep 19, 2024
de7a1d2
Drop console application (#2456)
filmor Oct 1, 2024
0ea1d29
Drop reference to Py_Main (#2504)
filmor Nov 8, 2024
7a9e3bf
Stick to ubuntu-22.04 for now as that image still contains Mono
filmor Dec 11, 2024
5cf2534
First attempt at Python 3.13
filmor Sep 19, 2024
2f3a0e7
Add Python 3.13 to CI
filmor Oct 25, 2024
5a7b5be
Update project file
filmor Oct 25, 2024
f3face0
Use PyThreadState_GetUnchecked on Python 3.13
filmor Dec 11, 2024
88d98f2
Workaround for geninterop failure to handle non-pointer fields
filmor Dec 12, 2024
4bb673f
Bump clr-loader and dev dependencies
filmor Dec 12, 2024
8283627
Raise maximum supported version
filmor Dec 12, 2024
1920b19
Xfail a test that only fails locally on my machine right now
filmor Dec 12, 2024
60a057f
Skip embed tests on Python 3.13 for now
filmor Dec 13, 2024
8f0ccb7
Add changelog entry
filmor Dec 13, 2024
7c87fec
Workaround for setuptools bug #4759
filmor Dec 13, 2024
0ea8e6f
Remove win-x86-py3.13 entirely for now
filmor Dec 13, 2024
4132a36
Merge pull request #2454 from pythonnet/python3.13
filmor Dec 13, 2024
0826fc0
Release 3.0.5
filmor Dec 13, 2024
f361fa9
Back to dev
filmor Dec 13, 2024
dfd746b
Drop icon
filmor Dec 13, 2024
030a9f9
ci: properly exclude job (#2542)
RobPasMue Feb 20, 2025
a674658
added NixOS FHS shell.nix
lostmsu Dec 18, 2024
ac605fd
index setter was leaking memory
lostmsu Dec 18, 2024
77bdf6d
implemented __delitem__ for IDictionary<K,V> and IList<T>
lostmsu Dec 18, 2024
a21c797
Bump action versions in doc workflow (#2584)
filmor Apr 14, 2025
06dbd41
Drop EOLd Python versions (#2632)
filmor Oct 19, 2025
4cbc6a9
Bump setuptools and adjust license information (#2633)
filmor Oct 19, 2025
c6a3ed5
Minimal .NET 8 usage changes (#2634)
filmor Oct 19, 2025
117c66a
Drop performance tests (#2636)
filmor Oct 21, 2025
0258688
Properly detect availability of BinaryFormatter (#2639)
filmor Oct 21, 2025
cccb295
Use last compiler toolset version that support .NET 8 (#2640)
filmor Oct 21, 2025
4cb5708
Add dependabot file (#2642)
filmor Oct 22, 2025
dcf7abc
Use official ARM runners (#2641)
filmor Oct 22, 2025
08381a4
Bump actions/upload-pages-artifact from 3 to 4 (#2644)
dependabot[bot] Oct 22, 2025
6cedd18
Bump actions/setup-python from 2 to 6 (#2646)
dependabot[bot] Oct 22, 2025
36d5d59
Bump actions/checkout from 2 to 5 (#2648)
dependabot[bot] Oct 22, 2025
e4211db
Bump actions/setup-dotnet from 1 to 5 (#2645)
dependabot[bot] Oct 22, 2025
7d3a6dc
Bump some dependencies
filmor Oct 22, 2025
3426bfd
Use uv and derive as much as possible from the environment, if availa…
filmor Oct 25, 2025
5af3b27
Disable 32bit tests for now
filmor Oct 26, 2025
ec651f1
Always run the embedding tests, and run them separately for Mono and …
filmor Oct 26, 2025
13dff92
Synchronize the environment
filmor Oct 26, 2025
4ccd78c
Merge pull request #2654 from pythonnet/uv-fixes
filmor Oct 26, 2025
85c8c2c
Bump astral-sh/setup-uv from 6 to 7 (#2656)
dependabot[bot] Oct 28, 2025
5276ac6
Bump actions/checkout from 5 to 6 (#2663)
dependabot[bot] Nov 24, 2025
b871d35
Only init/shutdown Python once
filmor Oct 22, 2025
05b8e32
Disable NUnit analyzer for now
filmor Oct 23, 2025
ca50a92
Reset conversions after each codec test
filmor Oct 23, 2025
e7b51d7
Remove shutdown from most tests, disable the rest for now
filmor Oct 23, 2025
595c5fb
Use python -m pytest, path seemingly not properly updated
filmor Oct 26, 2025
9bd7839
Remove unused architecture from uv env activation
filmor Oct 26, 2025
5272e34
Synchronize the environment
filmor Oct 26, 2025
bd33b3f
Include the probed PythonDLL value in the exception
filmor Dec 7, 2025
a38eddc
Use the actual pytest runner
filmor Dec 7, 2025
2f24a35
Move tests that require reinit and only run on .NET Framework
filmor Dec 8, 2025
bd15f2d
Merge pull request #2638 from pythonnet/no-stashing-embedding-tests
filmor Dec 8, 2025
9a3c04e
Bump NUnit3TestAdapter from 5.2.0 to 6.0.0 (#2667)
dependabot[bot] Dec 8, 2025
fd7c7e1
Fix line endings
filmor Dec 9, 2025
08e1b37
Add previous commit to ignore file
filmor Dec 9, 2025
da7fc0c
Merge pull request #2668 from pythonnet/fix-whitespace
filmor Dec 9, 2025
1b43410
Merge pull request #2684 from losttech/net10
lostmsu Feb 3, 2026
1a1a9ab
Drop unused requirements.txt
filmor Feb 16, 2026
4ca65d6
Bump astral-sh/setup-uv from 6 to 7 (#2656)
dependabot[bot] Oct 28, 2025
0856eb4
Bump actions/checkout from 5 to 6 (#2663)
dependabot[bot] Nov 24, 2025
a7d0842
Only init/shutdown Python once
filmor Oct 22, 2025
f6ff431
Disable NUnit analyzer for now
filmor Oct 23, 2025
9fc08f3
Reset conversions after each codec test
filmor Oct 23, 2025
a8e5020
Remove shutdown from most tests, disable the rest for now
filmor Oct 23, 2025
0a6062e
Use python -m pytest, path seemingly not properly updated
filmor Oct 26, 2025
6b1bb92
Remove unused architecture from uv env activation
filmor Oct 26, 2025
d4d1768
Synchronize the environment
filmor Oct 26, 2025
40a3db7
Include the probed PythonDLL value in the exception
filmor Dec 7, 2025
96f428f
Use the actual pytest runner
filmor Dec 7, 2025
5459ac7
Move tests that require reinit and only run on .NET Framework
filmor Dec 8, 2025
abb6855
Bump NUnit3TestAdapter from 5.2.0 to 6.0.0 (#2667)
dependabot[bot] Dec 8, 2025
9882788
Fix line endings
filmor Dec 9, 2025
dc5c6c4
Add previous commit to ignore file
filmor Dec 9, 2025
caac33d
Initial 3.14 commit
filmor Aug 9, 2025
e10d333
Apply alignment fix
filmor Oct 22, 2025
e976558
Disable problematic GC tests
filmor Oct 22, 2025
65af098
Set ht_token to NULL in Python 3.14
filmor Oct 24, 2025
e244503
Fix lockfile
filmor Oct 26, 2025
8e0333d
Assign True instead of None to __clear_reentry_guard__
filmor Dec 6, 2025
cd108b8
Disable the three remaining failing tests
filmor Dec 6, 2025
698bf00
Take the GIL in sequence and list wrappers
filmor Dec 7, 2025
908e13b
Move tp_clear workaround to .NET
filmor Dec 7, 2025
c851b3a
Skip coreclr embedded tests for now
filmor Dec 7, 2025
08550d0
Workaround for blocked PyObject_GenericSetAttr in metatypes
filmor Dec 7, 2025
f1d90f3
Revert changes to tests
filmor Dec 7, 2025
a47555d
Bump macos image version and add arm64
filmor Dec 8, 2025
cebfd15
Reenable .NET Core embedding tests
filmor Dec 9, 2025
8cb4b35
Merge pull request #2611 from pythonnet/python3.14
filmor Feb 24, 2026
fc6c9e9
First release candidate for 3.1.0 (Python 3.14 support)
filmor Feb 25, 2026
3b81faa
Update trove classifiers to reflect Python compatibility
filmor Feb 27, 2026
1073cd1
CI Improvements (#2669)
filmor Mar 25, 2026
b861f4e
Bump System.Reflection.Emit from 4.3.0 to 4.7.0 (#2694)
dependabot[bot] Mar 26, 2026
e4b5195
Bump pytest from 9.0.2 to 9.0.3 in the uv group across 1 directory (#…
dependabot[bot] Apr 18, 2026
daa4cdd
Upgrade lockfile
filmor Apr 18, 2026
310fb6c
Update clr-loader for better find_mono
filmor Apr 18, 2026
9a81dd4
Drop local install-mono copy
filmor Apr 18, 2026
da22396
Update action
filmor Apr 18, 2026
512352b
Merge pull request #2707 from pythonnet/ci
filmor Apr 18, 2026
a67d1a0
Fix method memleak test (#2708)
filmor Apr 19, 2026
10f73e6
Adjust remaining memory leak test to 90% limit
filmor May 5, 2026
36c6f72
Exclude PDB from release build and use deterministic paths
filmor May 5, 2026
76fe6d8
Bump actions/upload-pages-artifact from 4 to 5 (#2709)
dependabot[bot] May 5, 2026
95e6b89
Update furo requirement from >=2022.9.15 to >=2025.12.19 (#2711)
dependabot[bot] May 5, 2026
39c575e
Move documentation deps to pyproject.toml (#2714)
filmor May 5, 2026
cf0ce2e
Support .NET Framework 4.6.1
Metadorius Mar 26, 2026
89a4b24
Add a PyInstaller hook to handle files correctly in PyInstaller
Metadorius Mar 27, 2026
19dc42e
Build .NET 4.6 support conditionally
filmor May 5, 2026
0238387
Merge pull request #2701 from Metadorius/feature/net461
filmor May 5, 2026
4e61c18
Merge pull request #2716 from pythonnet/fix-wheel-tags
filmor May 6, 2026
dc69411
Name missing from __all__ on re-import (#2717)
filmor May 7, 2026
25e0ccf
Add context manager protocol for .NET IDisposable types (#2568)
den-run-ai May 11, 2026
ca323cc
Fix MethodBinding/OverloadMapper memory leak (#691) (#2719)
greateggsgreg May 12, 2026
34f3bc3
Bump urllib3 from 2.6.3 to 2.7.0 in the uv group across 1 directory (…
dependabot[bot] May 12, 2026
baa4819
Update NUnit (#2724)
filmor May 12, 2026
ccb980a
Silence compile-time warnings (#2725)
filmor May 12, 2026
6bde465
Extend timeout so macos x64 can finish
filmor May 13, 2026
5dacfb4
Implement support for DLR get/set
filmor Apr 18, 2026
69ba861
Use explicit IsNull on BorrowedReference
filmor May 5, 2026
2408c43
Catch errors in setting/deleting properties
filmor May 7, 2026
8b12b56
Propagate exceptions from TryGetMember in tp_getattro_dlr_proxy (#2718)
greateggsgreg May 11, 2026
3a08990
Cache HasClrMember and align DLR setter exception path
greateggsgreg May 12, 2026
27caf5c
Merge pull request #2706 from pythonnet/dlr
filmor May 15, 2026
c25a5bd
Second release candidate for 3.1.0 (dynamic)
filmor May 16, 2026
4a83446
Merge pull request #2726 from pythonnet/dependabot/uv/uv-d665ee01e3
dependabot[bot] May 20, 2026
3d76836
Update changelog and bump version
filmor May 23, 2026
fa7b3b7
Back to dev
filmor May 23, 2026
10c5531
Migrate to slnx (#2733)
filmor Jul 1, 2026
107e9a5
Update dependencies (#2739)
filmor Aug 14, 2026
d2d2716
Python 3.15 (#2729)
filmor Aug 16, 2026
7b08d70
Python 3.14 free-threaded support (#2721)
greateggsgreg Sep 14, 2026
24cbcb1
Drop macos x86_64 from CI as Homebrew dropped it
filmor Sep 20, 2026
03e5ee6
Fix nuget preview package build
filmor Sep 20, 2026
b79b58a
Update changelog and adjust docs
filmor Sep 20, 2026
8bb66fd
Release candidate for 3.2.0
filmor Sep 20, 2026
a7af7a8
Python exception raised on conversion failure (#2741)
macaronikazoo Sep 25, 2026
72df9ae
Second release candidate for 3.2.0
filmor Sep 25, 2026
33b9fd2
Bump NUnit from 3.14.0 to 5.0.0 (#2744)
dependabot[bot] Sep 28, 2026
22c5d77
Introduce additional pre-checks in PyBuffer_GetPointer to prevent mem…
filmor Sep 29, 2026
1c6be81
Release 3.2.0
filmor Sep 29, 2026
b9de39f
Back to dev
filmor Sep 29, 2026
deca529
Document MONO_THREADS_SUSPEND and use throughout CI (#2747)
filmor Sep 29, 2026
5aa8111
Fix shutdown regression with BinaryFormatter (#2750)
filmor Oct 6, 2026
47b2b2b
Bump urllib3 from 2.7.0 to 2.8.0 in the uv group across 1 directory (…
dependabot[bot] Oct 6, 2026
c678e2c
Release 3.2.1
filmor Oct 8, 2026
89170a4
Back to dev
filmor Oct 8, 2026
File filter

Filter by extension

Filter by extension .bat  (1) .c  (2) .cd  (1) .cfg  (2) .config  (4) .cs  (278) .csproj  (13) .exe  (2) .h  (1) .ico  (1) .in  (1) .ini  (1) .lock  (1) .md  (7) .nix  (1) .props  (1) .ps1  (2) .py  (63) .pyproj  (1) .rst  (8) .sln  (2) .slnx  (1) .toml  (1) .tt  (1) .txt  (2) .yaml  (1) .yml  (6) No extension  (3) dotfile  (7) All 29 file types selected
Only manifest files
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
  •  
  •  
  •  
29 changes: 0 additions & 29 deletions .bumpversion.cfg

This file was deleted.

15 changes: 15 additions & 0 deletions .editorconfig
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
Expand Up @@ -19,10 +19,25 @@ indent_size = 2
[*.{csproj,pyproj,config}]
indent_size = 2

# .NET formatting settings
[*.{cs,vb}]
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = true

[*.cs]
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true

# Solution
[*.sln]
indent_style = tab

[*.csproj]
charset = utf-8
insert_final_newline = true

# bumpversion reformats itself after every bump
[.bumpversion.cfg]
trim_trailing_whitespace = false
Expand Down
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
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,2 @@
# Line endings normalization
fd7c7e1cbd8e1d7bdb2ec2423c3cf9f95a3abed1
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE.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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Pythonnet version:
- Python version:
- Operating System:
- .NET Runtime:

### Details

Expand Down
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.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
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ Check all those that are applicable and complete.

- [ ] Make sure to include one or more tests for your change
- [ ] If an enhancement PR, please create docs and at best an example
- [ ] Ensure you have signed the [.NET Foundation CLA](https://cla.dotnetfoundation.org/pythonnet/pythonnet)
- [ ] Add yourself to [`AUTHORS`](../blob/master/AUTHORS.md)
- [ ] Updated the [`CHANGELOG`](../blob/master/CHANGELOG.md)
16 changes: 16 additions & 0 deletions .github/dependabot.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
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
50 changes: 50 additions & 0 deletions .github/workflows/docs.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
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Documentation

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: astral-sh/setup-uv@v7
with:
python-version: "3.12"
cache-python: true
activate-environment: true
enable-cache: true

- name: Doxygen Action
uses: mattnotmitt/doxygen-action@1.12.0
with:
working-directory: "doc/"

- name: Synchronize the virtual environment
run: uv sync --managed-python --no-dev --group doc

- name: Build Sphinx documentation
run: |
uv run sphinx-build doc/source/ ./doc/build/html/

- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v5
with:
path: doc/build/html/

deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
107 changes: 107 additions & 0 deletions .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
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: Main

on:
push:
branches:
- master
pull_request:

jobs:
build-test:
name: Build and Test
runs-on: ${{ matrix.os.instance }}
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
os:
- category: windows
platform: x86
instance: windows-latest
suffix: -windows-x86-none

- category: windows
platform: x64
instance: windows-latest
suffix: -windows-x86_64-none

- category: ubuntu
platform: x64
instance: ubuntu-22.04
suffix: ""

- category: ubuntu
platform: arm64
instance: ubuntu-22.04-arm
suffix: ""

- category: macos
platform: arm64
instance: macos-15
suffix: ""

python: ["3.11", "3.12", "3.13", "3.14", "3.14t", "3.15", "3.15t"]

exclude:
# fails to call mono methods
- os:
category: windows
platform: x86
python: '3.13'

env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
# Apply to every Mono host, including pytest and the .NET Python test runner.
MONO_THREADS_SUSPEND: preemptive # https://github.com/mono/mono/issues/21466
steps:
- name: Checkout code
uses: actions/checkout@v7

# Use main until support for architecture lands
- name: Setup .NET
uses: actions/setup-dotnet@main
with:
dotnet-version: '10.0'
architecture: ${{ matrix.os.platform }}

- run: dotnet restore

- name: Install Mono
uses: pythonnet/clr-loader/.github/actions/install-mono@main
with:
arch: ${{ matrix.os.platform }}

- name: Set up Python ${{ matrix.python }}
uses: astral-sh/setup-uv@v7
with:
python-version: cpython-${{ matrix.python }}${{ matrix.os.suffix }}
cache-python: true
activate-environment: true
enable-cache: true

- name: Synchronize the virtual environment
run: uv sync --managed-python

- name: Embedding tests (Mono/.NET Framework)
if: always()
run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net472 --logger "console;verbosity=detailed" src/embed_tests/

- name: Embedding tests (.NET Core)
if: always()
run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net10.0 --logger "console;verbosity=detailed" src/embed_tests/

- name: Python Tests (.NET Core)
if: always()
run: pytest --runtime coreclr

- name: Python Tests (Mono)
if: always()
run: uv run pytest --runtime mono -v -o faulthandler_timeout=60

- name: Python Tests (.NET Framework)
if: ${{ matrix.os.category == 'windows' }}
run: pytest --runtime netfx

- name: Python tests run from .NET
run: dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
58 changes: 58 additions & 0 deletions .github/workflows/nuget-preview.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
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: NuGet Preview Release

on:
schedule:
- cron: "5 4 3 */1 *" # once a month, at 4:05 on 3rd
workflow_dispatch:

jobs:
release:
name: Release Preview
runs-on: ubuntu-latest
environment: NuGet
timeout-minutes: 30

env:
PYTHONNET_SHUTDOWN_MODE: Normal

steps:
- name: Get Date
run: |
echo "DATE_VER=$(date "+%Y-%m-%d")" >> $GITHUB_ENV

- name: Checkout code
uses: actions/checkout@v7

- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: '10.0.x'

- name: Set up Python 3.11
uses: astral-sh/setup-uv@v7
with:
python-version: cpython-3.11
cache-python: true
activate-environment: true
enable-cache: true

- name: Install dependencies
run: uv sync --managed-python

- name: Set Python DLL path
run: |
echo PYTHONNET_PYDLL=$(python -m find_libpython) >> $GITHUB_ENV

- name: Python Tests
run: pytest

- name: Embedding tests
run: dotnet test --runtime any-ubuntu src/embed_tests/

- name: Pack
run: dotnet pack --configuration Release --version-suffix preview${{env.DATE_VER}} --output "Release-Preview"

- name: Publish NuGet
run: |
dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_MONTHLY }} Release-Preview/*.nupkg
dotnet nuget push --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_MONTHLY }} Release-Preview/*.snupkg
5 changes: 5 additions & 0 deletions .gitignore
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
@@ -1,7 +1,11 @@
/src/runtime/interopNative.cs
/src/perf_tests/baseline/

# General binaries and Build results
*.dll
*.exe
*.pdb
*.deps.json

### JetBrains ###
.idea/
Expand All @@ -15,6 +19,7 @@ __pycache__/
build/
dist/
*.egg-info/
.eggs/

# Unit test / coverage reports
htmlcov/
Expand Down
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

Loading

Back | FazBrowse Home | New Git URL