Skip to content

Commit

Permalink
make supports custom python interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
belm0 committed Nov 9, 2018
1 parent ce4adf3 commit eb76cc6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
PYTHON = python

# This .PHONY line prevents make from treating the docs/ directory like a build
# product:
.PHONY: docs

coverage:
coveralls -v
$(PYTHON) -m coveralls -v

docs:
$(MAKE) -C docs html

test:
pytest --cov=trio_websocket
$(PYTHON) -m pytest --cov=trio_websocket

publish:
python setup.py sdist
$(PYTHON) setup.py sdist
twine upload dist/*
rm -fr build dist .egg trio_websocket.egg-info
5 changes: 3 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
#

# You can set these variables from the command line.
PYTHON = python
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXBUILD = $(PYTHON) -m sphinx
SOURCEDIR = .
BUILDDIR = _build

Expand All @@ -16,4 +17,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

0 comments on commit eb76cc6

Please sign in to comment.