Skip to content

Commit

Permalink
add tox. fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
mayn committed Jul 17, 2017
1 parent 3197009 commit 671f4a8
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# packerlicious
[![Build Status][build-status-badge]][build-status] [![Test coverage][test-coverage-badge]][test-coverage]
[![PyPI version][pypi-version-badge]][pypi-version] [![Build Status][build-status-badge]][build-status] [![Test coverage][test-coverage-badge]][test-coverage]


[pypi-version-badge]: https://badge.fury.io/py/packerlicious.svg
[pypi-version]: https://badge.fury.io/py/packerlicious
[build-status-badge]: https://travis-ci.org/mayn/packerlicious.svg?branch=master
[build-status]: https://travis-ci.org/mayn/packerlicious
[test-coverage-badge]: https://coveralls.io/repos/github/mayn/packerlicious/badge.svg?branch=master
Expand Down
17 changes: 17 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from distutils.core import setup
from setuptools import find_packages

setup(
name='packerlicious',
version='0.1.0dev',
author='Matthew Aynalem',
author_email='maynalem@gmail.com',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/mayn/packerlicious',
license='Apache License 2.0',
description='',
long_description=open('README.md').read(),
install_requires=[
],
)
19 changes: 19 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[tox]
minversion=2.6.0
envlist = py26,py27,py33,py34,py35,py36
skip_missing_interpreters = True

[testenv]
usedevelop = true
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
whitelist_externals =
find
commands=
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -delete
{envbindir}/coverage erase
{envbindir}/coverage run \
{envbindir}/pytest --basetemp={envtmpdir} {posargs}
{envbindir}/coverage html -d {toxinidir}/htmlcov/{envname}

0 comments on commit 671f4a8

Please sign in to comment.