Use pkg_resources to update DEPOSIT_CLI_VERSION

Co-authored-by: Carl Beekhuizen <carl@ethereum.org>
This commit is contained in:
Hsiao-Wei Wang 2020-10-01 18:04:50 +08:00 committed by GitHub
parent ed01530a82
commit 9d9dfd261a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,8 @@
from typing import Dict, NamedTuple
import pkg_resources
DEPOSIT_CLI_VERSION = "0.4.0"
DEPOSIT_CLI_VERSION = pkg_resources.require("eth2deposit")[0].version
class BaseChainSetting(NamedTuple):