chg: Make extra PyMISP deps optional

pull/136/head
Raphaël Vinot 2020-12-08 17:05:30 +01:00
parent fa5b5d6b09
commit ba7c0f4f2e
3 changed files with 13 additions and 5 deletions

View File

@ -23,6 +23,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt install libfuzzy-dev
python -m pip install --upgrade pip poetry
poetry install

9
poetry.lock generated
View File

@ -666,7 +666,7 @@ name = "pydeep"
version = "0.4"
description = "Python bindings for ssdeep"
category = "main"
optional = false
optional = true
python-versions = "*"
[[package]]
@ -826,7 +826,7 @@ name = "python-magic"
version = "0.4.18"
description = "File type identification using libmagic"
category = "main"
optional = false
optional = true
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
@ -1121,10 +1121,13 @@ docs = ["sphinx", "repoze.sphinx.autointerface"]
test = ["coverage (>=5.0.3)", "zope.event", "zope.testing"]
testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"]
[extras]
misp = ["python-magic", "pydeep"]
[metadata]
lock-version = "1.1"
python-versions = "^3.7"
content-hash = "902abf61d8df9e9ebec1f03c7857afac9d8f4b696be3fad1637ace864250be5e"
content-hash = "bd69eeeb9e624116448b67542215105ea09782d51240ec7ba4769adf77cdc521"
[metadata.files]
aiohttp = [

View File

@ -51,8 +51,12 @@ pylookyloo = "^1.2"
dnspython = "^2.0.0"
pytaxonomies = "^1.3"
pymisp = {version = "^2.4.135", extras = ["url"]}
pydeep = "^0.4"
python-magic = "^0.4.18"
python-magic = {version = "^0.4.18", optional = true}
# pydeep requires libfuzzy-dev, and is only used in the MISP export module
pydeep = {version = "^0.4", optional = true}
[tool.poetry.extras]
misp = ['python-magic', 'pydeep']
[tool.poetry.dev-dependencies]
mypy = "^0.790"