Skip to content

Commit

Permalink
Merge pull request #83 from belm0/make_interpreter
Browse files Browse the repository at this point in the history
make supports custom python interpreter
  • Loading branch information
mehaase committed Nov 16, 2018
2 parents 64822ca + 3be882f commit 768ff39
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 768ff39

Please sign in to comment.