{% set version = "1.6.0" %}

package:
  name: tensorboard
  version: {{ version }}

source:
  fn: tensorflow-{{ version }}.tar.gz
  url: https://github.com/tensorflow/tensorboard/archive/{{ version }}.tar.gz
  sha256: 087242325ef3b91f1909e3fd3a873ad15e3c7703990ad8caab64736d9009bf62

build:
  number: 0
  skip: True  # [not linux64]
  entry_points:
    - tensorboard = tensorboard.main:run_main

requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
  host:
    - bazel >=0.9.0
    - python
    - setuptools
  run:
    - python
    - werkzeug >=0.11.10
    - six >=1.10.0
    - protobuf >=3.4.0
    - numpy >=1.12
    - markdown >=2.6.8
    - html5lib ==0.9999999  # 7 nines
    - futures >=3.1.1  # [py27]
    - bleach ==1.5.0

test:
  requires:
    - tensorflow-base >=1.6.0,<1.7.0
  imports:
    - tensorboard
  commands:
    # sets an exit value of 1
    # https://github.com/tensorflow/tensorboard/issues/1007
    - tensorboard --help || true

about:
  home: http://tensorflow.org/
  license: Apache 2.0
  license_family: Apache
  summary: TensorBoard lets you watch Tensors Flow
  dev_url: https://github.com/tensorflow/tensorboard
