Skip to content

Commit 38c243c

Browse files
authored
Implements signed index support (#312)
Fixes #308
1 parent ba799d5 commit 38c243c

28 files changed

+1472
-199
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,23 @@ jobs:
4343
- name: Set up NuGet
4444
uses: nuget/setup-nuget@12c57947e9458a5b976961b08ea0706a17dd71ae # v3.0.0
4545

46-
- name: Set up Python 3.14.3
46+
- name: Set up Python 3.14.4
4747
run: |
48-
nuget install python -Version 3.14.3 -x -o .
48+
nuget install python -Version 3.14.4 -x -o .
4949
$py = Get-Item python\tools
5050
Write-Host "Adding $py to PATH"
5151
"$py" | Out-File $env:GITHUB_PATH -Encoding UTF8 -Append
5252
working-directory: ${{ runner.temp }}
5353

54-
- name: Check Python version is 3.14.3
54+
- name: Check Python version is 3.14.4
5555
run: >
5656
python -c "import sys;
5757
print(sys.version);
5858
print(sys.executable);
59-
sys.exit(0 if sys.version_info[:5] == (3, 14, 3, 'final', 0) else 1)"
59+
sys.exit(0 if sys.version_info[:5] == (3, 14, 4, 'final', 0) else 1)"
6060
6161
- name: Install build dependencies
62-
run: python -m pip install "pymsbuild>=1.2.0b1"
62+
run: python -m pip install "pymsbuild==1.2.2"
6363

6464
- name: 'Install test runner'
6565
run: python -m pip install pytest pytest-cov

_msbuild.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ class ResourceFile(CSourceFile):
5858
VersionInfo(FileDescription="Native helper functions for PyManager"),
5959
PyFile('__init__.py'),
6060
CPP_SETTINGS,
61+
ItemDefinition("Link",
62+
AdditionalDependencies=Prepend("wintrust.lib;"),
63+
),
6164
IncludeFile('*.h'),
6265
CSourceFile('*.cpp'),
6366
CFunction('coinitialize'),
@@ -89,6 +92,7 @@ class ResourceFile(CSourceFile):
8992
CFunction('read_alias_package'),
9093
CFunction('broadcast_settings_change'),
9194
CFunction('get_processor_architecture'),
95+
CFunction('verify_trust'),
9296
source='src/_native',
9397
RootNamespace='_native',
9498
)

_msbuild_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
PreprocessorDefinitions=Prepend("ERROR_LOCATIONS=1;BITS_INJECT_ERROR=1;"),
2424
LanguageStandard="stdcpp20",
2525
),
26+
ItemDefinition("Link",
27+
AdditionalDependencies=Prepend("wintrust.lib;"),
28+
),
2629
IncludeFile('*.h'),
2730
CSourceFile('*.cpp'),
2831
CFunction('coinitialize'),
@@ -55,6 +58,7 @@
5558
CFunction('read_alias_package'),
5659
CFunction('broadcast_settings_change'),
5760
CFunction('get_processor_architecture'),
61+
CFunction('verify_trust'),
5862
source='src/_native',
5963
),
6064
DllPackage('_shellext_test',

0 commit comments

Comments
 (0)