HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/local/bin/dhwp/Makefile
.PHONY: clean virtualenv test docker dist dist-upload

clean:
	find . -name '*.py[co]' -delete

virtualenv:
	python3 -m venv --prompt '|> dhwp <| ' env
	env/bin/pip install --upgrade pip
	env/bin/pip install -r requirements-dev.txt
	env/bin/python setup.py develop
	@echo
	@echo "VirtualENV Setup Complete. Now run: source env/bin/activate"
	@echo

test:
	python -m pytest \
		-v \
		--cov=dhwp \
		--cov-report=term \
		--cov-report=html:coverage-report \
		tests/
style:
	env/bin/pycodestyle --config .pycodestyle dhwp/

autopep:
	env/bin/autopep8 dhwp/ -r --in-place

docker: clean
	docker build -t dhwp:latest .

dist: clean
	rm -rf dist/*
	python setup.py sdist
	python setup.py bdist_wheel

dist-upload:
	twine upload dist/*