Skip to content

Commit

Permalink
Adds a list of optional Python dependencies required to run all `mlli…
Browse files Browse the repository at this point in the history
…nt`'s analyses. Can be installed with `pip install mllint[tools]` when released
  • Loading branch information
bvobart committed May 26, 2021
1 parent 96e85e7 commit 1f9d897
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/requirements-tools.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dvc>=2.0.0
pylint>=2.0.0
mypy>=0.800
black>=21.4b0
isort>=5.0.0
bandit>=1.6.2
5 changes: 5 additions & 0 deletions build/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import platform
import shutil

import setuptools

version = os.getenv("MLLINT_VERSION", "dev-snapshot")
Expand Down Expand Up @@ -112,6 +113,9 @@ def has_ext_modules(self):
# Include ReadMe as long description
with open("ReadMe.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# Include peer dependencies from requirements-tools.txt
with open("requirements-tools.txt", "r", encoding="utf-8") as fh:
tools_require = fh.read().splitlines()

setuptools.setup(
name="mllint",
Expand Down Expand Up @@ -154,6 +158,7 @@ def has_ext_modules(self):
packages=['mllint'],
package_data={'mllint': ['mllint-exe']},
python_requires=">=3.6",
extras_require={'tools': tools_require},
entry_points={
'console_scripts': [
'mllint=mllint.cli:main'
Expand Down

0 comments on commit 1f9d897

Please sign in to comment.