Remove PyTest command class

This commit is contained in:
Konsta Vesterinen
2014-01-05 21:36:21 +02:00
parent 9d51e61c1e
commit 896932cc0b
2 changed files with 2 additions and 18 deletions

View File

@@ -21,4 +21,4 @@ install:
- "pip install $SQLALCHEMY" - "pip install $SQLALCHEMY"
- pip install -e ".[test]" - pip install -e ".[test]"
script: script:
- python setup.py test - py.test

View File

@@ -4,25 +4,10 @@ SQLAlchemy-Utils
Various utility functions and custom data types for SQLAlchemy. Various utility functions and custom data types for SQLAlchemy.
""" """
from setuptools import setup, Command, find_packages from setuptools import setup, find_packages
import subprocess
import sys import sys
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call(['py.test'])
sys.exit(errno)
PY3 = sys.version_info[0] == 3 PY3 = sys.version_info[0] == 3
@@ -85,7 +70,6 @@ setup(
if sys.version_info[0] == 2 and sys.version_info[1] < 7 else '' if sys.version_info[0] == 2 and sys.version_info[1] < 7 else ''
], ],
extras_require=extras_require, extras_require=extras_require,
cmdclass={'test': PyTest},
classifiers=[ classifiers=[
'Environment :: Web Environment', 'Environment :: Web Environment',
'Intended Audience :: Developers', 'Intended Audience :: Developers',