-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 1.01 KB
/
Makefile
File metadata and controls
36 lines (29 loc) · 1.01 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
PYTHON = python
# This .PHONY line prevents make from treating the docs/ directory like a build
# product:
.PHONY: docs
coverage:
$(PYTHON) -m coveralls -v
docs:
$(MAKE) -C docs html
test:
$(PYTHON) -m pytest --cov=trio_websocket --no-cov-on-fail
lint:
$(PYTHON) -m pylint trio_websocket/ tests/ autobahn/ examples/
publish:
rm -fr build dist .egg trio_websocket.egg-info
$(PYTHON) setup.py sdist
twine upload dist/*
# requirements-dev.txt will only be regenerated when PIP_COMPILE_ARGS is not
# empty, and requires installatation of pip-tools.
#
# To change requirements, edit setup.py and requirements-dev.in files as necessary, then:
# make -W requirements-dev.{in,txt} PIP_COMPILE_ARGS="-q"
# upgrade all deps:
# make -W requirements-dev.{in,txt} PIP_COMPILE_ARGS="-U"
# upgrade specific deps:
# make -W requirements-dev.{in,txt} PIP_COMPILE_ARGS="-P foo"
ifneq ($(PIP_COMPILE_ARGS),)
requirements-dev.txt: setup.py requirements-dev.in
pip-compile -q $(PIP_COMPILE_ARGS) --extra trio --output-file $@ $^
endif