-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
72 lines (51 loc) · 1.55 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
71
72
PROJECT_NAME = tmuxpair
PACKAGES = pip pytest coverage
TESTPYPI = https://testpypi.python.org/pypi
TESTOPTIONS = -v -s -x --doctest-modules --cov=tmuxpair.py
TESTS = tmuxpair.py test_tmuxpair.py
install:
pip install .
develop:
pip install -e .[dev]
uninstall:
pip uninstall $(PROJECT_NAME)
upload:
python setup.py register
python setup.py sdist upload
test-upload:
python setup.py register -r $(TESTPYPI)
python setup.py sdist upload -r $(TESTPYPI)
test-install:
pip install -i $(TESTPYPI) $(PROJECT_NAME)
.venv/py27/bin/py.test:
@conda create -y -m -p .venv/py27 python=2.7 $(PACKAGES)
@.venv/py27/bin/pip install -e .[dev]
.venv/py33/bin/py.test:
@conda create -y -m -p .venv/py33 python=3.3 $(PACKAGES)
@.venv/py33/bin/pip install -e .[dev]
.venv/py34/bin/py.test:
@conda create -y -m -p .venv/py34 python=3.4 $(PACKAGES)
@.venv/py34/bin/pip install -e .[dev]
.venv/py35/bin/py.test:
@conda create -y -m -p .venv/py35 python=3.5 $(PACKAGES)
@.venv/py35/bin/pip install -e .[dev]
test27: .venv/py27/bin/py.test
$< -v $(TESTOPTIONS) $(TESTS)
test33: .venv/py33/bin/py.test
$< -v $(TESTOPTIONS) $(TESTS)
test34: .venv/py34/bin/py.test
$< -v $(TESTOPTIONS) $(TESTS)
test35: .venv/py35/bin/py.test
$< -v $(TESTOPTIONS) $(TESTS)
test: test27 test33 test34 test35
coverage: test35
@rm -rf htmlcov/index.html
.venv/py35/bin/coverage html
clean:
@rm -f *.pyc
@rm -rf __pycache__
@rm -rf *.egg-info
@rm -rf htmlcov
distclean: clean
@rm -rf .venv
.PHONY: install develop uninstall upload test-upload test-install test clean distclean coverage