Skip to content

Commit

Permalink
tabulate: remove tabulate and its dependency wcwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
fariss committed Sep 24, 2024
1 parent 3eb0d89 commit 1a6c8cc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions .github/pyinstaller/pyinstaller.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Copyright (C) 2020 Mandiant, Inc. All Rights Reserved.
import sys

import wcwidth
import capa.rules.cache

from pathlib import Path
Expand All @@ -29,13 +28,6 @@ a = Analysis(
("../../rules", "rules"),
("../../sigs", "sigs"),
("../../cache", "cache"),
# capa.render.default uses tabulate that depends on wcwidth.
# it seems wcwidth uses a json file `version.json`
# and this doesn't get picked up by pyinstaller automatically.
# so we manually embed the wcwidth resources here.
#
# ref: https://stackoverflow.com/a/62278462/87207
(Path(wcwidth.__file__).parent, "wcwidth"),
],
# when invoking pyinstaller from the project root,
# this gets run from the project root.
Expand Down
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ dependencies = [
# As specific constraints are identified, please provide
# comments and context.
"pyyaml>=6",
"tabulate>=0.9",
"colorama>=0.4",
"wcwidth>=0.2",
"ida-settings>=2",
"ruamel.yaml>=0.18",
"pefile>=2023.2.7",
Expand Down Expand Up @@ -144,7 +142,6 @@ dev = [
"types-backports==0.1.3",
"types-colorama==0.4.15.11",
"types-PyYAML==6.0.8",
"types-tabulate==0.9.0.20240106",
"types-psutil==6.0.0.20240901",
"types_requests==2.32.0.20240712",
"types-protobuf==5.27.0.20240907",
Expand Down Expand Up @@ -231,9 +228,7 @@ DEP002 = [
"types-protobuf",
"types-psutil",
"types-PyYAML",
"types-tabulate",
"types_requests",
"wcwidth"
]

# dependencies imported but missing from definitions
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ ruamel-yaml-clib==0.2.8
setuptools==70.0.0
six==1.16.0
sortedcontainers==2.4.0
tabulate==0.9.0
viv-utils==0.7.11
vivisect==1.2.1
wcwidth==0.2.13
msgspec==0.18.6

0 comments on commit 1a6c8cc

Please sign in to comment.