mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 13:42:03 +00:00
38 lines
756 B
Makefile
38 lines
756 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`/docs/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/*
|