File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2
2
This is the Slither cli script
3
3
"""
4
4
import argparse
5
+ from importlib .metadata import version
5
6
import json
6
7
import logging
7
8
import os
8
9
import sys
9
10
from typing import TYPE_CHECKING , Any , Optional
10
11
11
- from pkg_resources import require
12
-
13
12
from crytic_compile .crytic_compile import compile_all , get_platforms
14
13
from crytic_compile .cryticparser import DEFAULTS_FLAG_IN_CONFIG , cryticparser
15
14
from crytic_compile .platform import InvalidCompilation
@@ -109,7 +108,7 @@ def parse_args() -> argparse.Namespace:
109
108
parser .add_argument (
110
109
"--version" ,
111
110
help = "displays the current version" ,
112
- version = require ("crytic-compile" )[ 0 ]. version ,
111
+ version = version ("crytic-compile" ),
113
112
action = "version" ,
114
113
)
115
114
You can’t perform that action at this time.
0 commit comments