mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
Add Python3 requirement for black
When installing the development dependencies with Python2, it fails as black is not available for Python2.
This commit is contained in:
@@ -55,6 +55,8 @@ If you are using zsh, do not forget to escape the square brackets:
|
||||
|
||||
`$ pip install -e ./local/path/to/src\[dev\]`
|
||||
|
||||
Note that some development dependencies require Python3.
|
||||
|
||||
### 4. Setup hooks [optional]
|
||||
|
||||
If you plan to contribute to capa, you may want to setup the hooks.
|
||||
|
||||
8
setup.py
8
setup.py
@@ -41,7 +41,13 @@ setuptools.setup(
|
||||
include_package_data=True,
|
||||
install_requires=requirements,
|
||||
extras_require={
|
||||
"dev": ["pytest", "pytest-sugar", "pytest-instafail", "pytest-cov", "pycodestyle", "black", "isort"]
|
||||
"dev": ["pytest",
|
||||
"pytest-sugar",
|
||||
"pytest-instafail",
|
||||
"pytest-cov",
|
||||
"pycodestyle",
|
||||
"black ; python_version>'3.0'",
|
||||
"isort"]
|
||||
},
|
||||
zip_safe=False,
|
||||
keywords="capa",
|
||||
|
||||
Reference in New Issue
Block a user