Skip to content

Commit 227dc26

Browse files
authored
fix: improve explicit setuptools package config (#1625)
* fixes #1623
1 parent 2d40327 commit 227dc26

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cve_bin_tool/egg_updater.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import sys
77
from io import StringIO
88

9+
from setuptools import find_packages
910
from setuptools.dist import Distribution
1011

1112
with open(os.path.join("cve_bin_tool", "version.py")) as f:
@@ -43,6 +44,9 @@ def update_egg() -> None:
4344
script_args=["egg_info"],
4445
name="cve-bin-tool",
4546
version=VERSION,
47+
packages=find_packages(
48+
exclude=["locales", "presentation"],
49+
),
4650
entry_points={
4751
"console_scripts": [
4852
"cve-bin-tool = cve_bin_tool.cli:main",

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
"Programming Language :: Python :: Implementation :: PyPy",
4646
],
4747
install_requires=requirements,
48-
packages=find_packages(),
48+
packages=find_packages(
49+
exclude=["locales", "presentation"],
50+
),
4951
package_data={
5052
"cve_bin_tool.output_engine": [
5153
"html_reports/templates/*.html",

0 commit comments

Comments
 (0)