-
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from onefinestay/tox
Tox
- Loading branch information
Showing
13 changed files
with
108 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ docs/build | |
## Packages | ||
*.egg-info | ||
dist | ||
.tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,25 @@ | ||
# See https://bugs.launchpad.net/pyflakes/+bug/1223150 | ||
export PYFLAKES_NODOCTEST=1 | ||
# shortcuts for local dev | ||
# | ||
.PHONY: test flake8 pylint pytest docs spelling test_docs | ||
|
||
noop: | ||
@true | ||
|
||
.PHONY: noop | ||
|
||
requirements: | ||
pip install -r dev_requirements.txt -q | ||
|
||
develop: requirements | ||
python setup.py -q develop | ||
|
||
pytest: | ||
coverage run --concurrency=eventlet --source nameko -m pytest test | ||
test: flake8 pylint pytest | ||
|
||
flake8: | ||
flake8 nameko test | ||
|
||
pylint: | ||
pylint nameko -E | ||
|
||
test: flake8 pylint pytest coverage-check | ||
|
||
full-test: requirements test | ||
|
||
coverage-check: | ||
pytest: | ||
coverage run --concurrency=eventlet --source nameko -m pytest test | ||
coverage report --fail-under=100 | ||
|
||
sphinx: develop | ||
sphinx-build -n -b html -d docs/build/doctrees docs docs/build/html | ||
docs: | ||
tox -e docs | ||
|
||
spelling: | ||
sphinx-build -b spelling -d docs/build/doctrees docs docs/build/spelling | ||
|
||
docs/modules.rst: $(wildcard nameko/*.py) $(wildcard nameko/**/*.py) | ||
sphinx-apidoc -e -f -o docs/api nameko | ||
|
||
autodoc: docs/modules.rst | ||
tox -e spelling | ||
|
||
docs: sphinx spelling | ||
test_docs: | ||
spelling | ||
docs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,7 @@ pre | |
programmatically | ||
pseudocode | ||
py | ||
pytest | ||
rabbitmq | ||
reconnected | ||
reconnecting | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[tox] | ||
envlist = {pinned,latest}, docs, spelling | ||
skipsdist = True | ||
|
||
[testenv] | ||
deps = | ||
latest: eventlet # need something | ||
pinned: eventlet==0.15.2 | ||
pinned: iso8601==0.1.8 | ||
pinned: kombu==3.0.4 | ||
pinned: mock==1.0.1 | ||
pinned: path.py==5.1 | ||
pinned: pyrabbit==1.1.0 | ||
pinned: Werkzeug==0.9.6 | ||
|
||
commands = | ||
pip install --editable .[dev] | ||
flake8 nameko test | ||
pylint --rcfile=pylintrc nameko -E | ||
coverage run --concurrency=eventlet --source nameko -m \ | ||
pytest test {posargs:--timeout=30} | ||
coverage report --fail-under=100 | ||
|
||
|
||
[testenv:docs] | ||
commands = | ||
pip install --editable .[docs] | ||
sphinx-build -n -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html | ||
|
||
|
||
[testenv:spelling] | ||
commands = | ||
pip install --editable .[docs] | ||
sphinx-build -b spelling -d {envtmpdir}/doctrees docs {envtmpdir}/spelling | ||
# sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs {envtmpdir}/linkcheck |