forked from lk-geimfari/mimesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·70 lines (50 loc) · 1.59 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
SHELL:=/usr/bin/env bash
.PHONY: help
help:
@echo "........................................................"
@echo "Author: Likid Geimfari <[email protected]>"
@echo "Repository: https://github.com/lk-geimfari/mimesis"
@echo "........................................................"
@echo ""
@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 "test - run tests quickly with the default Python"
@echo "flake - run py.test with flake8"
@echo "publish - create dist and upload package to PyPI"
@echo "versioner - update __version__ file"
@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 --force --recursive build/
rm --force --recursive dist/
rm --force --recursive .cache/
.PHONY: clean
clean: clean-pyc clean-build
.PHONY: flake
flake:
py.test --flake8
.PHONY: test
test:
py.test --verbose --color=yes ./
.PHONY: publish
publish:
python3 setup.py sdist && twine upload dist/*
.PHONY: version
version:
python3 setup.py versioner
.PHONY: minify
minify:
python3 setup.py minify
.PHONY: install
install:
python3 setup.py install