diff --git a/README.md b/README.md index da7616a6..9416083c 100644 --- a/README.md +++ b/README.md @@ -209,7 +209,7 @@ Python `2.7`, `3.4`, `3.5` and `3.6`. To develop or debug `HttpRunner`, you can install relevant requirements and use `main-ate.py` or `main-locust.py` as entrances. ```bash -$ pip install -r requirements_dev.txt +$ pip install -r requirements.txt $ python main-ate -h $ python main-locust -h ``` diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..bafa7e70 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +requests[security] +flask +PyYAML +coveralls +coverage +PyUnitReport \ No newline at end of file diff --git a/requirements_dev.txt b/requirements_dev.txt deleted file mode 100644 index 8a7c8f00..00000000 --- a/requirements_dev.txt +++ /dev/null @@ -1,7 +0,0 @@ -requests[security] -flask -PyYAML -coveralls -coverage --e git+https://github.com/debugtalk/PyUnitReport.git#egg=PyUnitReport --e git+https://github.com/locustio/locust.git#egg=locustio \ No newline at end of file diff --git a/setup.py b/setup.py index 264b6616..a9d20197 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,8 @@ from setuptools import find_packages, setup with io.open("README.md", encoding='utf-8') as f: long_description = f.read() +install_requires = open("requirements.txt").readlines() + setup( name='HttpRunner', version=__version__, @@ -21,14 +23,7 @@ setup( 'ate': ['locustfile_template'], }, keywords='api test', - install_requires=[ - "requests[security]", - "flask", - "PyYAML", - "coveralls", - "coverage", - "PyUnitReport" - ], + install_requires=install_requires, classifiers=[ "Development Status :: 3 - Alpha", 'Programming Language :: Python :: 2.7',