.PHONY: build install 

requirements:
	python -m pip install -r requirements.txt

requirements-mamba:
	mamba install --file requirements.txt

requirements-conda:
	conda install --file requirements.txt

build:
	python -m build -o wheelhouse

install:
	pip install .

#python setup.py install

install-dev: 
	pip install --editable .

# below is specifically for building / forcing building of cython code. 
# build-cython:
# 	python setup.py build_ext -i --force

dev:
	pip install --upgrade pytest black isort wheel pdoc3 coverage build

dev-mamba:
	mamba install pytest black isort wheel pdoc3 coverage

dev-conda:
	conda install pytest black isort wheel pdoc3 coverage

docs:
	pdoc --output-dir docs/ --html --force template_python_library
	mv docs/template_python_library/* docs/
	rm -rf docs/template_python_library
# {REPLACE}

test:
	set -e
	pytest

lint:
	set -e
	isort -c .
	black --check --config pyproject.toml .

autoformat:
	set -e
	isort .
	black --config pyproject.toml .

clean:
	rm -rf build dist template_python_library.egg-info  
#{REPLACE}

coverage: 
	coverage run -m pytest
	# Make the html version of the coverage results. 
	coverage html 