Repository navigation
feat!: migrate to apify-client 3.x and require Python 3.11+ - #45
Merged
Merged
Conversation
daveomri
marked this pull request as ready for review
October 15, 2026 07:50
vdusek
suggested changes
Oct 15, 2026
drobnikj
approved these changes
Oct 16, 2026
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Widens
apify-clientfrom>=2.3.0,<3.0.0to>=3.3.0,<4.0.0so this package can be installed alongside Apify Python SDK v4 (requiresapify-client>=3.1.0). Unblocks thepython-crewaitemplate's SDK v4 bump.Breaking
apify-client3.x). CI matrix is 3.11 to 3.13.2025-01-01T00:00:00+00:00) instead of the API's rawZform. Same instant, different spelling.Tool names, signatures and envelope keys are otherwise unchanged.
Notes
Runrequiresgeneral_accessand threeRunStatsfields that are optional by 3.3.0, andactor().get()returnsActorthere vsActorResourcenow. Pinning to the tested version avoids fixtures that pass locally but fail on the oldest allowed client..call()now returns aRunmodel (run.default_dataset_id) and takesrun_timeoutas atimedelta. Publictimeout_secsparams are unchanged; conversion happens at the call boundary.default_dataset_id/id(requiredstron 3.x), the_isotimestamp helper (run timestamps are always datetimes), and the tests that could only reach them with an invalidRun.Test plan
mypy,ruff check,ruff format --checkpass on Python 3.13APIFY_TOKENRun fixtures are now real
Runinstances rather than dicts, so leftover dict-style access fails the suite instead of passing against aMagicMock.Closes #39
co-created with Claude