forked from lk-geimfari/mimesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·73 lines (53 loc) · 1.47 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
SHELL:=/usr/bin/env bash
.PHONY: help
help:
@echo "Available options:"
@echo "........................................................"
@echo "clean-pyc - remove Python file artifacts"
@echo "clean-build - remove build artifacts"
@echo "clean - remove build and Python file artifacts"
@echo "docs - build Sphinx HTML documentation and open in browser"
@echo "test - run tests quickly with the default Python"
@echo "type-check - run mypy for checking types"
@echo "publish - create dist and upload package to PyPI"
@echo "install - install the package to the active Python's site-packages"
@echo "........................................................"
.PHONY: clean-pyc
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
.PHONY: clean-build
clean-build:
rm -rf build/
rm -rf dist/
rm -rf .cache/
rm -rf .mypy_cache/
rm -rf .benchmarks/
rm -rf .pytest_cache/
rm -rf docs/_build
rm -rf mimesis.egg-info/
.PHONY: clean
clean: clean-pyc clean-build
.PHONY: test
test:
py.test --color=yes ./
mypy mimesis/ tests/
make clean
.PHONY: docs
docs:
cd docs && make html
.PHONY: type-check
type-check:
mypy mimesis/ tests/
.PHONY: publish
publish:
python3 setup.py sdist bdist_wheel && twine upload dist/*
clean
.PHONY: minify
minify:
python3 setup.py minify
.PHONY: install
install:
python3 setup.py install