| |
|
|
| FLAGS= |
| KAFKA_VERSION=0.11.0.2 |
| SCALA_VERSION=2.12 |
|
|
| setup: |
| pip install -r requirements-dev.txt |
| pip install -Ue . |
|
|
| servers/$(KAFKA_VERSION)/kafka-bin: |
| KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) ./build_integration.sh |
|
|
| build-integration: servers/$(KAFKA_VERSION)/kafka-bin |
|
|
| |
| test37: build-integration |
| KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) tox -e py37 -- $(FLAGS) |
|
|
| test27: build-integration |
| KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) tox -e py27 -- $(FLAGS) |
|
|
| |
| |
| test-local: build-integration |
| KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) py.test \ |
| --pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF $(FLAGS) kafka test |
|
|
| cov-local: build-integration |
| KAFKA_VERSION=$(KAFKA_VERSION) SCALA_VERSION=$(SCALA_VERSION) py.test \ |
| --pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka \ |
| --cov-config=.covrc --cov-report html $(FLAGS) kafka test |
| @echo "open file://`pwd`/htmlcov/index.html" |
|
|
| |
| |
| check-readme: |
| python setup.py check -rms |
|
|
| clean: |
| rm -rf `find . -name __pycache__` |
| rm -f `find . -type f -name '*.py[co]' ` |
| rm -f `find . -type f -name '*~' ` |
| rm -f `find . -type f -name '.*~' ` |
| rm -f `find . -type f -name '@*' ` |
| rm -f `find . -type f -name '#*#' ` |
| rm -f `find . -type f -name '*.orig' ` |
| rm -f `find . -type f -name '*.rej' ` |
| rm -f .coverage |
| rm -rf htmlcov |
| rm -rf docs/_build/ |
| rm -rf cover |
| rm -rf dist |
|
|
| doc: |
| make -C docs html |
| @echo "open file://`pwd`/docs/_build/html/index.html" |
|
|
| .PHONY: all test37 test27 test-local cov-local clean doc |
|
|