Move signatures.db to mythril.support

pull/882/head
Nikhil Parasaram 6 years ago
parent 500aeb5df3
commit 180de41c2c
  1. 2
      MANIFEST.in
  2. 4
      mythril/mythril.py
  3. 0
      mythril/support/signatures.db
  4. 5
      setup.py

@ -1,2 +1,2 @@
include signatures.db include mythril/support/signatures.db
include mythril/analysis/templates/* include mythril/analysis/templates/*

@ -134,8 +134,8 @@ class Mythril(object):
if not os.path.exists(db_path): if not os.path.exists(db_path):
# if the default mythril dir doesn't contain a signature DB # if the default mythril dir doesn't contain a signature DB
# initialize it with the default one from the project root # initialize it with the default one from the project root
parent_dir = Path(__file__).parent.parent support_dir = Path(__file__).parent.parent
copyfile(str(parent_dir / "signatures.db"), db_path) copyfile(str(support_dir / "signatures.db"), db_path)
return mythril_dir return mythril_dir

@ -101,7 +101,10 @@ setup(
tests_require=["pytest>=3.6.0", "pytest_mock", "pytest-cov"], tests_require=["pytest>=3.6.0", "pytest_mock", "pytest-cov"],
python_requires=">=3.5", python_requires=">=3.5",
extras_require={}, extras_require={},
package_data={"mythril.analysis.templates": ["*"], "": ["signatures.db"]}, package_data={
"mythril.analysis.templates": ["*"],
"mythril.support": ["signatures.db"],
},
include_package_data=True, include_package_data=True,
entry_points={"console_scripts": ["myth=mythril.interfaces.cli:main"]}, entry_points={"console_scripts": ["myth=mythril.interfaces.cli:main"]},
cmdclass={"verify": VerifyVersionCommand}, cmdclass={"verify": VerifyVersionCommand},

Loading…
Cancel
Save