-
Notifications
You must be signed in to change notification settings - Fork 134
/
Makefile
52 lines (40 loc) · 1.29 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
envtest: clean
nosetests tests/
test:
tox
clean:
find -regex '.*\.pyc' -exec rm {} \;
find -regex '.*~' -exec rm {} \;
rm -rf reg-settings.py MANIFEST dist build *.egg-info rows.1 .tox
rm -rf docs-build docs/reference docs/man
coverage erase
fix-imports:
autoflake --in-place --recursive --remove-unused-variables --remove-all-unused-imports .
isort .
black .
install:
make clean
make uninstall
python setup.py install
uninstall:
pip uninstall -y rows
lint:
pylint rows/*.py
lint-tests:
pylint tests/*.py
docs:
make clean install
click-man --target=docs/man/ rows
pycco --directory=docs/reference --generate_index --skip-bad-files rows/*.py
pycco --directory=docs/reference/plugins --generate_index --skip-bad-files rows/plugins/*.py
mkdocs build --strict --site-dir=docs-build
rm -rf docs/man docs/reference
docs-serve: docs
cd docs-build && python3 -m http.server
docs-upload: docs
-git branch --delete --force --quiet gh-pages
-git push turicas :gh-pages
ghp-import --no-jekyll --message="Docs automatically built from $(shell git rev-parse HEAD)" --branch=gh-pages --push --force --remote=turicas docs-build/
release:
python setup.py bdist bdist_wheel --universal bdist_egg upload
.PHONY: test clean docs docs-serve docs-upload fix-imports lint lint-tests install uninstall release