-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
42 lines (31 loc) · 942 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
all:: test
env_setup_for_development::
@echo installing all requirements...
@pip3 install -r requirements.txt
@pip3 install -r requirements-dev.txt
@echo setting up the development environment
@python setup.py develop
env_setup_for_documentation::
@echo installing all requirements...
@pip3 install -r requirements-doc.txt
test::
@echo launching tests...
@py.test tests
coverage::
@echo launching tests with coverage report...
@py.test tests --cov repoman
publish::
python setup.py sdist bdist_wheel upload
doc:: doc_from_code
python setup.py build_sphinx
@echo documentation available at $(shell pwd)/doc/build/html/index.html
doc_from_code::
sphinx-apidoc repoman -o doc/source -f
clean::
@echo removing PYC files...
@find -name "*.pyc" -exec ${RM} "{}" \;
@echo generated files...
@${RM} -r dist build doc/build .coverage*
vclean:: clean
@echo removing files required for develpment...
@${RM} -r *.egg-info