| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,19 +7,29 @@ jobs: | |||
| 7 | 7 | runs-on: ubuntu-latest | |
| 8 | 8 | steps: | |
| 9 | 9 | - uses: actions/checkout@v6 | |
| 10 | + - name: Set up Python | ||
| 11 | + uses: astral-sh/setup-uv@v7 | ||
| 12 | + with: | ||
| 13 | + python-version: "3.12" | ||
| 14 | + cache-python: true | ||
| 15 | + activate-environment: true | ||
| 16 | + enable-cache: true | ||
| 17 | + | ||
| 10 | 18 | - name: Doxygen Action | |
| 11 | 19 | uses: mattnotmitt/doxygen-action@1.12.0 | |
| 12 | 20 | with: | |
| 13 | 21 | working-directory: "doc/" | |
| 14 | 22 | ||
| 23 | + - name: Synchronize the virtual environment | ||
| 24 | + run: uv sync --managed-python --no-dev --group doc | ||
| 25 | + | ||
| 15 | 26 | - name: Build Sphinx documentation | |
| 16 | 27 | run: | | |
| 17 | - pip install -r doc/requirements.txt | ||
| 18 | - sphinx-build doc/source/ ./doc/build/html/ | ||
| 28 | + uv run sphinx-build doc/source/ ./doc/build/html/ | ||
| 19 | 29 | ||
| 20 | 30 | - name: Upload artifact | |
| 21 | 31 | # Automatically uploads an artifact from the './_site' directory by default | |
| 22 | - uses: actions/upload-pages-artifact@v4 | ||
| 32 | + uses: actions/upload-pages-artifact@v5 | ||
| 23 | 33 | with: | |
| 24 | 34 | path: doc/build/html/ | |
| 25 | 35 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,11 +6,16 @@ | |||
| 6 | 6 | <AssemblyProduct>Python.NET</AssemblyProduct> | |
| 7 | 7 | <LangVersion>12.0</LangVersion> | |
| 8 | 8 | <IsPackable>false</IsPackable> | |
| 9 | + <DeterministicSourcePaths>true</DeterministicSourcePaths> | ||
| 9 | 10 | <FullVersion>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)version.txt").Trim())</FullVersion> | |
| 10 | 11 | <VersionPrefix>$(FullVersion.Split('-', 2)[0])</VersionPrefix> | |
| 11 | 12 | <VersionSuffix Condition="$(FullVersion.Contains('-'))">$(FullVersion.Split('-', 2)[1])</VersionSuffix> | |
| 12 | 13 | <RepositoryRoot>$(MSBuildThisFileDirectory)</RepositoryRoot> | |
| 13 | 14 | </PropertyGroup> | |
| 15 | + <PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
| 16 | + <DebugSymbols>False</DebugSymbols> | ||
| 17 | + <DebugType>None</DebugType> | ||
| 18 | + </PropertyGroup> | ||
| 14 | 19 | <ItemGroup> | |
| 15 | 20 | <PackageReference Include="Microsoft.CSharp" Version="4.*" /> | |
| 16 | 21 | <PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="5.*"> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,6 +39,13 @@ dev = [ | |||
| 39 | 39 | "numpy >=2 ; python_version >= '3.10'", | |
| 40 | 40 | "numpy <2 ; python_version < '3.10'", | |
| 41 | 41 | ] | |
| 42 | + doc = [ | ||
| 43 | + "sphinx", | ||
| 44 | + "furo>=2025.12.19", | ||
| 45 | + "pygments>=2.20", | ||
| 46 | + "breathe", | ||
| 47 | + "sphinx-csharp @ git+https://github.com/rogerbarton/sphinx-csharp.git", | ||
| 48 | + ] | ||
| 42 | 49 | ||
| 43 | 50 | [[project.authors]] | |
| 44 | 51 | name = "The Contributors of the Python.NET Project" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1025,8 +1025,8 @@ def test_getting_overloaded_method_binding_does_not_leak_memory(memory_usage_tra | |||
| 1025 | 1025 | bytesAllocatedPerIteration = pow(2, 20) # 1MB | |
| 1026 | 1026 | bytesLeakedPerIteration = processBytesDelta / iterations | |
| 1027 | 1027 | ||
| 1028 | - # Allow 50% threshold - this shows the original issue is fixed, which leaks the full allocated bytes per iteration | ||
| 1029 | - failThresholdBytesLeakedPerIteration = bytesAllocatedPerIteration / 2 | ||
| 1028 | + # Allow 90% threshold - this shows the original issue is fixed, which leaks the full allocated bytes per iteration | ||
| 1029 | + failThresholdBytesLeakedPerIteration = bytesAllocatedPerIteration * 0.9 | ||
| 1030 | 1030 | ||
| 1031 | 1031 | assert bytesLeakedPerIteration < failThresholdBytesLeakedPerIteration | |
| 1032 | 1032 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments