forked from sns-sdks/python-facebook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 744 Bytes
/
Makefile
File metadata and controls
40 lines (28 loc) · 744 Bytes
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
all: help env clean docs lint test build
.PHONY: all
help:
@echo " env install all production dependencies"
@echo " clean remove unwanted stuff"
@echo " docs build documentation"
@echo " lint check style with flake8"
@echo " test run tests"
env:
pip install pipenv
pipenv install --dev
clean:
rm -fr build
rm -fr dist
rm -fr *.egg-info
find . -name '*.pyc' -exec rm -f {} \;
find . -name '*.pyo' -exec rm -f {} \;
find . -name '*~' ! -name '*.un~' -exec rm -f {} \;
docs:
$(MAKE) -C doc html
lint:
flake8 --ignore E111,E124,E126,E221,E501,w504 --exclude .git,__pycache__
test:
pytest -s
build: clean
python setup.py check
python setup.py sdist
python setup.py bdist_wheel