2017-04-23 22:59:08 +08:00
|
|
|
import os
|
2018-10-25 15:01:29 +08:00
|
|
|
|
2018-06-08 12:55:50 +08:00
|
|
|
from setuptools import setup
|
2008-08-21 18:18:58 +08:00
|
|
|
|
2018-10-15 13:30:07 +08:00
|
|
|
# TODO: if py gets upgrade to >=1.6,
|
|
|
|
# remove _width_of_current_line in terminal.py
|
|
|
|
INSTALL_REQUIRES = [
|
|
|
|
"py>=1.5.0",
|
|
|
|
"six>=1.10.0",
|
|
|
|
"setuptools",
|
|
|
|
"attrs>=17.4.0",
|
2019-02-12 19:29:26 +08:00
|
|
|
'more-itertools>=4.0.0,<6.0.0;python_version<="2.7"',
|
|
|
|
'more-itertools>=4.0.0;python_version>"2.7"',
|
2018-10-15 13:30:07 +08:00
|
|
|
"atomicwrites>=1.0",
|
|
|
|
'funcsigs;python_version<"3.0"',
|
|
|
|
'pathlib2>=2.2.0;python_version<"3.6"',
|
|
|
|
'colorama;sys_platform=="win32"',
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
# if _PYTEST_SETUP_SKIP_PLUGGY_DEP is set, skip installing pluggy;
|
|
|
|
# used by tox.ini to test with pluggy master
|
|
|
|
if "_PYTEST_SETUP_SKIP_PLUGGY_DEP" not in os.environ:
|
|
|
|
INSTALL_REQUIRES.append("pluggy>=0.7")
|
2013-07-26 14:59:31 +08:00
|
|
|
|
2018-10-15 13:30:07 +08:00
|
|
|
|
|
|
|
def main():
|
2008-08-21 18:18:58 +08:00
|
|
|
setup(
|
2018-05-26 15:05:41 +08:00
|
|
|
use_scm_version={"write_to": "src/_pytest/_version.py"},
|
2018-10-18 02:08:07 +08:00
|
|
|
setup_requires=["setuptools-scm", "setuptools>=40.0"],
|
2018-05-26 15:05:41 +08:00
|
|
|
package_dir={"": "src"},
|
2018-11-18 08:15:54 +08:00
|
|
|
# fmt: off
|
|
|
|
extras_require={
|
|
|
|
"testing": [
|
2019-02-27 23:07:11 +08:00
|
|
|
"argcomplete",
|
2018-11-18 08:15:54 +08:00
|
|
|
"hypothesis>=3.56",
|
|
|
|
"nose",
|
|
|
|
"requests",
|
|
|
|
"mock;python_version=='2.7'",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
# fmt: on
|
2018-10-15 13:30:07 +08:00
|
|
|
install_requires=INSTALL_REQUIRES,
|
2008-08-18 23:08:39 +08:00
|
|
|
)
|
|
|
|
|
2014-05-14 01:02:02 +08:00
|
|
|
|
2018-05-23 22:48:46 +08:00
|
|
|
if __name__ == "__main__":
|
2012-10-01 16:31:04 +08:00
|
|
|
main()
|