From 14bad4f6bc01b093a860d44ee2c3c3063c1e7e0b Mon Sep 17 00:00:00 2001 From: Gabriel G Date: Sat, 23 May 2026 22:45:45 -0400 Subject: [PATCH] switch to httpx2 --- pyproject.toml | 4 ++-- uv.lock | 34 +++++++++++++++++++++++++++++++--- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b07059be..eed87f80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ruff-sync" -version = "0.1.7.dev1" +version = "0.1.7.dev2" description = "Synchronize Ruff linter configuration across projects" keywords = ["ruff", "linter", "config", "synchronize", "python", "linting", "automation", "tomlkit", "pre-commit"] authors = [ @@ -24,7 +24,7 @@ classifiers = [ "Topic :: Software Development :: Quality Assurance", ] dependencies = [ - "httpx>=0.27.0,<1.0.0", + "httpx2>=2.2.0", "tomlkit>=0.12.3,<2.0.0", "typing-extensions>=4.5.0", ] diff --git a/uv.lock b/uv.lock index de6195b0..c814ae03 100644 --- a/uv.lock +++ b/uv.lock @@ -532,6 +532,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" }, ] +[[package]] +name = "httpcore2" +version = "2.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/1a/7e/8ab39aab1d392845b6512009a9be57d24a5bd4ec7a22d02e513d0645e7a8/httpcore2-2.2.0.tar.gz", hash = "sha256:10e0e142f1ecc1c1cb2a9ebbce82e57f16169f61d163ea336abf36799e89294b", size = 63533, upload-time = "2026-05-17T05:29:55.836Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/39/22/64de17e7956e8c002f7558ed667d924c2a288344aeff4bd8ff5dc5fdb70b/httpcore2-2.2.0-py3-none-any.whl", hash = "sha256:ce859f268bf8d34fa2d7753e09e4dd5194f557e1b3038439b68a89b2999572fa", size = 79288, upload-time = "2026-05-17T05:29:52.56Z" }, +] + [[package]] name = "httpx" version = "0.28.1" @@ -547,6 +560,21 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" }, ] +[[package]] +name = "httpx2" +version = "2.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "certifi" }, + { name = "httpcore2" }, + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/f4/aa/c3119de1aa7ad870a01aaddbf3bc3445ed9a681c31d45e3838fd8b7bc155/httpx2-2.2.0.tar.gz", hash = "sha256:f3428d59b1752b8f5629826277262fb4d65e3a683f48af8a5b16c4d012e0b801", size = 80477, upload-time = "2026-05-17T05:29:57.376Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/be/e0/e0a52596c14194e428c20de4903f4abec38c0dfb5364d20f1d4a2b6266ef/httpx2-2.2.0-py3-none-any.whl", hash = "sha256:12347ebd2daeaefd50b529359778fff767082a09c5826752c963e71269722ff0", size = 74083, upload-time = "2026-05-17T05:29:54.543Z" }, +] + [[package]] name = "icdiff" version = "2.0.10" @@ -1727,10 +1755,10 @@ wheels = [ [[package]] name = "ruff-sync" -version = "0.1.7.dev1" +version = "0.1.7.dev2" source = { editable = "." } dependencies = [ - { name = "httpx" }, + { name = "httpx2" }, { name = "tomlkit" }, { name = "typing-extensions" }, ] @@ -1771,7 +1799,7 @@ docs = [ [package.metadata] requires-dist = [ - { name = "httpx", specifier = ">=0.27.0,<1.0.0" }, + { name = "httpx2", specifier = ">=2.2.0" }, { name = "textual", marker = "extra == 'tui'", specifier = ">=8.2.2" }, { name = "tomlkit", specifier = ">=0.12.3,<2.0.0" }, { name = "typing-extensions", specifier = ">=4.5.0" },