https://github.com/bear/python-twitter
Raw File
Tip revision: 91d425dc2744fe7c2d0d879d316604fa8785c94e authored by bear (Mike Taylor) on 16 March 2016, 03:36:23 UTC
make pytest ignore venv directory which is present in circleci by default
Tip revision: 91d425d
Makefile

help:
	@echo "  env         install all production dependencies"
	@echo "  dev         install all dev and production dependencies (virtualenv is assumed)"
	@echo "  clean       remove unwanted stuff"
	@echo "  lint        check style with flake8"
	@echo "  test        run tests"
	@echo "  coverage    run tests with code coverage"

env:
	pip install -r requirements.txt

dev: env
	pip install -r requirements-test.txt

info:
	python --version
	pyenv --version
	pip --version

clean:
	rm -fr build
	rm -fr dist
	find . -name '*.pyc' -exec rm -f {} \;
	find . -name '*.pyo' -exec rm -f {} \;
	find . -name '*~' -exec rm -f {} \;

lint:
	flake8 twitter > violations.flake8.txt

test: lint
	python setup.py test

coverage: clean test
	coverage run --source=twitter setup.py test --addopts "--ignore=venv"
	coverage html
	coverage report

build: clean
	python setup.py check
	python setup.py sdist
	python setup.py bdist_wheel

upload: clean
	python setup.py sdist upload
	python setup.py bdist_wheel upload
back to top