{% set name = "tqdm" %}
{% set version = "4.68.2" %}

# E   FileNotFoundError: [WinError 2] The system cannot find the file specified
# test_pandas_leave can raise AssertionError randomly on different platforms
package:
  name: {{ name }}
  version: {{ version }}

source:
  - url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
    sha256: 89c230e8dbc67c7615c142487111222f878c77427ea09549960f62389e258add

build:
  number: 0
  script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vv
  entry_points:
    - tqdm = tqdm.cli:main
  skip: true  # [py<37]

requirements:
  host:
    - python
    - pip
    - setuptools_scm >=3.4
    - setuptools >=42
    - toml
    - wheel
  run:
    - python
    - colorama  # [win]
  run_constrained:
    - ipywidgets >=6

{% set deselect_tests = "test_pandas_leave" %}
{% set deselect_tests = deselect_tests + " or tests_perf" %}
{% set deselect_tests = deselect_tests + " or test_pipes" %}  # [win]

test:
  requires:
    - dask-core
    - pandas
    - numpy
    - pip
    - pytest >=6
    - pytest-timeout
    - pytest-xdist
    - pytest-asyncio >=0.24
    - rich
    - ripgrep
  source_files:
    - tests
    - pyproject.toml
  imports:
    - tqdm
  commands:
    - pip check
    - tqdm --help
    - tqdm -v | rg {{ version }}
    - pytest -v -k "not ({{ deselect_tests }})" tests/ -W ignore::FutureWarning

about:
  home: https://tqdm.github.io
  license: MPL-2.0 AND MIT
  license_family: MOZILLA
  license_file: LICENCE
  summary: A Fast, Extensible Progress Meter
  description: A Fast, Extensible Progress Bar for Python and CLI
  dev_url: https://github.com/tqdm/tqdm
  doc_url: https://tqdm.github.io

extra:
  recipe-maintainers:
    - casperdcl
    - pmlandwehr
