Skip to content

[pull] master from pythonnet:master#1

Open
pull[bot] wants to merge 1092 commits intovvolis:masterfrom
pythonnet:master
Open

[pull] master from pythonnet:master#1
pull[bot] wants to merge 1092 commits intovvolis:masterfrom
pythonnet:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Jan 11, 2021

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull Bot added ⤵️ pull merge-conflict Resolve conflicts manually labels Jan 11, 2021
filmor and others added 28 commits May 23, 2022 21:54
* Move to modern setuptools with pyproject.toml

Also moves the version to a common ̀`version.txt` that is read by both
the .NET and Python builds.

* Allow explicitly overriding the version suffix for .NET builds
`Min`/`MaxSupportedVersion` and `IsSupportedVersion` on `PythonEngine`
Implement configuring clr from environment
fixed unhandled Python errors during comparison attempts

fixes #1848
fixed unhandled Python errors during comparison attempts

fixes #1848
Additionally, fixes a type hint and makes sure that the new default
behaviour is to use the environment variable if given.
Additionally, fixes a type hint and makes sure that the new default
behaviour is to use the environment variable if given.
Allows the project to be referenced in other .NET projects without
adjusting its project file (#1853).
- Only include src/runtime, no other .NET subproject
- In particular, tests are not contained anymore in the sdist
- Fix accidentally including obj and bin directories in the sdist
* Add unit tests for (U)IntPtr conversions
* Special-case construction of (U)IntPtr
* Check (U)IntPtr size explicitly
filmor and others added 30 commits February 24, 2026 08:50
---
updated-dependencies:
- dependency-name: NUnit3TestAdapter
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: NUnit3TestAdapter
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Not at all sure why this helps, but when assigning `None` instead, the
object is gone at the time of garbage collection.
- The first two run into issues because our meta type's `tp_getattro` is
  not overridden by its subclasses
- The last runs into a `PyErrOccurred` when trying to access its
  `__len__`, related to our sequence decoding logic
In Python 3.14, the objects __dict__ seems to already be half
deconstructed, leading to crashes during garbage collection.

Since gc in Python is single-threaded (I think :)), it should
be fine to have a single static for this. If that is not true,
we can always use a thread-local instead.
Python 3.14 introduced a new assertion that prevents us from using
PyObject_GenericSetAttr directly in our meta type. To work around
this, we manipulate the type dict directly.

This workaround is a simplified variant of Cython's workaround from
cython/cython#6325.

The relevant Python change is in
python/cpython#118454
* Be explicit about Python version to use

* Use generic package installer

* Use workspace cache for Nuget

* Reorder steps

* Disable always() on embed tests and reenable Mono on Windows

* Use custom install-mono

* Disable 32bit tests again, require changes to setup-dotnet

* Try with arch

* Temporarily add upterm to ssh into macos node

* Explicitly install brew on x64 macos

* Unconditionally start upterm on macos

* Add more caching to the mono installation

* Use custom mono install action

* Bump locked dependencies

* Reenable Windows x86 tests

* Remove win/x86/3.10 case and try to run all test suites

* Bump C# dependencies

* Bump clr-loader dependency

* Disable test for now

* Remove the same versions from CI as in clr-loader

* Drop py3.10 win x86 test

* Increase threshold on memleak test
---
updated-dependencies:
- dependency-name: System.Reflection.Emit
  dependency-version: 4.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…2705)

Bumps the uv group with 1 update in the / directory: [pytest](https://github.com/pytest-dev/pytest).


Updates `pytest` from 9.0.2 to 9.0.3
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@9.0.2...9.0.3)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 9.0.3
  dependency-type: direct:development
  dependency-group: uv
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Use uss instead of rss to get more precise memory readings

* Rework memory usage tracking to use .NET and Python memory tracing

* Use 75% threshold in all cases

* Up to 90% :(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⤵️ pull merge-conflict Resolve conflicts manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.