mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
add setup
This commit is contained in:
12
README.md
12
README.md
@@ -19,13 +19,7 @@
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ pip install -r requirements.txt
|
$ pip install git+https://github.com/debugtalk/ApiTestEngine.git#egg=ApiTestEngine
|
||||||
```
|
|
||||||
|
|
||||||
Run unittest to make sure everything is OK.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ python -m unittest discover
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 编写测试用例
|
## 编写测试用例
|
||||||
@@ -91,9 +85,9 @@ $ python -m unittest discover
|
|||||||
`ApiTestEngine`可指定运行特定的测试用例文件,或运行指定目录下的所有测试用例。
|
`ApiTestEngine`可指定运行特定的测试用例文件,或运行指定目录下的所有测试用例。
|
||||||
|
|
||||||
```bash
|
```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
|
## Supported Python Versions
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
__version__ = '0.1.0'
|
||||||
49
setup.py
Normal file
49
setup.py
Normal 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'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user