Skip to content

fix: revert git dependency, restore monkeypatch - PyPI rejects direct refs#18

Merged
aradng merged 1 commit into
mainfrom
fix/revert-git-dep-restore-shim
Jul 13, 2026
Merged

fix: revert git dependency, restore monkeypatch - PyPI rejects direct refs#18
aradng merged 1 commit into
mainfrom
fix/revert-git-dep-restore-shim

Conversation

@aradng

@aradng aradng commented Jul 13, 2026

Copy link
Copy Markdown
Owner

#16 broke the publish pipeline. PyPI's upload validation hard-rejects any package that declares a direct git/URL dependency:

HTTP Error 400: Bad Request
Can't have direct dependency: faststream[confluent,otel] @ git+https://github.com/ag2ai/faststream.git@9d54a6d8...

That's enforced on every upload, not something we can configure around - so 0.4.49 never actually published (confirmed on PyPI, nothing partial), and every future merge to main would also fail at the same step until this is fixed.

Reverts to a plain faststream[otel,confluent] PyPI dependency and restores the AsyncConfluentFastProducerImpl.publish() monkeypatch from 0.4.48. ag2ai/faststream#2932 is merged upstream but has no PyPI release yet, so the shim needs to stay until one exists - there's no way to get the real fix installed from PyPI alone right now.

Bumps to 0.4.50.

Test plan

  • Full tests/kafka/ suite passes (18/18) with the restored shim.
  • Confirmed faststream's lock entry is a genuine PyPI wheel/sdist again, no [package.source] git block.
  • ruff clean.

… refs

0.4.49's publish failed: PyPI's upload validation hard-rejects any package
declaring a direct git/URL dependency (HTTP 400 "Can't have direct
dependency"). That's not a config issue - it's a policy PyPI enforces on
every upload, so pointing the kafka extra at faststream's git main broke
the publish step for good, not just this one release.

Revert to a plain "faststream[otel,confluent]" PyPI dependency and
restore the AsyncConfluentFastProducerImpl.publish() monkeypatch from
0.4.48. ag2ai/faststream#2932 is merged upstream but has no PyPI release
yet, so the shim stays until one exists.

Bumps to 0.4.50 (0.4.49 never actually published - the tarball was
rejected before completing).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@aradng aradng merged commit dfed93c into main Jul 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant