add setup

This commit is contained in:
debugtalk
2017-07-19 19:06:25 +08:00
parent c563237ca3
commit 4c1f0d9965
4 changed files with 53 additions and 9 deletions

View File

@@ -19,13 +19,7 @@
## Install
```bash
$ pip install -r requirements.txt
```
Run unittest to make sure everything is OK.
```bash
$ python -m unittest discover
$ pip install git+https://github.com/debugtalk/ApiTestEngine.git#egg=ApiTestEngine
```
## 编写测试用例
@@ -91,9 +85,9 @@ $ python -m unittest discover
`ApiTestEngine`可指定运行特定的测试用例文件,或运行指定目录下的所有测试用例。
```bash
$ python main.py --testcase-path filepath/testcase.yml
$ ate --testcase-path filepath/testcase.yml
$ python main.py --testcase-path testcases_folder_path
$ ate --testcase-path testcases_folder_path
```
## Supported Python Versions

View File

@@ -0,0 +1 @@
__version__ = '0.1.0'

49
setup.py Normal file
View File

@@ -0,0 +1,49 @@
#encoding: utf-8
import os
import re
from setuptools import setup, find_packages
# parse version from ate/__init__.py
with open(os.path.join(os.path.dirname(__file__), 'ate', '__init__.py')) as f:
version = re.compile(r"__version__\s+=\s+'(.*)'", re.I).match(f.read()).group(1)
with open('README.md') as f:
long_description = f.read()
setup(
name='ApiTestEngine',
version=version,
description='An API test engine.',
long_description=long_description,
author='Leo Lee',
author_email='mail@debugtalk.com',
url='https://github.com/debugtalk/ApiTestEngine',
license='MIT',
packages=find_packages(exclude=['test.*', 'test']),
keywords='api test',
install_requires=[
"requests",
"termcolor",
"flask",
"PyYAML",
"coveralls",
"coverage",
"PyUnitReport"
],
dependency_links=[
"git+https://github.com/debugtalk/PyUnitReport.git#egg=PyUnitReport"
],
classifiers=[
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
entry_points={
'console_scripts': [
'ate=ate.cli:main'
]
}
)