cement/Makefile

60 lines
1.4 KiB
Makefile
Raw Normal View History

2018-11-06 17:07:29 +00:00
.PHONY: dev test test-core comply-fix docs clean dist dist-upload docker docker-push
2018-02-02 22:48:26 +00:00
dev:
docker-compose up -d
2018-07-18 18:38:14 +00:00
docker-compose exec cement pip install -r requirements-dev.txt
docker-compose exec cement python setup.py develop
2018-07-18 19:01:36 +00:00
docker-compose exec cement /bin/bash
test: comply
2018-02-02 22:44:04 +00:00
python -m pytest -v --cov=cement --cov-report=term --cov-report=html:coverage-report tests/
2018-06-23 07:16:59 +00:00
test-core: comply
python -m pytest -v --cov=cement.core --cov-report=term --cov-report=html:coverage-report tests/core
2018-08-21 04:47:22 +00:00
virtualenv:
virtualenv --prompt '|> cement <| ' env
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
virtualenv-windows:
virtualenv --prompt '|> cement <| ' env-windows
2018-08-21 06:13:17 +00:00
env-windows\\Scripts\\pip.exe install -r requirements-dev-windows.txt
env-windows\\Scripts\\python.exe setup.py develop
2018-08-21 04:47:22 +00:00
@echo
2018-08-21 06:13:17 +00:00
@echo "VirtualENV Setup Complete. Now run: .\env-windows\Scripts\activate.ps1"
2018-08-21 04:47:22 +00:00
@echo
2017-02-04 21:37:41 +00:00
comply:
flake8 cement/ tests/
2018-03-02 03:23:38 +00:00
comply-fix:
autopep8 -ri cement/ tests/
2018-02-02 22:48:26 +00:00
docs:
python setup.py build_sphinx
@echo
2018-07-17 09:32:30 +00:00
@echo DOC: "file://"$$(echo `pwd`/docs/build/html/index.html)
@echo
clean:
find . -name '*.py[co]' -delete
rm -rf doc/build
2018-04-28 22:12:48 +00:00
dist: clean
rm -rf dist/*
python setup.py sdist
python setup.py bdist_wheel
dist-upload:
twine upload dist/*
2018-11-06 17:07:29 +00:00
docker:
docker build -t datafolklabs/cement:latest .
docker-push:
docker push datafolklabs/cement:latest