Skip to content

Commit

Permalink
reorg some deps a bit, usee env markers for dataclasses (#1559)
Browse files Browse the repository at this point in the history
* reorg some deps a bit, usee env markers for dataclasses

* pin some of our linting deps, add mypy

* black has opinions and I must not
  • Loading branch information
reaperhulk authored Nov 22, 2019
1 parent d00b5f5 commit ed041d6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import sys
from setuptools import setup, find_packages

on_rtd = os.environ.get("READTHEDOCS") == "True"
Expand All @@ -13,16 +12,12 @@ def rtd_dependent_deps():
return ["z3-solver"]


version = sys.version_info
dataclass_deps = ["dataclasses"] if version.major == 3 and version.minor < 7 else []


# If you update native_deps please update the `REQUIREMENTS_TO_IMPORTS` dict in `utils/install_helper.py`
# (we need to know how to import a given native dependency so we can check if native dependencies are installed)
native_deps = ["capstone==4.0.1", "pyelftools", "unicorn==1.0.2rc1"]

# Development dependencies without keystone
dev_noks = native_deps + ["coverage", "nose", "Sphinx"]
dev_noks = native_deps + ["coverage", "nose", "Sphinx", "black==19.3b0", "mypy==0.740"]

extra_require = {
"native": native_deps,
Expand Down Expand Up @@ -52,10 +47,9 @@ def rtd_dependent_deps():
"ply",
"crytic-compile>=0.1.1",
"wasm",
"black",
"dataclasses; python_version < '3.7'",
]
+ rtd_dependent_deps()
+ dataclass_deps,
+ rtd_dependent_deps(),
extras_require=extra_require,
entry_points={"console_scripts": ["manticore = manticore.__main__:main"]},
)

0 comments on commit ed041d6

Please sign in to comment.