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
47 changes: 39 additions & 8 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,43 @@ jobs:
maturin-args: --target x86_64-unknown-linux-gnu
manylinux: "2014"
python: "3.15"
# Linux aarch64 uses a native runner for build and import smoke.
- os: linux
arch: aarch64
runner: ubuntu-24.04-arm
maturin-args: --target aarch64-unknown-linux-gnu
manylinux: "2014"
python: "3.10"
- os: linux
arch: aarch64
runner: ubuntu-24.04-arm
maturin-args: --target aarch64-unknown-linux-gnu
manylinux: "2014"
python: "3.11"
- os: linux
arch: aarch64
runner: ubuntu-24.04-arm
maturin-args: --target aarch64-unknown-linux-gnu
manylinux: "2014"
python: "3.12"
- os: linux
arch: aarch64
runner: ubuntu-24.04-arm
maturin-args: --target aarch64-unknown-linux-gnu
manylinux: "2014"
python: "3.13"
- os: linux
arch: aarch64
runner: ubuntu-24.04-arm
maturin-args: --target aarch64-unknown-linux-gnu
manylinux: "2014"
python: "3.14"
- os: linux
arch: aarch64
runner: ubuntu-24.04-arm
maturin-args: --target aarch64-unknown-linux-gnu
manylinux: "2014"
python: "3.15"
# macOS arm64
- os: macos
arch: arm64
Expand Down Expand Up @@ -221,12 +258,6 @@ jobs:
# once 3.15.0 final ships, with no further change.
allow-prereleases: ${{ matrix.python == '3.15' }}

- name: Set up QEMU
if: matrix.arch == 'aarch64'
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
with:
platforms: arm64

- name: Build wheel
uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
with:
Expand Down Expand Up @@ -419,8 +450,8 @@ jobs:
echo "Sdists: $sdist_count"
echo "Total: $total"

if [[ $wheel_count -ne 18 ]]; then
echo "FAIL: expected 18 wheels, found $wheel_count" >&2; exit 1
if [[ $wheel_count -ne 24 ]]; then
echo "FAIL: expected 24 wheels, found $wheel_count" >&2; exit 1
fi
if [[ $sdist_count -ne 1 ]]; then
echo "FAIL: expected 1 sdist, found $sdist_count" >&2; exit 1
Expand Down
2 changes: 1 addition & 1 deletion .skills/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ crates.io versions are immutable. If publication is partial, bump and republish.
## CI

- Routine CI (`.github/workflows/ci.yml`): runs `./scripts/check.sh` on pushes and pull requests. One Ubuntu job, no matrix; this includes the reviewed native/facade typing fixtures and stub drift check. Python tooling is pinned in `scripts/ci-requirements.txt` (maturin aligned with `scripts/release-requirements.txt`); tool bumps are reviewed diffs, never automated.
- PyPI CI (`.github/workflows/pypi.yml`): manually dispatched, builds 18 wheels + 1 sdist (linux-x86_64, macos-arm64, windows-x86_64 × Python 3.10–3.15).
- PyPI CI (`.github/workflows/pypi.yml`): manually dispatched, builds 24 wheels + 1 sdist (linux-x86_64, linux-aarch64, macos-arm64, windows-x86_64 × Python 3.10–3.15).

## Architecture References

