Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Build
run: uv build
- name: Upload source distribution
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: build-output
path: "dist/*"
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
uv pip install pytest

- name: Download wheel
uses: actions/download-artifact@v7
uses: actions/download-artifact@v8
with:
name: build-output
path: dist/
Expand All @@ -145,7 +145,7 @@ jobs:

steps:
- name: Download artifacts
uses: actions/download-artifact@v7
uses: actions/download-artifact@v8
with:
name: build-output
path: dist/
Expand Down
5 changes: 3 additions & 2 deletions clr_loader/ffi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys
from ctypes import RTLD_GLOBAL
from pathlib import Path

import cffi
Expand Down Expand Up @@ -43,10 +44,10 @@ def load_hostfxr(dotnet_root: Path):
def load_mono(path: Path | None = None):
# Preload C++ standard library, Mono needs that and doesn't properly link against it
if sys.platform == "linux":
ffi.dlopen("stdc++", ffi.RTLD_GLOBAL)
ffi.dlopen("stdc++", RTLD_GLOBAL)

path_str = str(path) if path else None
return ffi.dlopen(path_str, ffi.RTLD_GLOBAL)
return ffi.dlopen(path_str, RTLD_GLOBAL)


def load_netfx():
Expand Down
11 changes: 2 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ Documentation = "https://pythonnet.github.io/clr-loader/"

[dependency-groups]
dev = [
"pytest >=7.0; python_version <= '3.9'",
"pytest >=9.0, <10.0; python_version > '3.9'",
"pytest >=9.0, <10.0",
"ruff >=0.15",
]
doc = ["furo >= 2025.0", "sphinx >=9.0, <10.0"]
doc = ["furo >=2025.0", "sphinx >=9.0, <10.0"]

[tool.uv.dependency-groups.doc]
requires-python = ">=3.12"
Expand All @@ -54,9 +53,3 @@ include = ["clr_loader*"]
[tool.pytest.ini_options]
xfail_strict = true
testpaths = ["tests"]

[tool.mypy]
allow-redefinition = true

[tool.pyright]
pythonPlatform = "All"
Loading
Loading