From 30e5c46d9318bddfef07f7a08d9ec58dc60bf725 Mon Sep 17 00:00:00 2001 From: Michal Turek Date: Wed, 8 Jul 2026 13:31:23 +0200 Subject: [PATCH] feat: Compress requests using brotli algo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update apify-client dependency to use `brotli` extra. - Introduced in https://github.com/apify/apify-client-python/pull/927. TODO/blocked: ``` What to do once PR #927 merges and apify-client releases: 1. Check which version introduced the extra (likely 3.1.0 or 3.0.5) 2. Optionally bump the floor in pyproject.toml: apify-client[brotli]>=3.1.0 in the extra dep, or tighten the main apify-client>=3.0.0 to that version 3. Run uv sync --all-extras — the warning will disappear and brotli's transitive deps will be locked 4. Commit both files ``` --- pyproject.toml | 1 + uv.lock | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ae092c50..46bad7cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,7 @@ dependencies = [ ] [project.optional-dependencies] +brotli = ["apify-client[brotli]"] scrapy = ["scrapy>=2.14.0"] [project.urls] diff --git a/uv.lock b/uv.lock index 36f2f406..aa290e45 100644 --- a/uv.lock +++ b/uv.lock @@ -52,6 +52,9 @@ dependencies = [ ] [package.optional-dependencies] +brotli = [ + { name = "apify-client" }, +] scrapy = [ { name = "scrapy" }, ] @@ -83,6 +86,7 @@ dev = [ [package.metadata] requires-dist = [ { name = "apify-client", specifier = ">=3.0.0,<4.0.0" }, + { name = "apify-client", extras = ["brotli"], marker = "extra == 'brotli'" }, { name = "cachetools", specifier = ">=5.5.0" }, { name = "crawlee", specifier = ">=1.8.0,<2.0.0" }, { name = "cryptography", specifier = ">=42.0.0" }, @@ -95,7 +99,7 @@ requires-dist = [ { name = "websockets", specifier = ">=14.0" }, { name = "yarl", specifier = ">=1.18.0" }, ] -provides-extras = ["scrapy"] +provides-extras = ["brotli", "scrapy"] [package.metadata.requires-dev] dev = [