package:
  name: anaconda-split
  version: "2024.02"

build:
  number: 1

outputs:
  - name: anaconda
    build:
      # Note: Using "CONDA_PY" or "python" in the build string (inconsistently)
      # breaks variant generation when used with some combination of
      # "--suppress-variables" and "zip_keys", for reasons we don't understand.
      string: py{{ metapkg_python|replace(".", "") }}_{{ metapkg_blas_impl }}_{{ PKG_BUILDNUM }}
      skip: True  # [py<38]
      pin_depends: strict
      ignore_run_exports:
        - '*'
    requirements:
      host:
        - python {{ metapkg_python }}
      run:
        - astropy
        - beautifulsoup4
        - black
        - blas * {{ metapkg_blas_impl }}
        - bokeh
        - curl
        - dask
        - datashader                                 # [not s390x]
        - flask
        - gensim                                     # [not s390x]
        - h5py
        - holoviews
        - hvplot
        - imbalanced-learn
        - intake
        - ipython
        - isort
        - joblib
        - jq                                         # [not s390x]
        - jupyter
        - jupyterlab-variableinspector               # [not s390x]
        - matplotlib
        - mkl >=2021                                 # [metapkg_blas_impl == "mkl"]
        - mypy
        - networkx
        - nltk
        - numba >=0.56.4                             # [not (ppc64le or s390x)]
        - numpy
        - openpyxl
        - pandas
        - panel
        - pillow
        - pip
        - plotly
        - pycodestyle
        - pycurl
        - pyflakes
        - pylint
        - pyodbc
        - pytables
        - pytest
        - python {{ metapkg_python }}
        - pywavelets
        - requests
        - s3fs
        - scikit-image
        - scikit-learn
        - scipy
        - scrapy                                     # [not s390x]
        - seaborn
        - setuptools
        - snowballstemmer
        - spyder >=5.4.3,<6.0.0a0                    # [not (ppc64le or s390x)]
        - sqlalchemy
        - statsmodels
        - streamlit                                  # [not s390x]
        - sympy
        - tabulate
        - wheel
        - xlwings 0.29.1                             # [osx or win]

        # Platform-specific
        - appscript                                  # [osx]
        - python.app                                 # [osx]
        - menuinst                                   # [win]
        - pywin32                                    # [win]

        # # Not "top level", but specific versions to pin/exclude.
        - openssl >=3
    test:
      imports:
        - pandas
      commands:
        - python --version

    about:
      home: https://www.anaconda.com/distribution
      license: BSD-3-Clause
      license_family: BSD
      license_file: EULA.txt
      summary: Simplifies package management and deployment of Anaconda
      description: |
        Anaconda is a Python distribution which includes over 400
        Python packages for science, math, engineering, and data analysis.
      doc_url: https://docs.anaconda.com/anaconda
      dev_url: https://github.com/ContinuumIO


  - name: _anaconda_depends
    build:
      # Note: Using "CONDA_PY" or "python" in the build string (inconsistently)
      # breaks variant generation when used with some combination of
      # "--suppress-variables" and "zip_keys", for reasons we don't understand.
      string: py{{ metapkg_python|replace(".", "") }}_{{ metapkg_blas_impl }}_{{ PKG_BUILDNUM }}
      skip: True  # [py<38]
      ignore_run_exports:
        - '*'
    requirements:
      host:
        - python {{ metapkg_python }}
      # IMPORTANT! The run requirements should NOT have any version pinnings or constraints.
      run:
        - astropy
        - beautifulsoup4
        - black
        - blas * {{ metapkg_blas_impl }}
        - bokeh
        - curl
        - dask
        - datashader                                 # [not s390x]
        - flask
        - gensim                                     # [not s390x]
        - h5py
        - holoviews
        - hvplot
        - imbalanced-learn
        - intake
        - ipython
        - isort
        - joblib
        - jq                                         # [not s390x]
        - jupyter
        - jupyterlab-variableinspector               # [not s390x]
        - matplotlib
        - mkl                                        # [metapkg_blas_impl == "mkl"]
        - mypy
        - networkx
        - nltk
        - numba                                      # [not (ppc64le or s390x)]
        - numpy
        - openpyxl
        - pandas
        - panel
        - pillow
        - pip
        - plotly
        - pycodestyle
        - pycurl
        - pyflakes
        - pylint
        - pyodbc
        - pytables
        - pytest
        - python {{ metapkg_python }}
        - pywavelets
        - requests
        - s3fs
        - scikit-image
        - scikit-learn
        - scipy
        - scrapy                                     # [not s390x]
        - seaborn
        - setuptools
        - snowballstemmer
        - spyder                                     # [not (ppc64le or s390x)]
        - sqlalchemy
        - statsmodels
        - streamlit                                  # [not s390x]
        - sympy
        - tabulate
        - wheel
        - xlwings                                    # [osx or win]

        # Platform-specific
        - appscript                                  # [osx]
        - python.app                                 # [osx]
        - menuinst                                   # [win]
        - pywin32                                    # [win]
    test:
      imports:
        - pandas
      commands:
        - python --version

    about:
      home: https://www.anaconda.com/distribution
      license: BSD-3-Clause
      license_family: BSD
      license_file: EULA.txt
      summary: Simplifies package management and deployment of Anaconda
      description: |
        The same dependencies as the anaconda metapackage, without pinned versions.
        _anaconda_depends is used by anaconda custom to "unlock" the packages so
        that they can be updated after installing Anaconda Distribution.
      doc_url: https://docs.anaconda.com/anaconda
      dev_url: https://github.com/ContinuumIO
