mirror of
https://github.com/django-components/django-components.git
synced 2025-08-03 13:58:16 +00:00
Use tox to test
This commit is contained in:
parent
f219370be2
commit
bc2950e1b4
4 changed files with 19 additions and 9 deletions
|
@ -1 +0,0 @@
|
|||
Django>=1.5
|
|
@ -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
12
setup.py
Normal 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
7
tox.ini
Normal file
|
@ -0,0 +1,7 @@
|
|||
[tox]
|
||||
envlist = py27, py34
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
pytest
|
||||
commands = py.test {posargs}
|
Loading…
Add table
Add a link
Reference in a new issue