-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
40 lines (30 loc) · 902 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# vim: set noet sw=4 ts=4 fileencoding=utf-8:
# Project-specific constants
NAME=memeoverflow
# Default target
all:
@echo "make install - Install on local system"
@echo "make develop - Install symlinks for development"
@echo "make build - Build sdist and bdist_wheel"
@echo "make clean - Remove all generated files"
@echo "make lint - Run linter"
@echo "make test - Run tests"
@echo "make release - Upload to PyPI"
install:
pip install .
develop:
pip install -U pip
pip install -U wheel setuptools twine
pip install -e .[test]
build: clean
python setup.py sdist bdist_wheel
clean:
rm -rf build/ dist/ $(NAME).egg-info/ docs/build/ .pytest_cache/ .coverage
lint:
pylint -E $(NAME)
test: lint
coverage run --rcfile coverage.cfg -m pytest -v tests
coverage report --rcfile coverage.cfg
release: build
twine upload dist/*
.PHONY: all install develop build clean lint test release