-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into authorize_net-assets-v1.0.0
- Loading branch information
Showing
177 changed files
with
14,715 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
hatchling==1.21.1; python_version > '3.0' | ||
hatchling==0.25.1; python_version < '3.0' | ||
setuptools==66.1.1; python_version > '3.0' | ||
setuptools==40.9.0; python_version < '3.0' | ||
wheel==0.38.4; python_version > '3.0' | ||
wheel==0.37.1; python_version < '3.0' | ||
setuptools-scm; python_version > '3.0' | ||
setuptools-scm==5.0.2; python_version < '3.0' | ||
setuptools-rust>=1.7.0; python_version > '3.0' | ||
maturin; python_version > '3.0' | ||
hatchling==1.21.1 | ||
setuptools==75.6.0 | ||
wheel==0.38.4 | ||
setuptools-scm | ||
setuptools-rust>=1.7.0 | ||
maturin | ||
cffi>=1.12 | ||
cython==3.0.11 | ||
tomli>=2.0.1; python_version > '3.0' | ||
tomli>=2.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
$ErrorActionPreference = 'Stop' | ||
$PSNativeCommandUseErrorActionPreference = $true | ||
|
||
. C:\helpers.ps1 | ||
|
||
# The librdkafka version needs to stay in sync with the confluent-kafka version, | ||
# thus we extract the version from the requirements file | ||
$kafka_version = Get-Content 'C:\mnt\requirements.in' | perl -nE 'say/^\D*(\d+\.\d+\.\d+)\D*$/ if /confluent-kafka==/' | ||
Write-Host "Will build librdkafka $kafka_version" | ||
|
||
# Download and unpack the source | ||
Get-RemoteFile ` | ||
-Uri "https://github.com/confluentinc/librdkafka/archive/refs/tags/v${kafka_version}.tar.gz" ` | ||
-Path "librdkafka-${kafka_version}.tar.gz" ` | ||
-Hash '0ddf205ad8d36af0bc72a2fec20639ea02e1d583e353163bf7f4683d949e901b' | ||
7z x "librdkafka-${kafka_version}.tar.gz" -o"C:\" | ||
7z x "C:\librdkafka-${kafka_version}.tar" -o"C:\librdkafka" | ||
Remove-Item "librdkafka-${kafka_version}.tar.gz" | ||
|
||
# Build librdkafka | ||
# Based on this job from upstream: | ||
# https://github.com/confluentinc/librdkafka/blob/cb8c19c43011b66c4b08b25e5150455a247e1ff3/.semaphore/semaphore.yml#L265 | ||
# Install vcpkg | ||
Set-Location "C:\" | ||
$triplet = "x64-windows" | ||
$librdkafka_dir = "C:\librdkafka\librdkafka-${kafka_version}" | ||
|
||
& "${librdkafka_dir}\win32\setup-vcpkg.ps1" | ||
# Get deps | ||
Set-Location "$librdkafka_dir" | ||
# Patch the the vcpkg manifest to to override the OpenSSL version | ||
python C:\update_librdkafka_manifest.py vcpkg.json --set-version openssl:${Env:OPENSSL_VERSION} | ||
|
||
C:\vcpkg\vcpkg integrate install | ||
C:\vcpkg\vcpkg --feature-flags=versions install --triplet $triplet | ||
# Build | ||
& .\win32\msbuild.ps1 -platform x64 | ||
|
||
# Copy outputs to where they can be found | ||
# This is partially inspired by | ||
# https://github.com/confluentinc/librdkafka/blob/cb8c19c43011b66c4b08b25e5150455a247e1ff3/win32/package-zip.ps1 | ||
$toolset = "v142" | ||
$platform = "x64" | ||
$config = "Release" | ||
$srcdir = "win32\outdir\${toolset}\${platform}\$config" | ||
$bindir = "C:\bin" | ||
$libdir = "C:\lib" | ||
$includedir = "C:\include" | ||
|
||
Copy-Item "${srcdir}\librdkafka.dll","${srcdir}\librdkafkacpp.dll", | ||
"${srcdir}\libcrypto-3-x64.dll","${srcdir}\libssl-3-x64.dll", | ||
"${srcdir}\zlib1.dll","${srcdir}\zstd.dll","${srcdir}\libcurl.dll" -Destination $bindir | ||
Copy-Item "${srcdir}\librdkafka.lib","${srcdir}\librdkafkacpp.lib" -Destination $libdir | ||
|
||
New-Item -Path $includedir\librdkafka -ItemType Directory | ||
Copy-Item -Path ".\src\*" -Filter *.h -Destination $includedir\librdkafka | ||
|
25 changes: 25 additions & 0 deletions
25
.builders/images/windows-x86_64/update_librdkafka_manifest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import json | ||
from argparse import ArgumentParser | ||
|
||
|
||
def main(manifest_file, versions): | ||
with open(manifest_file) as f: | ||
manifest = json.load(f) | ||
|
||
for dep, version in versions.items(): | ||
manifest.setdefault("overrides", []).append({ | ||
"name": dep, | ||
"version": version, | ||
}) | ||
|
||
with open(manifest_file, 'w') as f: | ||
json.dump(manifest, f) | ||
|
||
|
||
if __name__ == '__main__': | ||
ap = ArgumentParser() | ||
ap.add_argument("file") | ||
ap.add_argument("--set-version", action="append", required=True) | ||
|
||
args = ap.parse_args() | ||
main(args.file, dict(spec.split(':') for spec in args.set_version)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"linux-aarch64": "sha256:0c67a49a4d4ec217dd0f841ee139eaf061616f6e61c6bc758617d4c50c7a8aa2", | ||
"linux-x86_64": "sha256:5e421218e377e4c1d0769b148e569f4ff4a8c60fbd2be8411db9158a644a0b0a", | ||
"windows-x86_64": "sha256:feefe940fe3f382bf4833bc29a9d614d6f6bb3592258a905a261167184b20eab" | ||
"linux-aarch64": "sha256:03314aedd5b8a67258d476984629004e52f7299123897a83fd2aee8c13a7995a", | ||
"linux-x86_64": "sha256:01a85cfe9b017760a3d485e5e2d01ef263f807797cb8b0d6ce10a9ed76a2026b", | ||
"windows-x86_64": "sha256:869dd119f9b08b08cd21abeec3ae5b2b4c8967dc6ae699c0503ffe1e50bd939b" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.