mirror of
https://gitee.com/bianbu-linux/factorytest
synced 2025-04-24 14:17:45 -04:00
52 lines
1.6 KiB
Python
52 lines
1.6 KiB
Python
#/usr/bin/env python
|
|
import io
|
|
import re
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
with io.open('./cricket/__init__.py', encoding='utf8') as version_file:
|
|
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read(), re.M)
|
|
if version_match:
|
|
version = version_match.group(1)
|
|
else:
|
|
raise RuntimeError("Unable to find version string.")
|
|
|
|
|
|
with io.open('README.rst', encoding='utf8') as readme:
|
|
long_description = readme.read()
|
|
|
|
|
|
setup(
|
|
name='cricket',
|
|
version=version,
|
|
description='A graphical tool to assist running test suites.',
|
|
long_description=long_description,
|
|
author='Russell Keith-Magee',
|
|
author_email='russell@keith-magee.com',
|
|
url='http://pybee.org/cricket',
|
|
packages=find_packages(exclude='tests'),
|
|
install_requires=['tkreadonly'],
|
|
scripts=[],
|
|
entry_points={
|
|
'console_scripts': [
|
|
'cricket-django = cricket.django.__main__:main',
|
|
'cricket-unittest = cricket.unittest.__main__:main',
|
|
]
|
|
},
|
|
license='New BSD',
|
|
classifiers=[
|
|
'Development Status :: 4 - Beta',
|
|
'Intended Audience :: Developers',
|
|
'License :: OSI Approved :: BSD License',
|
|
'Operating System :: OS Independent',
|
|
'Programming Language :: Python :: 2',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.3',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Topic :: Software Development',
|
|
'Topic :: Software Development :: Testing',
|
|
'Topic :: Utilities',
|
|
],
|
|
test_suite='tests'
|
|
)
|