cement/Makefile
2018-06-23 02:16:59 -05:00

38 lines
755 B
Makefile

.PHONY: all dev test comply docs clean dist dist-upload
all: test comply comply-test api-docs clean
dev:
docker-compose up -d
docker-compose exec cement /bin/ash
test: comply
python -m pytest -v --cov=cement --cov-report=term --cov-report=html:coverage-report tests/
test-core: comply
python -m pytest -v --cov=cement.core --cov-report=term --cov-report=html:coverage-report tests/core
comply:
flake8 cement/ tests/
comply-fix:
autopep8 -ri cement/ tests/
docs:
python setup.py build_sphinx
@echo
@echo DOC: "file://"$$(echo `pwd`/doc/build/html/index.html)
@echo
clean:
find . -name '*.py[co]' -delete
rm -rf doc/build
dist: clean
rm -rf dist/*
python setup.py sdist
python setup.py bdist_wheel
dist-upload:
twine upload dist/*