{% set name = "conda-build" %}
{% set version = "3.26.1" %}
{% set build_number = "0" %}
{% set sha256 = "8cc268a45c94347f67e22c13afec9a6cc02bf32dadccd8fa1b578cf5cec22987" %}


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

source:
  url: https://github.com/conda/{{ name }}/archive/{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  skip: True  # [py<38]
  number: {{ build_number }}
  script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vv
  entry_points:
    - conda-build = conda_build.cli.main_build:main
    - conda-convert = conda_build.cli.main_convert:main
    - conda-debug = conda_build.cli.main_debug:main
    - conda-develop = conda_build.cli.main_develop:main
    - conda-index = conda_build.cli.main_index:main
    - conda-inspect = conda_build.cli.main_inspect:main
    - conda-metapackage = conda_build.cli.main_metapackage:main
    - conda-render = conda_build.cli.main_render:main
    - conda-skeleton = conda_build.cli.main_skeleton:main

requirements:
  build:
    # The build workers have cygwin git already installed so it is not necessary,
    # see https://github.com/anaconda-distribution/anaconda-linter/issues/189#issue-1568495905
    - git  # [not win]
  host:
    - python
    - pip
    - hatchling >=1.12.2
    - hatch-vcs >=0.2.0
    - wheel
  run:
    - beautifulsoup4
    - cctools # [osx]
    - chardet
    - conda >=4.13
    - conda-index
    - conda-package-handling >=1.3
    - filelock
    - glob2 >=0.6
    - jinja2
    - patchelf      # [linux]
    - patch     >=2.6   # [not win]
    - m2-patch  >=2.6   # [win]
    - packaging
    - pkginfo
    - psutil
    - py-lief
    - python
    - python-libarchive-c
    - pytz
    - pyyaml
    - requests
    - six
    - tomli         # [py<311]
    - tqdm
  run_constrained:
    - conda-verify >=3.1.0

test:
  imports:
    # high-level import
    - conda_build
    # updated submodules (can be dropped after 1-2 releases)
    - conda_build.index
  requires:
    - setuptools
  files:
    - test_bdist_conda_setup.py
  commands:
    # builtin subcommands
    - conda --help
    - conda build --help
    - conda convert --help
    - conda develop --help
    - conda index --help
    - conda inspect --help
    - conda inspect linkages --help  # [unix]
    - conda inspect objects --help  # [osx]
    - conda metapackage --help
    - conda render --help
    - conda skeleton --help
    - conda debug --help
    # bdist_conda
    - python test_bdist_conda_setup.py bdist_conda --help

about:
  home: https://github.com/conda/conda-build
  summary: tools for building conda packages
  license: BSD-3-Clause
  license_family: BSD
  license_file: LICENSE
  description: |
    Conda-build contains commands and tools to allow you to build your own
    packages for conda.
  doc_url: https://docs.conda.io/projects/conda-build/en/latest/
  dev_url: https://github.com/conda/conda-build

extra:
  skip-lints:
    - python_build_tool_in_run
    - missing_pip_check
    - build_tools_must_be_in_build
