forked from pytest-dev/pytest
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
45 lines (40 loc) · 1.23 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from setuptools import setup
# TODO: if py gets upgrade to >=1.6,
# remove _width_of_current_line in terminal.py
INSTALL_REQUIRES = [
"py>=1.5.0",
"packaging",
"attrs>=17.4.0", # should match oldattrs tox env.
"more-itertools>=4.0.0",
'atomicwrites>=1.0;sys_platform=="win32"',
'pathlib2>=2.2.0;python_version<"3.6"',
'colorama;sys_platform=="win32"',
"pluggy>=0.12",
'importlib-metadata>=0.12;python_version<"3.8"',
"wcwidth",
]
def main():
setup(
use_scm_version={
"write_to": "src/_pytest/_version.py",
"git_describe_command": "git describe --dirty --tags --long --match *.*",
},
setup_requires=["setuptools-scm", "setuptools>=40.0"],
package_dir={"": "src"},
extras_require={
"testing": [ # fmt: off
"argcomplete",
"mock",
"nose",
"requests",
"xmlschema",
], # fmt: on
"checkqa-mypy": [
"mypy==v0.910", # keep this in sync with .pre-commit-config.yaml.
"types-setuptools",
],
},
install_requires=INSTALL_REQUIRES,
)
if __name__ == "__main__":
main()