<commit_before>{% set name = "nannos" %}
{% set version = "2.1.0" %}


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

source:
  url: https://gitlab.com/{{ name }}/{{ name }}/-/archive/v{{ version }}/{{ name }}-v{{ version }}.tar.gz
  sha256: 0798ee3f13b440bfd88b5e2ff4445a9a2c8d5d74034943260fbacf91d38e40ea


build:
  number: 0
  script: "{{ PYTHON }} -m pip install . -vv --no-deps"
  skip: true  # [py<36]

requirements:
  host:
    - python
    - pip
    - numpy >=1.9
    - scipy >=1.0
    - autograd >=1.3
    - matplotlib-base
    - shapely
    - colorlog
    - joblib
    - colorlog
    - psutil
    - ipython
    - nlopt
    - matplotlib-base
    - pytorch       # [not win]
    - pytorch-cpu
    - pytorch-gpu   # [cuda_compiler_version != "None"]
    - magma         # [not osx]
    - jax 
    - jaxlib        # [not win]
    - pyvista
    - pythreejs
    - ipyvtklink
    - panel
    - importlib_metadata   # [py<38]
  run:
    - python
    - numpy

test:
  imports:
    - {{ name }}
  source_files:
    - test/conda_test.py
  commands:
    - OMP_NUM_THREADS=1 NANNOS_BACKEND=numpy pytest -svv ./test/conda_test.py
    - OMP_NUM_THREADS=1 NANNOS_BACKEND=scipy pytest -svv ./test/conda_test.py
    - OMP_NUM_THREADS=1 NANNOS_BACKEND=autograd pytest -svv ./test/conda_test.py
    - OMP_NUM_THREADS=1 NANNOS_BACKEND=torch pytest -svv ./test/conda_test.py
    - OMP_NUM_THREADS=1 NANNOS_BACKEND=jax pytest -svv ./test/conda_test.py
  requires:<commit_msg>removed pytorch-cpu for non cuda builds, bump autograd version<commit_after>{% set name = "nannos" %}
{% set version = "2.1.0" %}


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

source:
  url: https://gitlab.com/{{ name }}/{{ name }}/-/archive/v{{ version }}/{{ name }}-v{{ version }}.tar.gz
  sha256: 0798ee3f13b440bfd88b5e2ff4445a9a2c8d5d74034943260fbacf91d38e40ea


build:
  number: 0
  script: "{{ PYTHON }} -m pip install . -vv --no-deps"
  skip: true  # [py<36]

requirements:
  host:
    - python
    - pip
    - numpy >=1.9
    - scipy >=1.0
    - autograd >=1.4
    - matplotlib-base
    - shapely
    - joblib
    - colorlog
    - psutil
    - ipython
    - nlopt
    - matplotlib-base
    - pytorch       # [not win]
    - pytorch-cpu   # [cuda_compiler_version == "None"]
    - pytorch-gpu   # [cuda_compiler_version != "None"]
    - magma         # [not osx]
    - jax           # [not win]
    - jaxlib        # [not win]
    - pyvista
    - pythreejs
    - ipyvtklink
    - panel
    - importlib_metadata   # [py<38]
  run:
    - python
    - numpy

test:
  imports:
    - {{ name }}
  source_files:
    - test/conda_test.py
  commands:
    - OMP_NUM_THREADS=1 NANNOS_BACKEND=numpy pytest -svv ./test/conda_test.py
    - OMP_NUM_THREADS=1 NANNOS_BACKEND=scipy pytest -svv ./test/conda_test.py
    - OMP_NUM_THREADS=1 NANNOS_BACKEND=autograd pytest -svv ./test/conda_test.py
    - OMP_NUM_THREADS=1 NANNOS_BACKEND=torch pytest -svv ./test/conda_test.py
    - OMP_NUM_THREADS=1 NANNOS_BACKEND=jax pytest -svv ./test/conda_test.py
  requires:
{'fraction_non_alphanumeric': 0.13769306605323695, 'fraction_numerical': 0.04009201445941505, 'mean_word_length': 2.2837108953613807, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4789831', 'n_tokens_mistral': 1341, 'n_tokens_neox': 1286, 'n_words': 234}