-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
executable file
·60 lines (45 loc) · 1.27 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
.PHONY: docs
# test commands and arguments
tcommand = PYTHONPATH=. py.test -x
tmessy = -svv
targs = --cov-report term-missing --cov autovenv
all: clean fmt lint tox docs
pip:
pip install --upgrade pip
pip install --upgrade -r requirements.txt
pipeditable:
pip install -e .
tox:
tox tests
test:
$(tcommand) $(targs) tests
stest:
$(tcommand) $(tmessy) $(targs) tests
clean:
# git clean -fXd
find . -name \*.pyc -delete
rm -rf build dist
lint:
flake8 autovenv
flake8 tests
fmt:
black .
docs:
cd docs && make clean && make html
opendocs:
python -c 'import os;import webbrowser;webbrowser.open_new_tab("file://" + os.getcwd() + "/docs/_build/html/index.html")'
testpublish:
python setup.py register -r https://testpypi.python.org/pypi
python setup.py sdist bdist_wheel --universal upload -r https://testpypi.python.org/pypi
publish:
python setup.py sdist bdist_wheel --universal
twine upload dist/*
updatepythonbuild:
rm -fr autovenv/python-build
rm -fr pyenv
git clone https://github.com/yyuu/pyenv.git
mkdir -p autovenv/python-build
cp pyenv/plugins/python-build/LICENSE autovenv/python-build/
cp -r pyenv/plugins/python-build/share autovenv/python-build/
cp pyenv/plugins/python-build/bin/python-build autovenv/python-build/autovenv-python-build
rm -fr pyenv