Skip to content

Commit

Permalink
Move configuration to setup.cfg llllllllll#59
Browse files Browse the repository at this point in the history
Add integration with codecov
  • Loading branch information
Kentzo committed Sep 10, 2017
1 parent d58eeac commit b095759
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 20 deletions.
3 changes: 0 additions & 3 deletions .coveragerc

This file was deleted.

8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ python:
- 3.6

install:
- pip install -e .[dev]
- pip install -r requirements_ci.txt
- pip install codecov

script:
- py.test codetransformer
- python setup.py test
- flake8 codetransformer

after_success:
- codecov

notifications:
email: false
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
``codetransformer``
===================

|build status| |documentation|
|build status| |coverage| |documentation|

Bytecode transformers for CPython inspired by the ``ast`` module's
``NodeTransformer``.
Expand Down Expand Up @@ -260,6 +260,8 @@ https://github.com/llllllllll/codetransformer.
.. _opcode: https://docs.python.org/3.5/library/dis.html#opcode-NOP
.. |build status| image:: https://travis-ci.org/llllllllll/codetransformer.svg?branch=master
:target: https://travis-ci.org/llllllllll/codetransformer
.. |coverage| image:: https://codecov.io/gh/llllllllll/codetransformer/branch/master/graph/badge.svg
:target: https://codecov.io/gh/llllllllll/codetransformer
.. |documentation| image:: https://readthedocs.org/projects/codetransformer/badge/?version=stable
:target: http://codetransformer.readthedocs.io/en/stable/?badge=stable
:alt: Documentation Status
3 changes: 3 additions & 0 deletions requirements_ci.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
flake8==3.4.1
pytest==3.2.1
pytest-cov==2.5.1
10 changes: 10 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ versionfile_source=codetransformer/_version.py
versionfile_build=codetransformer/_version.py
tag_prefix=
parentdir_prefix=codetransformer-

[aliases]
test=pytest

[coverage:run]
omit=codetransformer/_version.py

[tool:pytest]
addopts=--doctest-modules --cov=codetransformer --cov-report=term-missing --cov-report=html --cov-branch --ignore=setup.py
testpaths=tests
9 changes: 2 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
],
url='https://github.com/llllllllll/codetransformer',
install_requires=['toolz'],
extras_require={
'dev': [
'flake8==3.3.0',
'pytest==2.8.4',
'pytest-cov==2.2.1',
],
},
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-cov', 'flake8']
)
9 changes: 2 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,5 @@ skip_missing_interpreters=True

[testenv]
commands=
pip install -e .[dev]
py.test

[pytest]
addopts = --doctest-modules --cov codetransformer --cov-report term-missing --ignore setup.py
testpaths = codetransformer
norecursedirs = decompiler
pip install -r requirements_ci.txt
python setup.py test

0 comments on commit b095759

Please sign in to comment.