File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change
1
+ PYTHON = python
2
+
1
3
# This .PHONY line prevents make from treating the docs/ directory like a build
2
4
# product:
3
5
.PHONY : docs
4
6
5
7
coverage :
6
- coveralls -v
8
+ $( PYTHON ) -m coveralls -v
7
9
8
10
docs :
9
11
$(MAKE ) -C docs html
10
12
11
13
test :
12
- pytest --cov=trio_websocket
14
+ $( PYTHON ) -m pytest --cov=trio_websocket
13
15
14
16
publish :
15
- python setup.py sdist
17
+ $( PYTHON ) setup.py sdist
16
18
twine upload dist/*
17
19
rm -fr build dist .egg trio_websocket.egg-info
Original file line number Diff line number Diff line change 2
2
#
3
3
4
4
# You can set these variables from the command line.
5
+ PYTHON = python
5
6
SPHINXOPTS =
6
- SPHINXBUILD = sphinx-build
7
+ SPHINXBUILD = $( PYTHON ) -m sphinx
7
8
SOURCEDIR = .
8
9
BUILDDIR = _build
9
10
16
17
# Catch-all target: route all unknown targets to Sphinx using the new
17
18
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18
19
% : Makefile
19
- @$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
20
+ @$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
You can’t perform that action at this time.
0 commit comments