Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ crate-type = ["cdylib"]
[dependencies]
pyo3 = { version = "0.29.0", features = [
"extension-module",
"abi3-py39",
"abi3-py310",
"indexmap",
"anyhow",
"generate-import-lib",
Expand Down
6 changes: 3 additions & 3 deletions benchmark/benchmark.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# /// script
# requires-python = ">=3.9"
# requires-python = ">=3.10"
# dependencies = [
# "aiohttp",
# "curl_cffi",
Expand All @@ -16,14 +16,14 @@
The httpr dependency resolves from the local working tree when invoked through
`maturin develop`; CI installs the freshly-built wheel via `--with`.
"""

import argparse
import asyncio
import time
from concurrent.futures import ThreadPoolExecutor, as_completed
from functools import partial
from importlib.metadata import version
from io import BytesIO
from typing import Optional

import aiohttp
import curl_cffi.requests
Expand Down Expand Up @@ -89,7 +89,7 @@ def aiohttp_session_factory():
]

# Optional override for httpr version (set via --httpr-version CLI arg)
_httpr_version_override: Optional[str] = None
_httpr_version_override: str | None = None


def add_package_version(packages):
Expand Down
2 changes: 1 addition & 1 deletion benchmark/benchmark_cbor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# /// script
# requires-python = ">=3.9"
# requires-python = ">=3.10"
# dependencies = ["httpr"]
# ///
"""CBOR vs JSON benchmark for httpr.
Expand Down
3 changes: 2 additions & 1 deletion benchmark/server.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# /// script
# requires-python = ">=3.9"
# requires-python = ">=3.10"
# dependencies = [
# "cbor2",
# "starlette",
# "uvicorn",
# ]
# ///
"""Benchmark target server. Run with: uv run --script benchmark/server.py"""

import base64
import gzip
import json
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ build-backend = "maturin"
name = "httpr"
description = "Fast HTTP client for Python"
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"
keywords = [ "python", "request",]
classifiers = [ "Programming Language :: Rust", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules",]
classifiers = [ "Programming Language :: Rust", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules",]
# Version is set dynamically by CI from git tags (e.g., v1.2.3 -> 1.2.3).
# Do not edit manually. See .github/actions/set-version/ for details.
version = "0.0.0.dev0"
Expand All @@ -20,7 +20,7 @@ name = "thomasht86"
text = "MIT License"

[project.optional-dependencies]
dev = [ "certifi", "pytest>=8.1.1; python_version < '3.10'", "pytest>=9.0.3; python_version >= '3.10'", "pytest-asyncio>=0.25.3", "pytest-benchmark>=5.1.0", "pytest-httpbin>=2.1.0", "typing_extensions; python_version <= '3.11'", "mypy>=1.14.1", "ruff>=0.9.2", "maturin", "trustme", "cbor2<6", "go-task-bin", "pre-commit",]
dev = [ "certifi", "pytest>=9.0.3", "pytest-asyncio>=0.25.3", "pytest-benchmark>=5.1.0", "pytest-httpbin>=2.1.0", "typing_extensions; python_version <= '3.11'", "mypy>=1.14.1", "ruff>=0.9.2", "maturin", "trustme", "cbor2<6", "go-task-bin", "pre-commit",]
docs = [ "mkdocs-material", "mkdocstrings[python]>=0.27.0", "mkdocs-gen-files", "mkdocs-literate-nav", "mkdocs-llmstxt",]
# Benchmark scripts use PEP 723 inline metadata — see `benchmark/*.py`.
# Run them with `uv run --script benchmark/<file>.py` so their dependencies
Expand Down Expand Up @@ -59,7 +59,7 @@ select = [ "E", "F", "UP", "B", "SIM", "I",]
]

[tool.mypy]
python_version = "3.9"
python_version = "3.10"
exclude = [ "benchmark/",]

[[tool.mypy.overrides]]
Expand Down
Loading