This repository was archived by the owner on May 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Try using uv
for worker
#896
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9ad3135
Try using `uv` for worker
Swatinem 9c0bcc8
Build Docker container image with wheels
michelletran-codecov 707d492
Fix SQLAlchemy upgrade incompatibilities
michelletran-codecov 94535f7
add `mypy` and `ruff` to dev-dependencies, sync docker dependencies
Swatinem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,2 @@ | ||
#!/bin/bash | ||
# shellcheck disable=SC1091 | ||
|
||
if [ ! -d .venv ]; then | ||
echo "warning: creating virtualenv for the first time" | ||
if which pyenv > /dev/null; then | ||
eval "$(pyenv init -)" | ||
pyenv install -s | ||
else | ||
echo "warning: pyenv not installed, using python3 and hoping for the best" | ||
fi | ||
|
||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip install -r requirements.txt | ||
pip install ruff | ||
else | ||
source .venv/bin/activate | ||
unset PS1 | ||
fi | ||
uv sync | ||
source .venv/bin/activate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[project] | ||
name = "worker" | ||
version = "0.1.0" | ||
description = "The codecov worker" | ||
readme = "README.md" | ||
requires-python = ">=3.12" | ||
dependencies = [ | ||
"asgiref>=3.8.1", | ||
"celery>=5.4.0", | ||
"click>=8.1.7", | ||
"codecov-ribs>=0.1.18", | ||
"django-postgres-extra>=2.0.8", | ||
"django<5", | ||
"google-cloud-pubsub>=2.27.1", | ||
"httpx>=0.27.2", | ||
"jinja2>=3.1.4", | ||
"lxml>=5.3.0", | ||
"openai>=1.54.4", | ||
"orjson>=3.10.11", | ||
"polars>=1.13.1", | ||
"psycopg2-binary>=2.9.10", | ||
"python-json-logger>=2.0.7", | ||
"pyyaml>=6.0.2", | ||
"redis>=5.2.0", | ||
"regex>=2024.11.6", | ||
"requests>=2.32.3", | ||
"sentry-sdk>=2.18.0", | ||
"shared", | ||
"sqlalchemy<2", | ||
"statsd>=4.0.1", | ||
"stripe>=11.2.0", | ||
"test-results-parser", | ||
"timestring", | ||
"zstandard>=0.23.0", | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
py-modules = [] | ||
|
||
[tool.uv] | ||
dev-dependencies = [ | ||
"factory-boy>=3.3.1", | ||
"freezegun>=1.5.1", | ||
"mock>=5.1.0", | ||
"mypy>=1.13.0", | ||
"pre-commit>=4.0.1", | ||
"pytest-asyncio>=0.24.0", | ||
"pytest-celery>=1.1.3", | ||
"pytest-cov>=6.0.0", | ||
"pytest-django>=4.9.0", | ||
"pytest-freezegun>=0.4.2", | ||
"pytest-mock>=3.14.0", | ||
"pytest-sqlalchemy>=0.2.1", | ||
"pytest>=8.3.3", | ||
"respx>=0.21.1", | ||
"ruff>=0.7.4", | ||
"sqlalchemy-utils>=0.41.2", | ||
"time-machine>=2.16.0", | ||
"vcrpy>=6.0.2", | ||
] | ||
|
||
[tool.uv.sources] | ||
timestring = { git = "https://github.com/codecov/timestring", rev = "d37ceacc5954dff3b5bd2f887936a98a668dda42" } | ||
test-results-parser = { git = "https://github.com/codecov/test-results-parser", rev = "94ff26cb083a02ff726dd2497c2129e4aaf5f7cd" } | ||
shared = { git = "https://github.com/codecov/shared", rev = "511b553fd19113f1716326b0363b9d9a4afca1d7" } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.