.PHONY: install_deps clean build

install_deps:
	python3 -m pip install build
	python3 -m pip install twine

# Install package from local sources, in editable mode (i.e. changes reflect immediately)
dev:
	pip3 uninstall -y redis
	pip3 uninstall -y redis_command_generator
	pip3 install -e .

install_latest:
	pip3 uninstall -y redis
	pip3 uninstall -y redis_command_generator
	pip3 install redis_command_generator

clean:
	rm -rf dist

build: clean
	poetry update --lock
	python3 -m build
