1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
from importlib.machinery import SourceFileLoader
from pathlib import Path
from setuptools import setup
description = 'Numerous useful plugins for pytest.'
long_description = Path(__file__).resolve().parent.joinpath('README.rst').read_text()
# importing just this file avoids importing the full package with external dependencies which might not be installed
version = SourceFileLoader('version', 'pytest_toolbox/version.py').load_module()
setup(
name='pytest-toolbox',
version=str(version.VERSION),
description=description,
long_description=long_description,
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Testing',
'Framework :: Pytest',
],
keywords='pytest,plugin,toolbox',
author='Samuel Colvin',
license='MIT',
author_email='S@muelColvin.com',
url='https://github.com/samuelcolvin/pytest-toolbox',
packages=['pytest_toolbox'],
include_package_data=True,
zip_safe=True,
platforms='any',
python_requires='>=3.5',
install_requires=[
'pytest>=3.5.0',
],
entry_points={
'pytest11': ['toolbox = pytest_toolbox'],
},
)
|