This repository provides a sample demonstrating the basic usage of combining the Python package manager uv with a Makefile. It offers a simple addition package using Python 3.12.
To use this project, uv must be installed on your system beforehand.
Install uv (macOS / Linux):
curl -LsSf https://astral.sh/uv/install.sh | shAlternatively, refer to the uv documentation for other installation methods.
# Create a Python virtual environment and install dependencies
make setup
# Run the program (as a module)
make run
# Check code using Ruff
make lint
# Format code using Ruff
make format
# Build the distribution package
make build
# Show help for available commands
make helpexamples
uv venv --python=3.10uv venv --python=3.11uv venv --python=3.12activate
source .venv/bin/activate