Skip to content

feat: support uv-managed Python Actors in apify create#1274

Open
vdusek wants to merge 5 commits into
masterfrom
feat/create-uv-support
Open

feat: support uv-managed Python Actors in apify create#1274
vdusek wants to merge 5 commits into
masterfrom
feat/create-uv-support

Conversation

@vdusek

@vdusek vdusek commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

apify create hard-coded pip install -r requirements.txt for Python Actors, so creating a uv-managed template — which ships pyproject.toml + uv.lock and no requirements.txt — failed during dependency install with Could not open requirements file.

create now detects uv-managed Python/Scrapy projects by the presence of a committed uv.lock and installs their dependencies with uv sync instead. The check runs before the system-Python detection, since uv provides the interpreter pinned in .python-version itself, and falls back to a warning with install instructions when the uv executable isn't found.

This unblocks the upcoming python-uv template (apify/actor-templates#800).

@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Jul 10, 2026
@vdusek vdusek self-assigned this Jul 10, 2026
@vdusek
vdusek marked this pull request as ready for review July 13, 2026 08:28
@vdusek
vdusek requested review from DaveHanns and l2ysho as code owners July 13, 2026 08:28

@l2ysho l2ysho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine 🚀 . Added some questions and nits. Only thing worth of attention is https://github.com/apify/apify-cli/pull/1274/changes#r3586664002 but it is non-blocking.
also it would be fine to ad some tests (at least happy path).

Comment thread src/commands/create.ts
Comment thread src/commands/create.ts
Comment thread src/commands/create.ts Outdated
Comment thread src/commands/create.ts
@github-actions github-actions Bot added this to the 145th sprint - Tooling team milestone Jul 21, 2026
@github-actions github-actions Bot added the tested Temporary label used only programatically for some analytics. label Jul 21, 2026
@vdusek

vdusek commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Also happy-path tests for uv detection in useCwdProject and for getInstallCommandSuggestion are added

@vdusek

vdusek commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

let's merge #1292 at first

@l2ysho
l2ysho self-requested a review July 21, 2026 13:00

@l2ysho l2ysho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants