diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 520773d..29d45de 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -123,11 +123,11 @@ jobs: args: --release --out dist --interpreter 3.10 3.11 3.12 3.13 manylinux: ${{ matrix.manylinux }} before-script-linux: | - # Ensure OpenSSL dev headers are available for native-tls + # Ensure Perl is available for vendored OpenSSL build (openssl-src) if command -v yum &> /dev/null; then - yum install -y openssl-devel perl-IPC-Cmd + yum install -y perl-IPC-Cmd perl-core elif command -v apk &> /dev/null; then - apk add --no-cache openssl-dev perl + apk add --no-cache perl make fi - name: Upload wheels diff --git a/Cargo.lock b/Cargo.lock index 6ea7501..9d78662 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -399,7 +399,7 @@ dependencies = [ [[package]] name = "googer" -version = "0.2.3" +version = "0.2.4" dependencies = [ "html-escape", "log", @@ -887,6 +887,15 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" +[[package]] +name = "openssl-src" +version = "300.5.5+3.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f1787d533e03597a7934fd0a765f0d28e94ecc5fb7789f8053b1e699a56f709" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.112" @@ -895,6 +904,7 @@ checksum = "57d55af3b3e226502be1526dfdba67ab0e9c96fc293004e79576b2b9edb0dbdb" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] diff --git a/Cargo.toml b/Cargo.toml index 4e4ff79..8dc4273 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "googer" -version = "0.2.4" +version = "0.2.5" edition = "2021" description = "A powerful, type-safe Google Search library for Python — powered by Rust." license = "Apache-2.0" @@ -11,7 +11,7 @@ crate-type = ["cdylib"] [dependencies] pyo3 = { version = "0.23", features = ["extension-module"] } -reqwest = { version = "0.12", default-features = false, features = ["blocking", "socks", "cookies", "native-tls"] } +reqwest = { version = "0.12", default-features = false, features = ["blocking", "socks", "cookies", "native-tls-vendored"] } scraper = "0.21" rand = "0.8" regex = "1" diff --git a/pyproject.toml b/pyproject.toml index 13374c8..6389b56 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "googer" -version = "0.2.4" +version = "0.2.5" description = "A powerful, type-safe Google Search library for Python — powered by Rust." readme = "README.md" requires-python = ">=3.10"