forked from StackStorm/st2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.tools
71 lines (64 loc) · 1.74 KB
/
BUILD.tools
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# This BUILD file has requirements for most of the tools resolves
python_requirement(
name="bandit-reqs",
resolve="bandit",
requirements=[
"bandit==1.7.0",
"setuptools",
"GitPython==3.1.18",
# bandit needs stevedore which needs importlib-metadata<5
# see: https://github.com/PyCQA/bandit/pull/952
"importlib-metadata<5;python_version<'3.8'",
],
)
python_requirement(
name="black-reqs",
resolve="black",
requirements=[
"black==22.3.0",
"typing-extensions>=3.10.0.0;python_version<'3.10'",
],
)
python_requirement(
name="flake8-reqs",
resolve="flake8",
requirements=[
"flake8==4.0.1", # st2flake8 does not support flake8 v5
# license check plugin
"st2flake8==0.1.0", # TODO: remove in favor of regex-lint or preamble
],
)
# for pants-plugins, see //pants-plugins/BUILD
# for pylint, see //pylint_plugins/BUILD
python_requirement(
name="pytest-reqs",
resolve="pytest",
requirements=[
"pytest==7.0.1", # copied from https://www.pantsbuild.org/v2.14/docs/reference-pytest#version
"pytest-benchmark[histogram]==3.4.1",
# "pytest-timer[colorama]",
"pytest-icdiff",
"pygments",
# "pytest-timeout",
# "pytest-mock",
"pytest-cov>=2.12,!=2.12.1,<3.1",
"pytest-xdist>=2.5,<3",
],
)
python_requirement(
name="setuptools-reqs",
resolve="setuptools",
requirements=[
# setuptools 59.7 (at least) does not support python 3.6
"setuptools>=50.3.0,<59.0",
"wheel>=0.35.1,<0.38",
],
)
python_requirement(
name="twine-reqs",
resolve="twine",
requirements=[
"twine>=3.7.1,<3.8",
"colorama>=0.4.3",
],
)