mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
Workaround uv bug to allow more updates
This commit is contained in:
parent
05076c3f40
commit
d555e2c71f
7 changed files with 25 additions and 19 deletions
|
@ -6,8 +6,11 @@ set -e
|
|||
# Add verbosity flag to see more details about dependency resolution
|
||||
VERBOSITY="-v" # Use -v for less detail, -vvv for even more detail
|
||||
|
||||
# Attention: uv doesn't update to minor releases when output-file exists!
|
||||
|
||||
# First compile the common constraints of the full requirement suite
|
||||
# to make sure that all versions are mutually consistent across files
|
||||
rm requirements/common-constraints.txt
|
||||
uv pip compile \
|
||||
$VERBOSITY \
|
||||
--no-strip-extras \
|
||||
|
@ -17,6 +20,7 @@ uv pip compile \
|
|||
$1
|
||||
|
||||
# Compile the base requirements
|
||||
rm tmp.requirements.txt
|
||||
uv pip compile \
|
||||
$VERBOSITY \
|
||||
--no-strip-extras \
|
||||
|
@ -35,6 +39,7 @@ uv pip compile \
|
|||
SUFFIXES=(dev help browser playwright)
|
||||
|
||||
for SUFFIX in "${SUFFIXES[@]}"; do
|
||||
rm requirements/requirements-${SUFFIX}.txt
|
||||
uv pip compile \
|
||||
$VERBOSITY \
|
||||
--no-strip-extras \
|
||||
|
@ -43,3 +48,10 @@ for SUFFIX in "${SUFFIXES[@]}"; do
|
|||
requirements/requirements-${SUFFIX}.in \
|
||||
$1
|
||||
done
|
||||
|
||||
# There were too many different versions required in torch
|
||||
# https://github.com/pytorch/pytorch/issues/145225
|
||||
# https://github.com/pytorch/pytorch/pull/147197
|
||||
# https://github.com/pytorch/pytorch/issues/151312
|
||||
sed -i '' 's/^sympy==1.13.1$/sympy==1.13.3/g' requirements/common-constraints.txt requirements/requirements-help.txt
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue