@@ -55,37 +55,37 @@ clean-venv:
55
55
rm -rf venv
56
56
57
57
lint : venv # # check style with flake8
58
- venv/bin/flake8 trust_pypi_example tests
58
+ venv/bin/python -m flake8 trust_pypi_example tests
59
59
60
60
test : venv # # This will use py.test because of pytest-runner
61
61
venv/bin/python setup.py check
62
62
venv/bin/python setup.py test
63
63
64
64
venv : # # set up a virtualenv that will by python and install dependencies
65
65
python -m virtualenv venv || python -m venv venv
66
- venv/bin/pip install -r requirements_dev.txt
66
+ venv/bin/python -m pip install -r requirements_dev.txt
67
67
68
68
69
69
test-all : venv # # run tests on every Python version with tox
70
70
venv/bin/tox
71
71
72
72
coverage : venv # # check code coverage quickly with the default Python
73
- venv/bin/coverage run --source trust_pypi_example -m pytest
73
+ venv/bin/python -m coverage run --source trust_pypi_example -m pytest
74
74
75
- venv/bin/coverage report -m
76
- venv/bin/coverage html
75
+ venv/bin/python -m coverage report -m
76
+ venv/bin/python -m coverage html
77
77
$(BROWSER ) htmlcov/index.html
78
78
79
79
docs : venv # # generate Sphinx HTML documentation, including API docs
80
80
rm -f docs/trust_pypi_example.rst
81
81
rm -f docs/modules.rst
82
- venv/bin/sphinx-apidoc -o docs/ trust_pypi_example
82
+ venv/bin/python -m sphinx-apidoc -o docs/ trust_pypi_example
83
83
$(MAKE ) -C docs clean
84
84
$(MAKE ) -C docs html
85
85
$(BROWSER ) docs/_build/html/index.html
86
86
87
87
servedocs : venv docs # # compile the docs watching for changes
88
- venv/bin/watchmedo shell-command -p ' *.rst' -c ' $(MAKE) -C docs html' -R -D .
88
+ venv/bin/python -m watchmedo shell-command -p ' *.rst' -c ' $(MAKE) -C docs html' -R -D .
89
89
90
90
release : venv clean # # package and upload a release
91
91
venv/bin/python setup.py sdist upload
0 commit comments