Removing uv as package manager. Isues with using it on network volume.
This commit is contained in:
parent
c183070471
commit
71130424e3
347 changed files with 1271 additions and 1851 deletions
20
.envrc
Normal file → Executable file
20
.envrc
Normal file → Executable file
|
|
@ -7,7 +7,7 @@ if [[ -d ".venv" ]]; then
|
|||
export PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||
|
||||
# Verify we're using the right Python
|
||||
if [[ -x "$VIRTUAL_ENV/bin/python" ]]; then
|
||||
if [[ -x "$VIRTUAL_ENV/bin/python3.14" ]]; then
|
||||
export PYTHONPATH="$PWD/src:$PYTHONPATH"
|
||||
echo "Activated virtual environment: $VIRTUAL_ENV"
|
||||
else
|
||||
|
|
@ -18,13 +18,19 @@ else
|
|||
echo "Warning: No .venv directory found"
|
||||
fi
|
||||
|
||||
# Run uv sync to update packages
|
||||
if command -v uv &> /dev/null; then
|
||||
echo "Running uv sync..."
|
||||
uv sync
|
||||
echo "Packages updated successfully"
|
||||
# Run pip to update packages inside the venv
|
||||
echo "Running pip update..."
|
||||
"$VIRTUAL_ENV/bin/python3.14" -m pip install --upgrade pip
|
||||
"$VIRTUAL_ENV/bin/python3.14" -m pip install --no-cache-dir -r requirements.txt
|
||||
"$VIRTUAL_ENV/bin/python3.14" -m pip freeze > requirements.txt
|
||||
sed -E -i '' 's/==/>=/1' requirements.txt
|
||||
|
||||
# Update requirements.txt with pinned versions only if installs succeeded
|
||||
if [[ $? -eq 0 ]]; then
|
||||
"$VIRTUAL_ENV/bin/python3.14" -m pip freeze > requirements.txt
|
||||
echo "Packages updated successfully"
|
||||
else
|
||||
echo "Warning: uv not found"
|
||||
echo "pip install failed; requirements.txt not updated"
|
||||
fi
|
||||
|
||||
echo "Environment configured with direnv"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue