forked from tenable/pyTenable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
135 lines (111 loc) · 3.29 KB
/
pyproject.toml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
requires-python = ">=3.7"
dynamic = ["version"]
readme = "README.rst"
name = "pyTenable"
description = "Python library to interface into Tenable's products and applications"
authors = [
{name = "Tenable, Inc."},
{name = "Steve McGrath", email = "[email protected]"}
]
license = {text = "MIT License"}
keywords = [
"tenable",
"tenable vulnerability management",
"tenable security center",
"tenable securitycenter",
"tenable.io",
"tenable.sc",
"tenable.cs",
"tenable cloud security",
"tenable container security",
"tenable.ot",
"tenable ot security",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"requests>=2.26",
"python-dateutil>=2.6",
"semver>=2.10.0",
"restfly>=1.4.5",
"marshmallow>=3.8",
"python-box>=4.0",
"defusedxml>=0.5.0",
"urllib3>=1.26.18",
"typing-extensions>=4.0.1",
"dataclasses>=0.8;python_version=='3.6'",
"requests-toolbelt>=1.0.0",
"gql>=3.5.0",
"graphql-core>=3.2.3",
]
[project.optional-dependencies]
pkcs12 = ["cryptography>=43.0.1"]
all = ["pytenable[pkcs12]"]
[project.urls]
Homepage = "https://pytenable.readthedocs.io"
Repository = "https://github.com/tenable/pytenable"
Issues = "https://github.com/tenable/pytenable/issues"
Changelog = "https://github.com/tenable/pytenable/blob/master/CHANGELOG.md"
[tool.setuptools.dynamic]
version = {attr = "tenable.version.version"}
[tool.setuptools.packages.find]
include = ["tenable*"]
[tool.setuptools.package-data]
"tenable.cloudsecurity.queries" = ["*.graphql"]
[tool.ruff]
line-length = 88
indent-width = 4
exclude = [
".nova",
".github",
".git",
".pytest_cache",
"__pycache__"
]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B"]
fixable = [ "ALL" ]
unfixable = [ "B" ]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"tenable/vm.py" = ["F401"]
"**/{tests,docs,tools}/*" = ["E402"]
[tool.uv]
dev-dependencies = [
"bpython>=0.24",
"mock>=5.1.0",
"pytest-cov>=4.1.0",
"pytest-datafiles>=3.0.0",
"pytest-vcr>=1.0.2",
"pytest>=7.4.4",
"responses>=0.23.3",
"ruff>=0.6.4",
# URLLib3 version 2.x doesn't play well with the version of pytest-vcr that supports
# Python 3.9 and lower. This can be removed once 3.9 goes EOS or when we stop using
# VCR for the test suite.
"urllib3==1.26.20",
]
[tool.pytest.ini_options]
addopts = "--cov-report term-missing --cov=tenable"