Use tox to test

This commit is contained in:
Ryan Hiebert 2015-06-12 09:39:14 -05:00
parent f219370be2
commit bc2950e1b4
4 changed files with 19 additions and 9 deletions

View file

@ -1 +0,0 @@
Django>=1.5

View file

@ -1,8 +0,0 @@
import unittest
# Runs all tests found in filenames matching "test*""
if __name__ == '__main__':
test_loader = unittest.defaultTestLoader
test_runner = unittest.TextTestRunner()
test_suite = test_loader.discover('.')
test_runner.run(test_suite)

12
setup.py Normal file
View file

@ -0,0 +1,12 @@
from setuptools import setup, find_packages
setup(
name='django-components',
packages=find_packages(exclude='tests'),
classifiers=[
'Private :: Do Not Upload',
],
install_requires=[
'Django>=1.5'
],
)

7
tox.ini Normal file
View file

@ -0,0 +1,7 @@
[tox]
envlist = py27, py34
[testenv]
deps =
pytest
commands = py.test {posargs}