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:
Ana María Martínez Gómez
2020-07-03 11:35:52 +02:00
parent 2f78c681e4
commit 26d2f12038
2 changed files with 9 additions and 1 deletions

View File

@@ -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.

View File

@@ -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",