File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ [pytest]
2
+ norecursedirs = .svn .git _build tmp* venv redshift_sqlalchemy
3
+
Original file line number Diff line number Diff line change 1
1
from setuptools import setup
2
+ from setuptools .command .test import test as TestCommand
3
+ import sys
4
+
5
+ class PyTest (TestCommand ):
6
+ def run_tests (self ):
7
+ import pytest
8
+ errno = pytest .main (self .test_args )
9
+ sys .exit (errno )
2
10
3
11
setup (
4
12
name = 'redshift-sqlalchemy' ,
11
19
url = 'https://github.com/binarydud/redshift_sqlalchemy' ,
12
20
packages = ['redshift_sqlalchemy' ],
13
21
install_requires = ['psycopg2>=2.5' , 'SQLAlchemy>=0.8.0' ],
22
+ tests_require = ['pytest>=2.5.2' ],
23
+ test_suite = "tests" ,
24
+ cmdclass = {'test' : PyTest },
14
25
include_package_data = True ,
15
26
zip_safe = False ,
16
27
classifiers = [
You can’t perform that action at this time.
0 commit comments