-
-
Notifications
You must be signed in to change notification settings - Fork 75
upgrade websockets and drop 3.8
#605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2c859f8 to
8dd370a
Compare
|
I remember overall problems with big payloads on new implementation of async. Do you own any custom feed btw? Could you please leave these firehose on for a few days to test the stability? The best way is to just run bluesky feed generator repo with atproto SDK from this PR |
okay! sorry about delay but custom feed is now up! will report in a couple days |
|
okay! i've had some troubles keeping the feed exactly up to date (its sitting about 1 day behind) but this has been the case regardless if my deployment uses however, I have yet to encounter any evidence that the websocket changes are to blame here. I'm happy to detail more of what I've been seeing and why I don't suspect the websocket changes as the cause of my lagging feed. im also happy to keep this on hold (keeping my feed alive) until I can resolve the late feed issue to prove to ourselves the websocket changes are unrelated - I just have not had the time to dig back in yet |
🤷 it seems like a judgement call but with my maintainer hat on i tend towards cutting the old as soon as possible, since in my experience, upper bound pins accommodating the slowest-updating percentile of users is a net burden on maintainers and bleeding edge users. because 3.8 is explicitly EoL, in my opinion its on that 10% to pin their stuff or upgrade for example, I just tried to use ⎿ Error: × No solution found when resolving dependencies:
╰─▶ Because atproto-mcp depends on atproto>=0.0.55 and atproto>=0.0.55
depends on websockets>=12,<14, we can conclude that all of:
atproto<=0.0.55
atproto==0.0.56
atproto==0.0.57
atproto==0.0.58
atproto==0.0.59
atproto==0.0.60
atproto==0.0.61so i'm going to have to pin to this branch |
|
FYI I did the last release with Python 3.8 support today. We are gonna end support of it in the next release |
|
you are hero! thank you! |


closes #581
this PR
websockets 14.0+ (rightfully) dropped 3.8 support, so naively it seems like itd be a good time to drop it here too
This pull request updates the minimum supported Python version from 3.8 to 3.9 across the project and makes adjustments to dependencies and code to align with this change. It also updates the
websocketslibrary to version 15+ and modifies related code to accommodate new features and behaviors introduced in this version.Python version upgrade:
.github/workflows/codegen.yml,.github/workflows/publish_release.yml,.github/workflows/ruff.yml,.github/workflows/test.yml,.github/workflows/update_lexicons.yml) and documentation (.readthedocs.yaml,README.md,docs/source/readme.content.md). [1] [2] [3] [4] [5] [6] [7] [8]pythondependency range inpyproject.toml. [1] [2]Dependency updates:
websocketslibrary dependency to>=15,<16inpyproject.tomland adjusted related code to handle the newping_intervalparameter and maintain compatibility with the updated library. [1] [2] [3]pyproject.tomlconfigurations to reflect the Python 3.9 target version for tools likemypyandruff.Code changes for compatibility:
packages/atproto_firehose/client.pyto match the newwebsocketslibrary structure and functionality. [1] [2]_get_clientand_get_async_clientmethods inpackages/atproto_firehose/client.pyto disable automatic pings for the sync client and explicitly setping_intervalfor the async client.tested with