Skip to content

Commit

Permalink
Merge 4445ad2 into 550800f
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Sep 15, 2015
2 parents 550800f + 4445ad2 commit 80d224d
Show file tree
Hide file tree
Showing 6 changed files with 190 additions and 30 deletions.
52 changes: 37 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,39 @@
# Config file for automatic testing at travis-ci.org

language: python

python: 2.7
sudo: false

python:
- "3.3"
- "3.4"

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: "pip install -r requirements-test.txt"

# command to run tests, e.g. python setup.py test
script: make coverage

after_success: coveralls
env:
global:
LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
matrix:
- TOXENV=check
- TOXENV=2.6,coveralls
- TOXENV=2.6-nocover
- TOXENV=2.7,coveralls
- TOXENV=2.7-nocover
- TOXENV=3.3,coveralls
- TOXENV=3.3-nocover
- TOXENV=3.4,coveralls
- TOXENV=3.4-nocover
- TOXENV=3.5,coveralls
- TOXENV=3.5-nocover
- TOXENV=pypy,coveralls
- TOXENV=pypy-nocover
before_install:
- python --version
- uname -a
- lsb_release -a
install:
- pip install tox
- virtualenv --version
- easy_install --version
- pip --version
- tox --version
script:
- tox -v
after_failure:
- more .tox/log/* | cat
- more .tox/*/log/* | cat
notifications:
email:
on_success: never
on_failure: always
12 changes: 12 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
include *.in
include *.rst
include *.txt
include LICENSE
include Makefile
include tox.ini
recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs Makefile
recursive-include degenerate_dna *.py

global-exclude *.py[cod] __pycache__ *.so *.dylib
48 changes: 37 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,21 +1,47 @@
.. image:: https://badge.fury.io/py/degenerate-dna.svg
degenerate-dna
==============

.. list-table::
:stub-columns: 1

* - tests
- | |travis| |requires| |coveralls|
| |quantified-code|
* - package
- |version| |wheel| |supported-versions| |supported-implementations|

.. |travis| image:: https://travis-ci.org/carlosp420/degenerate-dna.svg?branch=master
:alt: Travis-CI Build Status
:target: https://travis-ci.org/carlosp420/degenerate-dna

.. |requires| image:: https://requires.io/github/carlosp420/degenerate-dna/requirements.svg?branch=master
:alt: Requirements Status
:target: https://requires.io/github/carlosp420/degenerate-dna/requirements/?branch=master

.. |coveralls| image:: https://coveralls.io/repos/carlosp420/degenerate-dna/badge.svg?branch=master&service=github
:alt: Coverage Status
:target: https://coveralls.io/r/carlosp420/degenerate-dna

.. |version| image:: https://img.shields.io/pypi/v/degenerate-dna.svg?style=flat
:alt: PyPI Package latest release
:target: https://pypi.python.org/pypi/degenerate-dna
:alt: Latest PyPI version

.. image:: https://travis-ci.org/carlosp420/degenerate-dna.png
:target: https://travis-ci.org/carlosp420/degenerate-dna
:alt: Latest Travis CI build status
.. |wheel| image:: https://img.shields.io/pypi/wheel/degenerate-dna.svg?style=flat
:alt: PyPI Wheel
:target: https://pypi.python.org/pypi/degenerate-dna

.. image:: https://coveralls.io/repos/carlosp420/degenerate-dna/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/carlosp420/degenerate-dna?branch=master
:alt: Coveralls
.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/degenerate-dna.svg?style=flat
:alt: Supported versions
:target: https://pypi.python.org/pypi/degenerate-dna

.. image:: https://www.quantifiedcode.com/api/v1/project/fdd4eceac24d47adb5b9e73f475de560/badge.svg
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/degenerate-dna.svg?style=flat
:alt: Supported implementations
:target: https://pypi.python.org/pypi/degenerate-dna

.. |quantified-code| image:: https://www.quantifiedcode.com/api/v1/project/fdd4eceac24d47adb5b9e73f475de560/badge.svg
:target: https://www.quantifiedcode.com/app/project/fdd4eceac24d47adb5b9e73f475de560
:alt: Code issues

degenerate-dna
==============

Python implementation of the Degen Perl package by Zwick et al.

Expand Down
2 changes: 2 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ nose==1.3.7
coverage==3.7.1
wheel==0.24.0
coveralls
tox
detox
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@
install_requires=[],

license='BSD',

zip_safe=False,
classifiers=[
'License :: OSI Approved :: BSD License',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy',
],
test_suite='tests',
)
99 changes: 96 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,99 @@
; a generative tox configuration, see: https://testrun.org/tox/latest/config.html#generative-envlist

[tox]
envlist=py27,py34
envlist =
clean,
check,
{2.6,2.7,3.3,3.4,3.5,pypy},
{2.6,2.7,3.3,3.4,3.5,pypy}-nocover,
report,

[testenv]
commands=py.test degenerate-dna
deps=pytest
basepython =
pypy: {env:TOXPYTHON:pypy}
2.6: {env:TOXPYTHON:python2.6}
2.7: {env:TOXPYTHON:python2.7}
3.3: {env:TOXPYTHON:python3.3}
3.4: {env:TOXPYTHON:python3.4}
3.5: {env:TOXPYTHON:python3.5}
{clean,check,report,extension-coveralls,coveralls}: python3.4
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
passenv =
*
deps =
nose
coverage
seqrecord-expanded
commands =
{posargs:nosetests --with-coverage --cover-package=dataset_creator}
usedevelop = true

[testenv:check]
basepython = python3.4
deps =
docutils
check-manifest
readme
pygments
skip_install = true
usedevelop = false
commands =
python setup.py check --strict --metadata --restructuredtext
check-manifest {toxinidir}

[testenv:coveralls]
deps =
coveralls
skip_install = true
usedevelop = false
commands =
coverage combine
coverage report
coveralls []

[testenv:report]
basepython = python3.4
deps = coverage
skip_install = true
usedevelop = false
commands =
coverage combine
coverage report

[testenv:clean]
commands = coverage erase
skip_install = true
usedevelop = false
deps = coverage

[testenv:2.6-nocover]
commands =
{posargs:nosetests -v tests}
usedevelop = false

[testenv:2.7-nocover]
commands =
{posargs:nosetests -v tests}
usedevelop = false

[testenv:3.3-nocover]
commands =
{posargs:nosetests -v tests}
usedevelop = false

[testenv:3.4-nocover]
commands =
{posargs:nosetests -v tests}
usedevelop = false

[testenv:3.5-nocover]
commands =
{posargs:nosetests -v tests}
usedevelop = false

[testenv:pypy-nocover]
commands =
{posargs:nosetests -v tests}
usedevelop = false

0 comments on commit 80d224d

Please sign in to comment.