Skip to content

docs: Add uv guide#932

Merged
vdusek merged 9 commits into
masterfrom
docs/uv-guide
Jun 8, 2026
Merged

docs: Add uv guide#932
vdusek merged 9 commits into
masterfrom
docs/uv-guide

Conversation

@vdusek

@vdusek vdusek commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a "Manage your project with uv" guide covering the whole Actor lifecycle with the uv package and project manager: creating a project, the Actor scaffolding, running locally, installing the locked dependencies in the Dockerfile, deploying, and day-to-day dependency management.

  • docs/03_guides/10_uv.mdx — the guide.
  • docs/03_guides/code/uv_project/ — the backing example project, covered by the repo lint and type checks.
  • Quick-start guides list updated.

The documented flow was verified end to end (local apify run + a real Docker build/run). Since the Actor templates are pip-only for now, the guide carries an info banner pointing to apify/actor-templates#350. Companion template PR: apify/actor-templates#800.

TODO before merging

  • Clone the guide content (docs/03_guides/10_uv.mdx + docs/03_guides/code/uv_project/) into website/versioned_docs/version-3.4/ so it also shows in the current docs version, not only under "next".

Add a new guide on managing Actor projects with the uv package manager,
covering project setup, local development with the Apify CLI, the uv-based
Dockerfile, deployment, and dependency management.
@vdusek vdusek requested a review from szaganek as a code owner June 3, 2026 17:57
@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 Jun 3, 2026
@vdusek vdusek self-assigned this Jun 3, 2026
@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 Jun 3, 2026
@github-actions github-actions Bot added this to the 142nd sprint - Tooling team milestone Jun 3, 2026
@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.98%. Comparing base (b7ba52d) to head (4c64e66).
⚠️ Report is 12 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #932      +/-   ##
==========================================
+ Coverage   86.94%   86.98%   +0.03%     
==========================================
  Files          48       48              
  Lines        2942     2943       +1     
==========================================
+ Hits         2558     2560       +2     
+ Misses        384      383       -1     
Flag Coverage Δ
e2e 37.75% <ø> (+0.19%) ⬆️
integration 59.12% <ø> (+0.21%) ⬆️
unit 75.70% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek vdusek marked this pull request as draft June 3, 2026 18:00
@vdusek vdusek removed the request for review from szaganek June 3, 2026 18:00
…n uv guide

The scaffolding section referenced a Dockerfile that is only created later in
the guide, which was confusing without a pointer. The local run example also
used the optional --purge flag, which is not needed for the tutorial flow.
@vdusek vdusek marked this pull request as ready for review June 3, 2026 18:22
"Use uv" was too terse - unlike the scraping-library guides, the tool name
alone does not convey the guide's purpose. The new title mirrors the guide's
intro sentence and the verb-first sidebar convention.
@vdusek vdusek added the documentation Improvements or additions to documentation. label Jun 3, 2026
@vdusek vdusek requested review from Mantisus and szaganek June 3, 2026 18:25
@vdusek

vdusek commented Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

It would be great if @Mantisus could review the overall Python correctness (and factual accuracy?), and @szaganek could review the content. Thank you guys 🙂.

Comment thread docs/03_guides/code/uv_project/Dockerfile
The guide pointed readers to a python-uv template that isn't published. An
info banner now explains templates are pip-only for now and links the
tracking issue apify/actor-templates#350.

@Mantisus Mantisus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just a few points

Comment thread docs/03_guides/08_uv.mdx Outdated
Comment thread docs/03_guides/08_uv.mdx Outdated
Comment thread docs/03_guides/code/uv_project/pyproject.toml Outdated
@vdusek vdusek requested a review from Mantisus June 4, 2026 07:59

@szaganek szaganek 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.

Quite a few styling suggestions, I'd also delete some fluff, use more procedures for readability.

If you could please try not use hyphens/en dashes so much but create shorter sentences instead, that would be amazing. I think most of my comments were about that 😅

Comment thread docs/03_guides/10_uv.mdx Outdated
Comment thread docs/03_guides/10_uv.mdx Outdated
Comment thread docs/03_guides/10_uv.mdx Outdated
Comment thread docs/03_guides/10_uv.mdx Outdated
Comment thread docs/03_guides/10_uv.mdx Outdated
Comment thread docs/03_guides/10_uv.mdx Outdated
Comment thread docs/03_guides/10_uv.mdx Outdated
Comment thread docs/03_guides/10_uv.mdx Outdated
Comment thread docs/03_guides/10_uv.mdx Outdated
Comment thread docs/03_guides/10_uv.mdx Outdated
@vdusek

vdusek commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Quite a few styling suggestions, I'd also delete some fluff, use more procedures for readability.

If you could please try not use hyphens/en dashes so much but create shorter sentences instead, that would be amazing. I think most of my comments were about that 😅

Thanks. I'll update it, and I'll try to update all other doc PRs in this regard as well (the styling, dashes, shorter sentences).

@vdusek vdusek requested a review from szaganek June 8, 2026 11:16
@vdusek vdusek merged commit fd1741c into master Jun 8, 2026
26 checks passed
@vdusek vdusek deleted the docs/uv-guide branch June 8, 2026 11:56
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. documentation Improvements or additions to documentation. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants