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

feat: Use uv package manager #988

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

feat: Use uv package manager #988

wants to merge 4 commits into from

Conversation

suejung-sentry
Copy link
Contributor

@suejung-sentry suejung-sentry commented Nov 18, 2024

Update api to use a more modern package manager (uv). This will let us more easily convert to monolith in the future.

Shared is getting converted in here: codecov/shared#423
Worker is getting converted in here: codecov/worker#896

Notable changes

  • I moved over existing requirements.in 1:1 into new pyproject.toml to use uv-tools for build instead of pip-compile. Any deps that appeared to be used for dev only were added to dev-dependencies. The new lockfile will be uv.lock
  • I updated the existing use of sentry-sdk[celery] to fix its build error. As long as we use CeleryIntegration, can remove the custom wrapping with _wrap_async
  • Docker and Makefile stuff was updated to match that done for worker in above

Closes codecov/engineering-team#2779

@@ -57,6 +56,7 @@ FROM self-hosted as self-hosted-runtime
USER root
ARG EXTERNAL_DEPS_FOLDER=./external_deps
RUN mkdir $EXTERNAL_DEPS_FOLDER
# TODO - replace the pip install here?
Copy link
Contributor Author

@suejung-sentry suejung-sentry Nov 20, 2024

Choose a reason for hiding this comment

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

TODO - look into the build for self-hosted?

@suejung-sentry suejung-sentry force-pushed the sshin/uv branch 5 times, most recently from 7022337 to eac6df1 Compare November 21, 2024 01:07
description = "Codecov's API layer"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO - these are ported over to align with existing requirements.in. Go through and pin these to max versions in existing requirements.txt so not introducing any regressions by using an old version of deps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch package manager to poetry (or similar)
1 participant