| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,16 @@ | |||
| 1 | + version: 2 | ||
| 2 | + updates: | ||
| 3 | + - package-ecosystem: "pip" | ||
| 4 | + directory: "/" | ||
| 5 | + schedule: | ||
| 6 | + interval: "weekly" | ||
| 7 | + | ||
| 8 | + - package-ecosystem: "nuget" | ||
| 9 | + directory: "/" | ||
| 10 | + schedule: | ||
| 11 | + interval: "weekly" | ||
| 12 | + | ||
| 13 | + - package-ecosystem: "github-actions" | ||
| 14 | + directory: "/" | ||
| 15 | + schedule: | ||
| 16 | + interval: "weekly" | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,9 +6,9 @@ jobs: | |||
| 6 | 6 | build: | |
| 7 | 7 | runs-on: ubuntu-latest | |
| 8 | 8 | steps: | |
| 9 | - - uses: actions/checkout@v1 | ||
| 9 | + - uses: actions/checkout@v6 | ||
| 10 | 10 | - name: Doxygen Action | |
| 11 | - uses: mattnotmitt/doxygen-action@1.9.4 | ||
| 11 | + uses: mattnotmitt/doxygen-action@1.12.0 | ||
| 12 | 12 | with: | |
| 13 | 13 | working-directory: "doc/" | |
| 14 | 14 | ||
@@ -19,7 +19,7 @@ jobs: | |||
| 19 | 19 | ||
| 20 | 20 | - name: Upload artifact | |
| 21 | 21 | # Automatically uploads an artifact from the './_site' directory by default | |
| 22 | - uses: actions/upload-pages-artifact@v1 | ||
| 22 | + uses: actions/upload-pages-artifact@v4 | ||
| 23 | 23 | with: | |
| 24 | 24 | path: doc/build/html/ | |
| 25 | 25 | ||
@@ -37,4 +37,4 @@ jobs: | |||
| 37 | 37 | steps: | |
| 38 | 38 | - name: Deploy to GitHub Pages | |
| 39 | 39 | id: deployment | |
| 40 | - uses: actions/deploy-pages@v1 | ||
| 40 | + uses: actions/deploy-pages@v4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,23 +16,29 @@ jobs: | |||
| 16 | 16 | fail-fast: false | |
| 17 | 17 | matrix: | |
| 18 | 18 | os: | |
| 19 | - - category: windows | ||
| 20 | - platform: x86 | ||
| 21 | - instance: windows-latest | ||
| 19 | + # Disabled for now, will require some work (#2653) | ||
| 20 | + # | ||
| 21 | + # - category: windows | ||
| 22 | + # platform: x86 | ||
| 23 | + # instance: windows-latest | ||
| 22 | 24 | ||
| 23 | 25 | - category: windows | |
| 24 | 26 | platform: x64 | |
| 25 | 27 | instance: windows-latest | |
| 26 | 28 | ||
| 27 | 29 | - category: ubuntu | |
| 28 | 30 | platform: x64 | |
| 29 | - instance: ubuntu-latest | ||
| 31 | + instance: ubuntu-22.04 | ||
| 32 | + | ||
| 33 | + - category: ubuntu | ||
| 34 | + platform: arm64 | ||
| 35 | + instance: ubuntu-22.04-arm | ||
| 30 | 36 | ||
| 31 | 37 | - category: macos | |
| 32 | 38 | platform: x64 | |
| 33 | 39 | instance: macos-13 | |
| 34 | 40 | ||
| 35 | - python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
| 41 | + python: ["3.10", "3.11", "3.12", "3.13"] | ||
| 36 | 42 | ||
| 37 | 43 | steps: | |
| 38 | 44 | - name: Set Environment on macOS | |
@@ -42,65 +48,52 @@ jobs: | |||
| 42 | 48 | mono-version: latest | |
| 43 | 49 | ||
| 44 | 50 | - name: Checkout code | |
| 45 | - uses: actions/checkout@v2 | ||
| 51 | + uses: actions/checkout@v6 | ||
| 46 | 52 | ||
| 47 | 53 | - name: Setup .NET | |
| 48 | - uses: actions/setup-dotnet@v1 | ||
| 54 | + uses: actions/setup-dotnet@v5 | ||
| 49 | 55 | with: | |
| 50 | - dotnet-version: '6.0.x' | ||
| 56 | + dotnet-version: '8.0.x' | ||
| 51 | 57 | ||
| 52 | 58 | - name: Set up Python ${{ matrix.python }} | |
| 53 | - uses: actions/setup-python@v2 | ||
| 59 | + uses: astral-sh/setup-uv@v7 | ||
| 54 | 60 | with: | |
| 55 | - python-version: ${{ matrix.python }} | ||
| 56 | 61 | architecture: ${{ matrix.os.platform }} | |
| 62 | + python-version: ${{ matrix.python }} | ||
| 63 | + cache-python: true | ||
| 64 | + activate-environment: true | ||
| 65 | + enable-cache: true | ||
| 57 | 66 | ||
| 58 | - - name: Install dependencies | ||
| 59 | - run: | | ||
| 60 | - pip install --upgrade -r requirements.txt | ||
| 61 | - pip install numpy # for tests | ||
| 62 | - | ||
| 63 | - - name: Build and Install | ||
| 64 | - run: | | ||
| 65 | - pip install -v . | ||
| 66 | - | ||
| 67 | - - name: Set Python DLL path and PYTHONHOME (non Windows) | ||
| 68 | - if: ${{ matrix.os.category != 'windows' }} | ||
| 69 | - run: | | ||
| 70 | - echo PYTHONNET_PYDLL=$(python -m find_libpython) >> $GITHUB_ENV | ||
| 71 | - echo PYTHONHOME=$(python -c 'import sys; print(sys.prefix)') >> $GITHUB_ENV | ||
| 67 | + - name: Synchronize the virtual environment | ||
| 68 | + run: uv sync --managed-python | ||
| 72 | 69 | ||
| 73 | - - name: Set Python DLL path and PYTHONHOME (Windows) | ||
| 74 | - if: ${{ matrix.os.category == 'windows' }} | ||
| 75 | - run: | | ||
| 76 | - Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(python -m find_libpython)" | ||
| 77 | - Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONHOME=$(python -c 'import sys; print(sys.prefix)')" | ||
| 70 | + - name: Show pyvenv.cfg | ||
| 71 | + run: cat .venv/pyvenv.cfg | ||
| 78 | 72 | ||
| 79 | - - name: Embedding tests | ||
| 80 | - run: dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/ | ||
| 73 | + - name: Embedding tests (Mono/.NET Framework) | ||
| 74 | + run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net472 --logger "console;verbosity=detailed" src/embed_tests/ | ||
| 75 | + if: always() | ||
| 81 | 76 | env: | |
| 82 | 77 | MONO_THREADS_SUSPEND: preemptive # https://github.com/mono/mono/issues/21466 | |
| 83 | 78 | ||
| 79 | + - name: Embedding tests (.NET Core) | ||
| 80 | + run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net8.0 --logger "console;verbosity=detailed" src/embed_tests/ | ||
| 81 | + if: always() | ||
| 82 | + | ||
| 84 | 83 | - name: Python Tests (Mono) | |
| 85 | 84 | if: ${{ matrix.os.category != 'windows' }} | |
| 86 | 85 | run: pytest --runtime mono | |
| 87 | 86 | ||
| 88 | - # TODO: Run these tests on Windows x86 | ||
| 89 | 87 | - name: Python Tests (.NET Core) | |
| 90 | - if: ${{ matrix.os.platform == 'x64' }} | ||
| 91 | 88 | run: pytest --runtime coreclr | |
| 92 | 89 | ||
| 93 | 90 | - name: Python Tests (.NET Framework) | |
| 94 | 91 | if: ${{ matrix.os.category == 'windows' }} | |
| 95 | 92 | run: pytest --runtime netfx | |
| 96 | 93 | ||
| 97 | 94 | - name: Python tests run from .NET | |
| 95 | + # For some reason, it won't find pytest on the Windows + 3.10 | ||
| 96 | + # combination, which hints that it does not handle the venv properly in | ||
| 97 | + # this combination. | ||
| 98 | + if: ${{ matrix.os.category != 'windows' || matrix.python != '3.10' }} | ||
| 98 | 99 | run: dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/ | |
| 99 | - | ||
| 100 | - - name: Perf tests | ||
| 101 | - if: ${{ (matrix.python == '3.8') && (matrix.os.platform == 'x64') }} | ||
| 102 | - run: | | ||
| 103 | - pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2 | ||
| 104 | - dotnet test --configuration Release --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/perf_tests/ | ||
| 105 | - | ||
| 106 | - # TODO: Run mono tests on Windows? | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,15 +21,15 @@ jobs: | |||
| 21 | 21 | echo "DATE_VER=$(date "+%Y-%m-%d")" >> $GITHUB_ENV | |
| 22 | 22 | ||
| 23 | 23 | - name: Checkout code | |
| 24 | - uses: actions/checkout@v2 | ||
| 24 | + uses: actions/checkout@v6 | ||
| 25 | 25 | ||
| 26 | 26 | - name: Setup .NET | |
| 27 | - uses: actions/setup-dotnet@v1 | ||
| 27 | + uses: actions/setup-dotnet@v5 | ||
| 28 | 28 | with: | |
| 29 | 29 | dotnet-version: '6.0.x' | |
| 30 | 30 | ||
| 31 | 31 | - name: Set up Python 3.8 | |
| 32 | - uses: actions/setup-python@v2 | ||
| 32 | + uses: actions/setup-python@v6 | ||
| 33 | 33 | with: | |
| 34 | 34 | python-version: 3.8 | |
| 35 | 35 | architecture: x64 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,6 +38,7 @@ | |||
| 38 | 38 | - Dmitriy Se ([@dmitriyse](https://github.com/dmitriyse)) | |
| 39 | 39 | - Félix Bourbonnais ([@BadSingleton](https://github.com/BadSingleton)) | |
| 40 | 40 | - Florian Treurniet ([@ftreurni](https://github.com/ftreurni)) | |
| 41 | + - Frank Witscher ([@Frawak](https://github.com/Frawak)) | ||
| 41 | 42 | - He-chien Tsai ([@t3476](https://github.com/t3476)) | |
| 42 | 43 | - Inna Wiesel ([@inna-w](https://github.com/inna-w)) | |
| 43 | 44 | - Ivan Cronyn ([@cronan](https://github.com/cronan)) | |
@@ -58,6 +59,7 @@ | |||
| 58 | 59 | - Peter Kese ([@pkese](https://github.com/pkese)) | |
| 59 | 60 | - Raphael Nestler ([@rnestler](https://github.com/rnestler)) | |
| 60 | 61 | - Rickard Holmberg ([@rickardraysearch](https://github.com/rickardraysearch)) | |
| 62 | + - Roberto Pastor Muela ([@RobPasMue](https://github.com/RobPasMue)) | ||
| 61 | 63 | - Sam Winstanley ([@swinstanley](https://github.com/swinstanley)) | |
| 62 | 64 | - Sean Freitag ([@cowboygneox](https://github.com/cowboygneox)) | |
| 63 | 65 | - Serge Weinstock ([@sweinst](https://github.com/sweinst)) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,25 +5,50 @@ project adheres to [Semantic Versioning][]. | |||
| 5 | 5 | ||
| 6 | 6 | This document follows the conventions laid out in [Keep a CHANGELOG][]. | |
| 7 | 7 | ||
| 8 | - ## [Unreleased][] | ||
| 8 | + ## Unreleased | ||
| 9 | 9 | ||
| 10 | 10 | ### Added | |
| 11 | 11 | ||
| 12 | - - Added `ToPythonAs<T>()` extension method to allow for explicit conversion using a specific type. ([#2311][i2311]) | ||
| 12 | + - Support `del obj[...]` for types derived from `IList<T>` and `IDictionary<K, V>` | ||
| 13 | 13 | ||
| 14 | - - Added `IComparable` and `IEquatable` implementations to `PyInt`, `PyFloat`, and `PyString` | ||
| 15 | - to compare with primitive .NET types like `long`. | ||
| 14 | + ### Changed | ||
| 15 | + ### Fixed | ||
| 16 | + | ||
| 17 | + - Fixed crash when trying to `del clrObj[...]` for non-arrays | ||
| 18 | + - ci: properly exclude job (#2542) | ||
| 19 | + | ||
| 20 | + ## [3.0.5](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.5) - 2024-12-13 | ||
| 21 | + | ||
| 22 | + ### Added | ||
| 23 | + | ||
| 24 | + - Support for Python 3.13 (#2454) | ||
| 25 | + | ||
| 26 | + | ||
| 27 | + ## [3.0.4](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.4) - 2024-09-19 | ||
| 28 | + | ||
| 29 | + ### Added | ||
| 30 | + | ||
| 31 | + - Added `ToPythonAs<T>()` extension method to allow for explicit conversion | ||
| 32 | + using a specific type. ([#2311][i2311]) | ||
| 33 | + - Added `IComparable` and `IEquatable` implementations to `PyInt`, `PyFloat`, | ||
| 34 | + and `PyString` to compare with primitive .NET types like `long`. | ||
| 16 | 35 | ||
| 17 | 36 | ### Changed | |
| 18 | - - Added a `FormatterFactory` member in RuntimeData to create formatters with parameters. For compatibility, the `FormatterType` member is still present and has precedence when defining both `FormatterFactory` and `FormatterType` | ||
| 19 | - - Added a post-serialization and a pre-deserialization step callbacks to extend (de)serialization process | ||
| 37 | + | ||
| 38 | + - Added a `FormatterFactory` member in RuntimeData to create formatters with | ||
| 39 | + parameters. For compatibility, the `FormatterType` member is still present | ||
| 40 | + and has precedence when defining both `FormatterFactory` and `FormatterType` | ||
| 41 | + - Added a post-serialization and a pre-deserialization step callbacks to | ||
| 42 | + extend (de)serialization process | ||
| 20 | 43 | - Added an API to stash serialized data on Python capsules | |
| 21 | 44 | ||
| 22 | 45 | ### Fixed | |
| 23 | 46 | ||
| 24 | 47 | - Fixed RecursionError for reverse operators on C# operable types from python. See #2240 | |
| 25 | 48 | - Fixed crash when .NET event has no `AddMethod` | |
| 26 | - - Fixed probing for assemblies in `sys.path` failing when a path in `sys.path` has invalid characters. See #2376 | ||
| 49 | + - Fixed probing for assemblies in `sys.path` failing when a path in `sys.path` | ||
| 50 | + has invalid characters. See #2376 | ||
| 51 | + - Fixed possible access violation exception on shutdown. See ([#1977][i1977]) | ||
| 27 | 52 | ||
| 28 | 53 | ## [3.0.3](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.3) - 2023-10-11 | |
| 29 | 54 | ||
@@ -971,3 +996,4 @@ This version improves performance on benchmarks significantly compared to 2.3. | |||
| 971 | 996 | [i1481]: https://github.com/pythonnet/pythonnet/issues/1481 | |
| 972 | 997 | [i1672]: https://github.com/pythonnet/pythonnet/pull/1672 | |
| 973 | 998 | [i2311]: https://github.com/pythonnet/pythonnet/issues/2311 | |
| 999 | + [i1977]: https://github.com/pythonnet/pythonnet/issues/1977 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,24 +1,25 @@ | |||
| 1 | 1 | <?xml version="1.0"?> | |
| 2 | 2 | <Project> | |
| 3 | 3 | <PropertyGroup> | |
| 4 | - <AssemblyCopyright>Copyright (c) 2006-2022 The Contributors of the Python.NET Project</AssemblyCopyright> | ||
| 4 | + <AssemblyCopyright>Copyright (c) 2006-2025 The Contributors of the Python.NET Project</AssemblyCopyright> | ||
| 5 | 5 | <AssemblyCompany>pythonnet</AssemblyCompany> | |
| 6 | 6 | <AssemblyProduct>Python.NET</AssemblyProduct> | |
| 7 | - <LangVersion>10.0</LangVersion> | ||
| 7 | + <LangVersion>12.0</LangVersion> | ||
| 8 | 8 | <IsPackable>false</IsPackable> | |
| 9 | 9 | <FullVersion>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)version.txt").Trim())</FullVersion> | |
| 10 | 10 | <VersionPrefix>$(FullVersion.Split('-', 2)[0])</VersionPrefix> | |
| 11 | 11 | <VersionSuffix Condition="$(FullVersion.Contains('-'))">$(FullVersion.Split('-', 2)[1])</VersionSuffix> | |
| 12 | + <RepositoryRoot>$(MSBuildThisFileDirectory)</RepositoryRoot> | ||
| 12 | 13 | </PropertyGroup> | |
| 13 | 14 | <ItemGroup> | |
| 14 | 15 | <PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | |
| 15 | - <PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="4.0.1"> | ||
| 16 | + <PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="4.12.0"> | ||
| 16 | 17 | <PrivateAssets>all</PrivateAssets> | |
| 17 | 18 | <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> | |
| 18 | 19 | </PackageReference> | |
| 19 | - <PackageReference Include="NonCopyableAnalyzer" Version="0.7.0"> | ||
| 20 | + <!-- PackageReference Include="NonCopyableAnalyzer" Version="0.7.0"> | ||
| 20 | 21 | <PrivateAssets>all</PrivateAssets> | |
| 21 | 22 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |
| 22 | - </PackageReference> | ||
| 23 | + </PackageReference --> | ||
| 23 | 24 | </ItemGroup> | |
| 24 | 25 | </Project> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments