pytest-bdd/setup.py

57 lines
1.9 KiB
Python
Raw Normal View History

#!/usr/bin/env python
2014-07-24 23:38:42 +08:00
"""pytest-bdd package config."""
2014-06-11 03:58:24 +08:00
import codecs
import os
2015-06-16 04:34:53 +08:00
import re
2013-04-03 13:57:31 +08:00
2013-05-01 20:03:28 +08:00
from setuptools import setup
2013-03-31 09:03:40 +08:00
dirname = os.path.dirname(__file__)
long_description = (
codecs.open(os.path.join(dirname, "README.rst"), encoding="utf-8").read()
+ "\n"
+ codecs.open(os.path.join(dirname, "AUTHORS.rst"), encoding="utf-8").read()
+ "\n"
+ codecs.open(os.path.join(dirname, "CHANGES.rst"), encoding="utf-8").read()
)
2013-03-31 09:03:40 +08:00
with codecs.open(os.path.join(dirname, "pytest_bdd", "__init__.py"), encoding="utf-8") as fd:
VERSION = re.compile(r".*__version__ = ['\"](.*?)['\"]", re.S).match(fd.read()).group(1)
2015-06-16 04:34:53 +08:00
2013-03-31 09:03:40 +08:00
setup(
name="pytest-bdd",
description="BDD for pytest",
long_description=long_description,
2014-12-10 06:16:52 +08:00
author="Oleg Pidsadnyi, Anatoly Bubenkov and others",
license="MIT license",
author_email="oleg.pidsadnyi@gmail.com",
2015-03-01 19:44:43 +08:00
url="https://github.com/pytest-dev/pytest-bdd",
2015-06-16 04:34:53 +08:00
version=VERSION,
2013-06-16 21:52:20 +08:00
classifiers=[
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
+ [("Programming Language :: Python :: %s" % x) for x in "2.7 3.5 3.6 3.7 3.8".split()],
install_requires=["glob2", "Mako", "parse", "parse_type", "py", "pytest>=4.3", "six>=1.9.0"],
2013-05-28 23:11:47 +08:00
# the following makes a plugin available to py.test
2013-06-16 21:52:20 +08:00
entry_points={
"pytest11": ["pytest-bdd = pytest_bdd.plugin"],
"console_scripts": ["pytest-bdd = pytest_bdd.scripts:main"],
2013-05-28 23:11:47 +08:00
},
tests_require=["tox"],
packages=["pytest_bdd"],
include_package_data=True,
2013-03-31 09:03:40 +08:00
)