/
Makefile
43 lines (31 loc) · 891 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
41
42
43
include Makefile.pypi
##############################
tags:
git ls-files | xargs etags
.PHONY: tags
##########
tests test:
pytest
.PHONY: tests test
########## sphinx
# Extensions (see sphinx/source/conf.py)
# * for type hints - this is rather crucial
# https://github.com/agronholm/sphinx-autodoc-typehints
# pip3 install sphinx-autodoc-typehints
readme-strip readme html doc:
$(MAKE) -C sphinx $@
.PHONY: readme-strip readme html doc
##########
pyfiles:
@git ls-files | grep '\.py$$' | grep -v '/conf.py$$'
pep8:
$(MAKE) pyfiles | xargs flake8 --max-line-length=80 --exclude=__init__.py
pylint:
$(MAKE) pyfiles | xargs pylint
.PHONY: pep8 pylint pyfiles
########## actually install
infra:
apssh -t r2lab.infra pip3 install --upgrade asynciojobs
check:
apssh -t r2lab.infra python3 -c '"import asynciojobs.version as version; print(version.version)"'
.PHONY: infra check