Skip to content
Snippets Groups Projects
meta.yaml 3.71 KiB
{% set name = 'bob.devtools' %}

package:
  name: {{ name }}
  version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }}

build:
  entry_points:
    - bdt = bob.devtools.scripts.bdt:main
  number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
  run_exports:
    - {{ pin_subpackage(name) }}
  script:
    - cd {{ environ.get('RECIPE_DIR') + '/..' }}
    {% if environ.get('BUILD_EGG') and not os.path.exists('dist') %}
    - python setup.py sdist --formats=zip
    {% endif %}
    - {{ PYTHON }} -m pip install --no-deps --ignore-installed .
    # installs the documentation source, readme to share/doc so it is available
    # during test time
    - install -d "${PREFIX}/share/doc/{{ name }}"
    - cp -R README.rst doc "${PREFIX}/share/doc/{{ name }}/"

requirements:
  host:
    - python {{ python }}
    - pip
  run:
    - python
    - setuptools
    - black >=19
    - click >=7
    - click-plugins
    - conda=4
    - conda-build=3
    - mamba=0.15
    - boa=0.6
    - certifi
    - docformatter
    - git  # [linux]
    - pytz
    - python-dateutil
    - gitpython
    - python-gitlab
    - requests
    - sphinx!=4.0.1
    - pyyaml >=5.1
    - twine <3
    - lxml
    - jinja2
    - termcolor
    - psutil
    - tabulate
    - python-graphviz
    - pip

test:
  requires:
    - sphinx_rtd_theme
    - pytest
    - pytest-cov
  imports:
    - {{ name }}
  commands:
    - bdt -h
    - bdt -?
    - bdt --help
    - bdt dumpsphinx --help
    - bdt dumpsphinx https://docs.python.org/3/objects.inv > /dev/null
    - bdt create --help