pytest-bdd/setup.py

35 lines
663 B
Python
Raw Normal View History

2013-03-31 09:03:40 +08:00
#!/usr/bin/env python
2013-03-31 16:37:53 +08:00
import os
2013-04-07 08:24:43 +08:00
from setuptools import setup, Command
2013-04-03 13:57:31 +08:00
class PyTest(Command):
2013-04-05 06:13:04 +08:00
"""Testing."""
2013-04-03 13:57:31 +08:00
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
import subprocess
errno = subprocess.call([sys.executable, '-m', 'pytest'])
raise SystemExit(errno)
2013-03-31 09:03:40 +08:00
setup(
2013-03-31 16:37:53 +08:00
name='pytest-bdd',
2013-03-31 09:03:40 +08:00
description='BDD for pytest',
2013-04-07 08:24:43 +08:00
author='Oleg Pidsadnyi, Anatoly Bubenkov',
2013-03-31 09:03:40 +08:00
version='0.1',
2013-04-03 13:57:31 +08:00
cmdclass={'test': PyTest},
2013-03-31 09:03:40 +08:00
install_requires=[
'pytest',
],
2013-04-03 13:57:31 +08:00
tests_require=['mock'],
2013-04-07 08:24:43 +08:00
packages=['pytest_bdd'],
2013-03-31 09:03:40 +08:00
)