diff --git a/README.md b/README.md index a70c73a5..a91de371 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ate/__init__.py b/ate/__init__.py index e69de29b..541f859d 100644 --- a/ate/__init__.py +++ b/ate/__init__.py @@ -0,0 +1 @@ +__version__ = '0.1.0' \ No newline at end of file diff --git a/requirements.txt b/requirements_dev.txt similarity index 100% rename from requirements.txt rename to requirements_dev.txt diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..589ef2ad --- /dev/null +++ b/setup.py @@ -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' + ] + } +)