{% set name = "model_server" %}
{% set version = "2024.7.1" %}
{% set pyproject = load_file_data('../pyproject.toml') %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  - path: ../dist/{{ name }}-{{ version }}.tar.gz
  - path: ../tests
    folder: tests

build:
  noarch: python
  script: {{ PYTHON }} -m pip install {{ name }}-{{ version }}.tar.gz -vv --no-deps --no-build-isolation
  number: 0

requirements:
  build:
    - python >=3.9
    - setuptools >=61.0
    - pip
  run:
    - python >=3.9
#    - czifile
#    - fastapi>=0.101.*
#    - ilastik=1.4.*
#    - imagecodecs
#    - jupyterlab
#    - matplotlib
#    - numpy=1.*
#    - pandas=1.*
#    - pillow
#    - pydantic=1.10.*
#    - python=3.9.*
#    - pytorch=1.*
#    - scikit-image>=0.21.*
#    - scikit-learn>=1.3.*
#    - tifffile
#    - uvicorn>=0.23.*
#    - zstd=1.5.5
    - pip


test:
  imports:
    - model_server
  commands:
    -{{ PYTHON }} -m unittest model_server
  requires:
    - pip
  source_files:
    - tests

about:
  summary: Service for analyzing microscope images
  license: 'MIT'
  license_file: ../LICENSE