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

Switch package manager to poetry (or similar) #2779

Open
suejung-sentry opened this issue Oct 28, 2024 · 1 comment · May be fixed by codecov/codecov-api#988
Open

Switch package manager to poetry (or similar) #2779

suejung-sentry opened this issue Oct 28, 2024 · 1 comment · May be fixed by codecov/codecov-api#988
Assignees

Comments

@suejung-sentry
Copy link

Monolith project requires api, worker, and shared to live in one repo (monorepo) and be able to deploy from one image with 2 entrypoints (one for worker, one for api). The docker script will be bootstrapped to start either relevant service on command.

The monorepo will use Git submodules (see POC repo). In it, we need worker and api to use the same version of shared. Our current tool pip-compile that generates lockfiles with dependency versions does not let us pin the shared version to be same in local development and prod.

Other tools like poetry may allow this functionality. In order to use it in the monolith, it must first be implemented within api, worker, and shared (then later the config can get merged).

This task includes:

  1. Evaluate alternatives to poetry (uv? setup-tools?)
  2. Identify any new prereq work (e.g., to get poetry shared, need to first upgrade all libraries to version X of library Z)
  3. Cutover to the new tool in shared, then api, then worker (shared first to ensure compatibility)
@suejung-sentry suejung-sentry self-assigned this Oct 28, 2024
@suejung-sentry suejung-sentry changed the title Monolith - pre-work Switch package manager to poetry (or similar) Nov 8, 2024
@michelletran-codecov
Copy link

For UV, it might be useful to experiment with workspaces to specified local shared libs: https://docs.astral.sh/uv/concepts/workspaces/

@suejung-sentry suejung-sentry linked a pull request Nov 21, 2024 that will close this issue
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 a pull request may close this issue.

2 participants