-
Notifications
You must be signed in to change notification settings - Fork 638
use tox instead of 'setup.py test' #833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
964b0f9
use tox instead of setup.py test
zariiii9003 a076060
fix error in .appveyor.yml
zariiii9003 32f881b
try executing codecov in tox
zariiii9003 fc057e1
undo removal of python-can installation in .travis.yml
zariiii9003 5755bce
pass TEST_SOCKETCAN environment variable for travis
zariiii9003 7fd9e1a
Merge branch 'develop' into use_tox
hardbyte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,6 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 40.8", | ||
"wheel", | ||
] | ||
build-backend = "setuptools.build_meta" |
This file contains hidden or 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,25 +1,2 @@ | ||
[aliases] | ||
test=pytest | ||
|
||
[metadata] | ||
license_file = LICENSE.txt | ||
|
||
[tool:pytest] | ||
addopts = -v --timeout=300 --cov=can --cov-config=setup.cfg | ||
|
||
[coverage:run] | ||
# we could also use branch coverage | ||
branch = False | ||
# already specified by call to pytest using --cov=can | ||
#source = can | ||
|
||
[coverage:report] | ||
# two digits after decimal point | ||
precision = 3 | ||
show_missing = True | ||
exclude_lines = | ||
# Have to re-enable the standard pragma, see https://coverage.readthedocs.io/en/coverage-4.5.1a/config.html#syntax | ||
pragma: no cover | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if __name__ == .__main__.: |
This file contains hidden or 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 hidden or 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,11 +1,60 @@ | ||
[tox] | ||
envlist = py36, py37 | ||
|
||
[testenv] | ||
deps = | ||
pytest~=5.3 | ||
pytest-timeout~=1.3 | ||
pytest-cov~=2.8 | ||
coverage<5 | ||
codecov~=2.0 | ||
hypothesis~=4.56 | ||
pyserial~=3.0 | ||
|
||
commands = | ||
pip install .[test] | ||
pytest | ||
passenv = CI | ||
|
||
recreate = True | ||
usedevelop = True | ||
sitepackages=False | ||
|
||
[testenv:travis] | ||
passenv = | ||
CI | ||
TRAVIS | ||
TRAVIS_* | ||
TEST_SOCKETCAN | ||
|
||
commands_post = | ||
codecov -X gcov | ||
|
||
[testenv:appveyor] | ||
passenv = | ||
CI | ||
APPVEYOR | ||
APPVEYOR_* | ||
|
||
extras = neovi | ||
|
||
commands_post = | ||
codecov -X gcov | ||
|
||
[pytest] | ||
testpaths = test | ||
addopts = -v --timeout=300 --cov=can --cov-append --cov-report=term | ||
|
||
|
||
[coverage:run] | ||
# we could also use branch coverage | ||
branch = False | ||
|
||
[coverage:report] | ||
# two digits after decimal point | ||
precision = 3 | ||
show_missing = True | ||
exclude_lines = | ||
# Have to re-enable the standard pragma, see https://coverage.readthedocs.io/en/coverage-4.5.1a/config.html#syntax | ||
pragma: no cover | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if __name__ == .__main__.: | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise NotImplementedError |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this change be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessarily, but i noticed that filelock is mentioned in install_requires already.