Skip to content

Commit fcf021f

Browse files
committed
build: move to the PEP 621 project
all project metadata was moved to pyproject.toml
1 parent 259bf9b commit fcf021f

File tree

4 files changed

+114
-140
lines changed

4 files changed

+114
-140
lines changed

dev-requirements.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.

pyproject.toml

Lines changed: 114 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,116 @@
11
[build-system]
22
requires = ["setuptools >= 64", "wheel"]
3-
build-backend = "setuptools.build_meta"
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "cve-bin-tool"
7+
dynamic = ["version"]
8+
description = "CVE Binary Checker Tool"
9+
readme = "README.md"
10+
requires-python = ">=3.9"
11+
license = "GPL-3.0-or-later"
12+
authors = [{ name = "Terri Oda", email = "[email protected]" }]
13+
maintainers = [{ name = "Terri Oda", email = "[email protected]" }]
14+
keywords = ["security", "tools", "CVE"]
15+
classifiers = [
16+
"Development Status :: 5 - Production/Stable",
17+
"Intended Audience :: Developers",
18+
"Natural Language :: English",
19+
"Operating System :: OS Independent",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
25+
"Programming Language :: Python :: Implementation :: CPython",
26+
"Programming Language :: Python :: Implementation :: PyPy",
27+
]
28+
dependencies = [
29+
"aiohttp[speedups]>=3.9.4",
30+
"beautifulsoup4",
31+
"cvss",
32+
"defusedxml",
33+
"distro",
34+
"filetype>=1.2.0",
35+
"gsutil",
36+
"importlib_metadata>=3.6; python_version < '3.10'",
37+
"importlib_resources; python_version < '3.9'",
38+
"jinja2>=2.11.3",
39+
"jsonschema>=3.0.2",
40+
"lib4sbom>=0.8.7",
41+
"lib4vex>=0.2.0",
42+
"packageurl-python",
43+
"packaging>=22.0",
44+
"plotly",
45+
"python-gnupg",
46+
"pyyaml>=5.4",
47+
"requests>=2.32.2",
48+
"rich",
49+
"rpmfile>=1.0.6",
50+
"setuptools>=70.0.0", # pinned by Snyk to avoid a vulnerability
51+
"toml; python_version < '3.11'",
52+
"urllib3>=2.2.2", # dependency of requests added explicitly to avoid CVEs
53+
"xmlschema",
54+
"zipp>=3.19.1", # not directly required, pinned by Snyk to avoid a vulnerability
55+
"zstandard",
56+
]
57+
58+
[project.optional-dependencies]
59+
PDF = ["reportlab"]
60+
dev = [
61+
"bandit; python_version <= '3.8'",
62+
"bandit==1.8.6; python_version > '3.8'",
63+
"black==25.1.0; python_version > '3.8'",
64+
"black; python_version <= '3.8'",
65+
"build",
66+
"isort==6.0.1",
67+
"pre-commit; python_version <= '3.8'",
68+
"pre-commit==4.3.0; python_version > '3.8'",
69+
"codespell==v2.4.1",
70+
"flake8==7.3.0",
71+
"gitlint==v0.19.1",
72+
"interrogate",
73+
"jsonschema",
74+
"mypy==v1.17.1",
75+
"playwright",
76+
"pytest>=7.2.0",
77+
"pytest-asyncio",
78+
"pytest-cov",
79+
"pytest-mock",
80+
"pytest-playwright",
81+
"pytest-xdist",
82+
"types-beautifulsoup4",
83+
"types-jsonschema",
84+
"types-PyYAML",
85+
"types-requests",
86+
"types-setuptools",
87+
"types-toml",
88+
]
89+
90+
[project.urls]
91+
homepage = "https://github.com/intel/cve-bin-tool"
92+
github = "https://github.com/intel/cve-bin-tool"
93+
issues = "https://github.com/intel/cve-bin-tool/issues"
94+
documentation = "https://cve-bin-tool.readthedocs.io/en/latest/"
95+
96+
[project.scripts]
97+
cve-bin-tool = "cve_bin_tool.cli:main"
98+
csv2cve = "cve_bin_tool.csv2cve:main"
99+
mismatch = "mismatch.cli:main"
100+
101+
[tool.setuptools.packages.find]
102+
exclude = ["locales", "presentation"]
103+
104+
[tool.setuptools.dynamic]
105+
version = { attr = "cve_bin_tool.version.VERSION" }
106+
107+
[tool.setuptools.package-data]
108+
"cve_bin_tool.output_engine" = [
109+
"html_reports/templates/*.html",
110+
"html_reports/css/*.css",
111+
"html_reports/js/*.js",
112+
"print_mode/templates/*.html",
113+
]
114+
"cve_bin_tool" = ["schemas/*.xsd"]
115+
"sbom" = ["*.spdx", "*.json"]
116+
"mismatch" = ["*.py"]

requirements.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)