forked from test_framework/pytest-bdd
closes #41
This commit is contained in:
parent
2ff17b9e3e
commit
acb20318c3
|
@ -19,7 +19,7 @@ import sys, os
|
|||
|
||||
sys.path.insert(0, os.path.abspath('..'))
|
||||
|
||||
import setup
|
||||
import pytest_bdd
|
||||
|
||||
# -- General configuration -----------------------------------------------------
|
||||
|
||||
|
@ -51,9 +51,9 @@ copyright = u'2013, Oleg Pidsadnyi'
|
|||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = setup.version
|
||||
version = pytest_bdd.__version__
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = setup.version
|
||||
release = pytest_bdd.__version__
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
__version__ = '2.1.0'
|
||||
|
||||
try:
|
||||
from pytest_bdd.steps import given, when, then # pragma: no cover
|
||||
from pytest_bdd.scenario import scenario # pragma: no cover
|
||||
|
||||
__all__ = [given.__name__, when.__name__, then.__name__, scenario.__name__] # pragma: no cover
|
||||
except ImportError:
|
||||
# avoid import errors when only __version__ is needed (for setup.py)
|
||||
pass
|
||||
|
|
5
setup.py
5
setup.py
|
@ -6,8 +6,7 @@ import sys
|
|||
from setuptools import setup
|
||||
from setuptools.command.test import test as TestCommand
|
||||
|
||||
|
||||
version = '2.1.0'
|
||||
import pytest_bdd
|
||||
|
||||
|
||||
class Tox(TestCommand):
|
||||
|
@ -38,7 +37,7 @@ setup(
|
|||
license='MIT license',
|
||||
author_email='oleg.podsadny@gmail.com',
|
||||
url='https://github.com/olegpidsadnyi/pytest-bdd',
|
||||
version=version,
|
||||
version=pytest_bdd.__version__,
|
||||
classifiers=[
|
||||
'Development Status :: 6 - Mature',
|
||||
'Intended Audience :: Developers',
|
||||
|
|
Loading…
Reference in New Issue