Expand Down
38 changes: 37 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,41 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/),
and this project adheres to [Semantic Versioning](https://semver.org/).

## [0.3.0] - 2026-10-30

### Added

- Python: add the optional `eggfetch[httpx-transport]` extra with the
synchronous `EggFetchTransport` for HTTPX 0.28.x. The adapter preserves
HTTPX request/response semantics and maps EggFetch failures to HTTPX's
exception hierarchy. Async HTTPX transports and HTTP/3 are not supported by
this integration.
- PyPI: build and smoke-test Linux aarch64 wheels on native ARM runners for
Python 3.10–3.15. The release matrix now produces 24 wheels plus one source
distribution.

### Fixed

- Core: on HTTP/1.1 and HTTP/2 routes, apply the configured read timeout while
waiting for response headers, beginning after request-body production
completes. Connect and upload time remain owned by their respective timeout
phases; the total deadline keeps precedence. Experimental HTTP/3 retains its
documented body-read-only timeout behavior. This brings the synchronous
HTTPX transport bridge in line with HTTPX read-timeout behavior.
- Benchmarks: restore blocking mode on accepted proxy sockets. The listener
remains nonblocking for shutdown, but accepted sockets are explicitly made
blocking before the handler uses blocking reads. This prevents intermittent
`WouldBlock`/`IncompleteMessage` failures on platforms that preserve
nonblocking mode on accepted sockets.
- Security: update Tokio, zstd, and Brotli to versions that clear the live
RustSec advisories recorded during the release qualification pass.

### Changed

- The coordinated pre-1.0 version is now `0.3.0` across all six published
crates and the PyPI package. The new Python integration is opt-in and does
not change AInews or other consumers' HTTP client behavior.

## [0.2.2] - 2026-10-02

### Added
Expand Down Expand Up @@ -291,7 +326,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
- Multipart boundary validation
- Proxy authentication boundary enforcement

[Unreleased]: https://github.com/eggstack/eggfetch/compare/v0.2.2...HEAD
[Unreleased]: https://github.com/eggstack/eggfetch/compare/v0.3.0...HEAD
[0.3.0]: https://github.com/eggstack/eggfetch/compare/v0.2.2...v0.3.0
[0.2.2]: https://github.com/eggstack/eggfetch/releases/tag/v0.2.2
[0.2.1]: https://github.com/eggstack/eggfetch/releases/tag/v0.2.1
[0.2.0]: https://github.com/eggstack/eggfetch/releases/tag/v0.2.0
Expand Down
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 0 additions & 41 deletions compat/httpx/0.28.1/allowed-differences.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1453,45 +1453,4 @@ review-milestone = "stage-d"
tests = ["test_url_query.py"]
non_expiring = true

[[difference]]
id = "CODES-CTOR-001"
category = "stage-bounded"
classification = "intentional"
symbol = "codes"
difference-type = "parameter-name"
member = "codes"
reference = "['self', 'args', 'kwargs']"
candidate = "['self', 'args', 'kwds']"
behavior-case = "codes-constructor-differences"
reference-behavior = "HTTPX codes constructor uses kwargs"
eggfetch-behavior = "eggfetch codes constructor uses kwds"
rationale = "eggfetch codes uses kwds instead of kwargs due to IntEnum metaclass."
compatibility-stage-impact = "stage-c"
security-improvement = "false"
migration-impact = "None; internal implementation detail"
owner = "eggfetch-team"
review-milestone = "stage-d"
tests = ["test_config_objects.py"]
non_expiring = true

[[difference]]
id = "CODES-CTOR-001-2"
category = "stage-bounded"
classification = "intentional"
symbol = "codes"
difference-type = "parameter-kind"
member = "self"
reference = "POSITIONAL_ONLY"
candidate = "POSITIONAL_OR_KEYWORD"
behavior-case = "codes-constructor-differences"
reference-behavior = "HTTPX codes self is POSITIONAL_ONLY"
eggfetch-behavior = "eggfetch codes IntEnum self is POSITIONAL_OR_KEYWORD"
rationale = "eggfetch codes IntEnum uses positional-or-keyword self."
compatibility-stage-impact = "stage-c"
security-improvement = "false"
migration-impact = "None; internal implementation detail"
owner = "eggfetch-team"
review-milestone = "stage-d"
tests = ["test_config_objects.py"]
non_expiring = true

8 changes: 4 additions & 4 deletions compat/httpx/0.28.1/profile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ rebaseline-sha = "f9eb1a455907d43210886b7b047d18bde8716652"
# log is not duplicated here.
stage = "stage-c-qualified"
status = "qualified"
qualification-sha = "b74cf8919fb691e6bbbd3b6f7b90be29206b2e0f"
qualification-date = "2026-10-28"
previous-qualification-sha = "822b7246bab79cca7c54c32aaf403c1366472c57"
qualification-sha = "6093cc7aa0961194f096cbf2f92c3fc057671a34"
qualification-date = "2026-10-31"
previous-qualification-sha = "b74cf8919fb691e6bbbd3b6f7b90be29206b2e0f"
historical-current-qualification-sha = "42a9c96db5b25354843bd83bd458c71757e95651"
historical-qualification-sha = "26fa619299fb8d447f25cbcb5eb713a1f537a30c, 312cd4402ea2b4b27bf54cf7dc36924a1d449adc, 015a56d7ec3edf186eec8ebccff01cbf5584274e, cc90f5ed561bbe10d4c26accc54ed3b916518f98, d034a1005857a7f403222dda4bda5f2f204a44fe, d24101be6ed7be64463813750da5b4043d9905ec, 5c7899fefb6df087dfa1b3578fbef9ba64f87742, 9ffa6cd85848fd16a424b65f73254351911777c4, c44d4f25ffebc1a792335163ae4bc106076b3963"
historical-qualification-sha = "b74cf8919fb691e6bbbd3b6f7b90be29206b2e0f, 26fa619299fb8d447f25cbcb5eb713a1f537a30c, 312cd4402ea2b4b27bf54cf7dc36924a1d449adc, 015a56d7ec3edf186eec8ebccff01cbf5584274e, cc90f5ed561bbe10d4c26accc54ed3b916518f98, d034a1005857a7f403222dda4bda5f2f204a44fe, d24101be6ed7be64463813750da5b4043d9905ec, 5c7899fefb6df087dfa1b3578fbef9ba64f87742, 9ffa6cd85848fd16a424b65f73254351911777c4, c44d4f25ffebc1a792335163ae4bc106076b3963"
reference = "httpx==0.28.1"

[reference]
Expand Down
4 changes: 3 additions & 1 deletion compat/httpx/0.28.1/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ pytest-asyncio>=0.21.0
pytest-timeout>=2.0.0

# Downstream behavioral fixtures
anthropic>=0.25.0
# Keep the SDK integration check aligned with AInews's pinned dependency. Newer
# Anthropic SDK major versions use the separately versioned httpx2 client.
anthropic==0.87.0
httpx-sse>=0.4.0
respx>=0.21.0
starlette>=0.27.0
Expand Down
32 changes: 32 additions & 0 deletions compat/httpx/0.28.1/resolved-differences.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2292,3 +2292,35 @@ tests = [
"test_native_proxy_tls.py::TestProxyForwarding::test_proxy_headers_candidate_for_async_client",
]
non_expiring = true

[[difference]]
id = "CODES-CTOR-001"
category = "resolved"
symbol = "codes"
behavior-case = "codes-constructor-differences"
reference-behavior = "HTTPX 0.28.1 codes exposes **kwargs."
eggfetch-behavior = "eggfetch codes exposes **kwargs, matching HTTPX 0.28.1."
rationale = "The HTTPX 0.28.1 API manifest now matches this constructor exactly; the former allowance is stale."
compatibility-stage-impact = "resolved"
security-improvement = "false"
migration-impact = "None; internal implementation detail"
owner = "eggfetch-team"
review-milestone = "release-0.3.0"
tests = ["test_config_objects.py"]
non_expiring = true

[[difference]]
id = "CODES-CTOR-001-2"
category = "resolved"
symbol = "codes"
behavior-case = "codes-constructor-differences"
reference-behavior = "HTTPX 0.28.1 codes self is POSITIONAL_ONLY."
eggfetch-behavior = "eggfetch codes self is POSITIONAL_ONLY, matching HTTPX 0.28.1."
rationale = "The HTTPX 0.28.1 API manifest now matches this parameter kind exactly; the former allowance is stale."
compatibility-stage-impact = "resolved"
security-improvement = "false"
migration-impact = "None; internal implementation detail"
owner = "eggfetch-team"
review-milestone = "release-0.3.0"
tests = ["test_config_objects.py"]
non_expiring = true
42 changes: 42 additions & 0 deletions compat/httpx2/2.12.0/allowed-differences.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,48 @@ review-milestone = "httpx2-baseline"
tests = ["test_httpx2_origin_reachability.py"]
non_expiring = true

[[difference]]
id = "H2X-CODES-001"
category = "intentional-difference"
classification = "intentional"
symbol = "codes"
difference-type = "parameter-name"
member = "codes"
reference = "['self', 'args', 'kwds']"
candidate = "['self', 'args', 'kwargs']"
behavior-case = "codes-constructor-differences"
reference-behavior = "httpx2 2.12.0 codes exposes **kwds."
eggfetch-behavior = "eggfetch codes exposes **kwargs."
rationale = "The IntEnum metaclass exposes a version-specific variadic keyword name; constructor behavior is unchanged and the HTTPX 0.28.1 facade matches its own reference."
compatibility-stage-impact = "baseline"
security-improvement = "false"
migration-impact = "None; internal introspection difference"
owner = "eggfetch-team"
review-milestone = "httpx2-baseline"
tests = ["test_config_objects.py"]
non_expiring = true

[[difference]]
id = "H2X-CODES-002"
category = "intentional-difference"
classification = "intentional"
symbol = "codes"
difference-type = "parameter-kind"
member = "self"
reference = "POSITIONAL_OR_KEYWORD"
candidate = "POSITIONAL_ONLY"
behavior-case = "codes-constructor-differences"
reference-behavior = "httpx2 2.12.0 codes self is POSITIONAL_OR_KEYWORD."
eggfetch-behavior = "eggfetch codes self is POSITIONAL_ONLY."
rationale = "The IntEnum metaclass exposes a version-specific self parameter kind; constructor behavior is unchanged and the HTTPX 0.28.1 facade matches its own reference."
compatibility-stage-impact = "baseline"
security-improvement = "false"
migration-impact = "None; internal introspection difference"
owner = "eggfetch-team"
review-milestone = "httpx2-baseline"
tests = ["test_config_objects.py"]
non_expiring = true

[[difference]]
id = "H2X-NEW-017"
category = "intentional-difference"
Expand Down
8 changes: 4 additions & 4 deletions compat/httpx2/2.12.0/profile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ created = "2026-09-10"
# log is not duplicated here.
stage = "stage-c-qualified"
status = "qualified"
qualification-sha = "b74cf8919fb691e6bbbd3b6f7b90be29206b2e0f"
qualification-date = "2026-10-28"
previous-qualification-sha = "822b7246bab79cca7c54c32aaf403c1366472c57"
qualification-sha = "6093cc7aa0961194f096cbf2f92c3fc057671a34"
qualification-date = "2026-10-31"
previous-qualification-sha = "b74cf8919fb691e6bbbd3b6f7b90be29206b2e0f"
historical-current-qualification-sha = "42a9c96db5b25354843bd83bd458c71757e95651"
historical-qualification-sha = "26fa619299fb8d447f25cbcb5eb713a1f537a30c, 312cd4402ea2b4b27bf54cf7dc36924a1d449adc, 015a56d7ec3edf186eec8ebccff01cbf5584274e"
historical-qualification-sha = "b74cf8919fb691e6bbbd3b6f7b90be29206b2e0f, 26fa619299fb8d447f25cbcb5eb713a1f537a30c, 312cd4402ea2b4b27bf54cf7dc36924a1d449adc, 015a56d7ec3edf186eec8ebccff01cbf5584274e"
reference = "httpx2==2.12.0"

[reference]
Expand Down
Loading
Loading