[tool.poetry]
name = "blueye.sdk"
version = "0.3.0"
description = "SDK for controlling a Blueye Pioneer"
authors = ["Sindre Hansen <sindre.hansen@blueye.no>",
           "Aksel Lenes <aksel.lenes@blueye.no"]
packages = [
  { include = "blueye" }
]

include= ["blueye.sdk_docs/**/*"]
readme = "README.md"
repository="https://github.com/blueye-robotics/blueye.sdk"
homepage ="https://www.blueyerobotics.com"
keywords = ["Blueye", "Pioneer", "Robotics", "SDK", "Software Development Kit"]

[tool.poetry.dependencies]
python = "^3.7"
"blueye.protocol" = "^1.1.5"
asciimatics = {version = "^1.11.0", optional = true}
inputs = {version = "^0.5", optional = true}
pandas = {version = "^0.25.2", optional = true}
matplotlib = {version = "^3.1.1", optional = true}
webdavclient3 = {version = "^0.12", optional = true}
requests = "^2.22.0"
tabulate = "^0.8.5"

[tool.poetry.dev-dependencies]
pytest = "^5.2"
pytest-mock = "^1.10.4"
portray = "^1.3.0"
pre-commit = "^1.18.3"
black = "^19.3b0"
mkdocs-macros-plugin = "^0.2.4"
flake8 = "^3.7.8"
pymdown-extensions = "^6.1"
pytest-cov = "^2.8.1"
requests-mock = "^1.7.0"

[tool.poetry.extras]
examples = ["inputs", "asciimatics", "pandas", "matplotlib", "webdavclient3"]

[tool.portray.mkdocs]
use_directory_urls = false
repo_url = "https://github.com/BluEye-Robotics/blueye.sdk"
repo_name = ""
plugins = ["search", "macros"]
python_module = "doc_utils" # For macros plugin
site_name = "Blueye SDK"
markdown_extensions = ["admonition",
                       "pymdownx.arithmatex",
                       "pymdownx.caret",
                       "pymdownx.critic",
                       "pymdownx.details",
                       "pymdownx.inlinehilite",
                       "pymdownx.magiclink",
                       "pymdownx.mark",
                       "pymdownx.smartsymbols",
                       "pymdownx.superfences",
                       "pymdownx.tilde",
                       ]

[tool.portray.mkdocs.theme]
favicon = "docs/media/blueye_b.svg"
logo = "docs/media/blueye_b.svg"
name = "material"
palette = {primary = "white", accent = "blue"}

[[tool.portray.mkdocs.nav]]
"About the Pioneer" = "README.md"

[[tool.portray.mkdocs.nav]]
"Quick Start" = "docs/quick_start.md"

[[tool.portray.mkdocs.nav]]
    [[tool.portray.mkdocs.nav.Movement]]
    "Control from the CLI" = "docs/movement/from-the-CLI.md"
    [[tool.portray.mkdocs.nav.Movement]]
    "Control with a gamepad" = "docs/movement/with-a-gamepad.md"

[[tool.portray.mkdocs.nav]]
    [[tool.portray.mkdocs.nav.Video]]
    "GStreamer for video streaming" = "docs/video/gstreamer-for-video-streaming.md"
    [[tool.portray.mkdocs.nav.Video]]
    "Downloading videos and images" = "docs/video/downloading.md"

[[tool.portray.mkdocs.nav]]
    [[tool.portray.mkdocs.nav.Logs]]
    "Listing and downloading log files" = "docs/logs/listing-and-downloading.md"
    [[tool.portray.mkdocs.nav.Logs]]
    "Log file format" = "docs/logs/log-file-format.md"
    [[tool.portray.mkdocs.nav.Logs]]
    "Plotting log files" = "docs/logs/plotting.md"

[[tool.portray.mkdocs.nav]]
"HTTP API" = "docs/http-api.html"

[tool.black]
line-lenght = 100

[build-system]
requires = ["poetry>=1.0.0b3"]
build-backend = "poetry.masonry.api"
