Skip to content
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

Use UV to install packages much faster #1350

Closed
tugoavenza opened this issue Sep 17, 2024 · 4 comments
Closed

Use UV to install packages much faster #1350

tugoavenza opened this issue Sep 17, 2024 · 4 comments
Labels
auto-closed [Bot] Closed, details in comments no-activity [Bot] Closing soon if no new activity

Comments

@tugoavenza
Copy link

Use UV - An extremely fast Python package and project manager, written in Rust to speed up the installation of dependencies https://github.com/astral-sh/uv

Context

Zappa creates a virtual env with all the dependencies for the app for Lambda handler, and zips it. UV is 10-100x faster than pip. We could see a great speed boost.

@sridhar562345
Copy link
Contributor

Use UV - An extremely fast Python package and project manager, written in Rust to speed up the installation of dependencies https://github.com/astral-sh/uv

Context

Zappa creates a virtual env with all the dependencies for the app for Lambda handler, and zips it. UV is 10-100x faster than pip. We could see a great speed boost.

Zappa doesn't install the packages in virtual env itself, it zips the already installed packages in virtual env. So, I don't see UV has anything to do with Zappa.

So you can use UV to install packages in your virtual env instead of pip.

@audioboxer217
Copy link

I can confirm this. I use uv instead of pip now and it works fine.

Steps

  1. uv init
    • or setup your 'pyproject.toml' and '.python-version' manually
  2. uv add zappa
    • then repeat uv add for any other dependencies
    • add --dev for Dev-only dependencies
  3. uv run zappa ... for any zappa commands
    • you could also do source .venv/bin/activate as uv sets up the venv, but it's not really the way uv was intended to run.

Copy link

Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.

@github-actions github-actions bot added the no-activity [Bot] Closing soon if no new activity label Jan 21, 2025
Copy link

Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue.

@github-actions github-actions bot added the auto-closed [Bot] Closed, details in comments label Jan 31, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-closed [Bot] Closed, details in comments no-activity [Bot] Closing soon if no new activity
Projects
None yet
Development

No branches or pull requests

3 participants