-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·54 lines (42 loc) · 1.22 KB
/
Makefile
File metadata and controls
executable file
·54 lines (42 loc) · 1.22 KB
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
ifeq ($(OS),"Windows_NT")
SPHINX_BUILD = sphinx-build.bat
else
SPHINX_BUILD = sphinx-build
endif
PYTHON_SETUP = python setup.py
BRANCH = `git branch | grep '*' | cut -d ' ' -f 2`
clean:
$(MAKE) -C doc clean
- rm dist/*
- rm -rf build/*
- find -name '__pycache__' -exec rm -rf {} \;
test:
pytest -n `python -c 'import os;print(min(12,os.cpu_count()))'`
test-single:
pytest --pdb
check:
prospector -E -0 --profile-path=. -P .landscape.yml Stoner > prospector-report.txt
black:
find Stoner -name '*.py' | xargs -d "\n" black -l 119
find doc/samples -name '*.py' | xargs -d "\n" black -l 80
find scripts -name '*.py' | xargs -d "\n" black -l 80
commit: black
$(MAKE) -C doc readme
git add tests
git add Stoner
git add doc/samples
git commit -a
git push origin $(BRANCH)
_build_wheel:
$(MAKE) -C doc readme
$(PYTHON_SETUP) sdist bdist_wheel --universal
twine upload dist/*
wheel: clean test _build_wheel
docbuild: FORCE
$(MAKE) -C doc clean
$(MAKE) -C doc html
( cd ../gh-pages; git pull )
rsync -rcm --perms --chmod=ugo=rwX --delete --filter="P .git" --filter="P .nojekyll" doc/_build/html/ ../gh-pages/
rtdbuild: export READTHEDOCS=1
rtdbuild: docbuild
FORCE: