Go to file
psoubrie beeb62025e done 2024-04-08 21:23:16 +02:00
.gitignore done 2024-04-08 21:23:16 +02:00
img2xlsx.py done 2024-04-08 21:23:16 +02:00
readme.md done 2024-04-08 21:23:16 +02:00
requirements.txt done 2024-04-08 21:23:16 +02:00

readme.md

Astral-sh UV

Getting started

# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows.
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# With pip.
pip install uv

Create virtual environment

uv venv  # Create a virtual environment at .venv.

Activate virtual environment

# On macOS and Linux.
source .venv/bin/activate

# On Windows.
.venv\Scripts\activate

Install packages

uv pip install flask                # Install Flask.
uv pip install -r requirements.txt  # Install from a requirements.txt file.
uv pip install -e .                 # Install the current project in editable mode.
uv pip install "package @ ."        # Install the current project from disk.
uv pip install "flask[dotenv]"      # Install Flask with "dotenv" extra.

Generate requirements.txt

uv pip freeze | uv pip compile - -o requirements.txt  # Lock the current environment.

Update to requirements.txt

uv pip sync requirements.txt