{% set name = "documenteer" %}  {# PyPI name #}
{% set version = "0.6.9" %}

package:
  name: lsst-documenteer
  version: {{ version }}

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256: cb90ff96842af6ad4ed82a0c746c52c348aa015a4b753183f02c5ea7e73e1ca7

build:
  number: 0

outputs:
  - name: documenteer
    script: documenteer-build.sh
    build:
      noarch: python
      entry_points:
        - stack-docs = documenteer.stackdocs.stackcli:main
        - package-docs = documenteer.stackdocs.packagecli:main
        - build-stack-docs = documenteer.bin.buildstackdocs:run_build_cli
        - refresh-lsst-bib = documenteer.bin.refreshlsstbib:run
    requirements:
      build:
        - python                                 # [build_platform != target_platform]
        - cross-python_{{ target_platform }}     # [build_platform != target_platform]
      host:
        - python >=3.0
        - pip
        - setuptools
        - setuptools_scm
      run:
        - python >=3.7
        - sphinx >=2.4
        - click
        - gitpython
        - pyyaml
        - requests
        - sphinxcontrib-bibtex >=2.0
    test:
      imports:
        - documenteer
        - documenteer.bin
        - documenteer.sphinxconfig
        - documenteer.sphinxext
        - documenteer.sphinxext.lssttasks
        - documenteer.stackdocs
    about:
      home: https://github.com/lsst-sqre/documenteer
      license: MIT
      license_family: MIT
      license_file: LICENSE
      summary: Documenteer provides tools, extensions, and configurations for Vera Rubin Observatory Legacy Survey of Space and Time (LSST) Sphinx documentation projects.
      doc_url: https://documenteer.lsst.io/
      dev_url: https://github.com/lsst-sqre/documenteer

  - name: lsst-documenteer-technote
    requirements:
      run:
        - {{ pin_subpackage("documenteer", exact=True) }}
        - lsst-dd-rtd-theme >=0.2.0,<0.3.0
        - sphinx-prompt
    test:
      commands:
        - refresh-lsst-bib --help
    about:
      home: https://github.com/lsst-sqre/documenteer
      license: MIT
      license_family: MIT
      license_file: LICENSE
      summary: Meta package for Rubin Observatory LSST technical note projects.
      doc_url: https://documenteer.lsst.io/
      dev_url: https://github.com/lsst-sqre/documenteer

  - name: lsst-documenteer-pipelines
    requirements:
      run:
        - {{ pin_subpackage("documenteer", exact=True) }}
        - lsst-sphinx-bootstrap-theme >=0.2.0,<0.3.0
        - numpydoc
        - sphinx-automodapi
        - sphinx-jinja
        - sphinx-prompt
        - sphinx-click
        - sphinxcontrib-doxylink
        - sphinxcontrib-autoprogram
        - graphviz
    test:
      commands:
        - stack-docs --help
        - package-docs --help
        - build-stack-docs --help
    about:
      home: https://github.com/lsst-sqre/documenteer
      license: MIT
      license_family: MIT
      license_file: LICENSE
      summary: Meta package for Rubin Observatory LSST Science Pipelines documentation.
      doc_url: https://documenteer.lsst.io/
      dev_url: https://github.com/lsst-sqre/documenteer

about:
  home: https://github.com/lsst-sqre/documenteer
  license: MIT
  license_family: MIT
  license_file: LICENSE
  summary: Documenteer provides tools, extensions, and configurations for Vera Rubin Observatory Legacy Survey of Space and Time (LSST) Sphinx documentation projects.
  doc_url: https://documenteer.lsst.io/
  dev_url: https://github.com/lsst-sqre/documenteer

extra:
  recipe-maintainers:
    - jonathansick
