<commit_before>{% set name = "pyjion" %}
{% set version = "1.2.6" %}

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

source:
  git_url: https://github.com/tonybaloney/Pyjion.git
  git_tag: {{ version }}


build:
  skip: True  # [not linux or py<310]
  number: 0
  missing_dso_whitelist:
    - '*/libclrjit.so'  # [linux]
  script: |
    git submodule update --init --recursive
    export CMAKE_GENERATOR="Ninja"
    {{ PYTHON }} -m pip install . -vv
  entry_points:
    - pyjion = pyjion.__main__:main

requirements:
  build:
    - {{ compiler('cxx') }}
    - cmake
    - dotnet
    - git
    - ninja
  host:
    - python
    - pip
    - setuptools
    - wheel
    - scikit-build
  run:
    - python
    - dotnet >=6

test:
  imports:<commit_msg>Move `dotnet` to host deps<commit_after>{% set name = "pyjion" %}
{% set version = "1.2.6" %}

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

source:
  git_url: https://github.com/tonybaloney/Pyjion.git
  git_tag: {{ version }}


build:
  skip: True  # [not linux]
  number: 0
  missing_dso_whitelist:
    - '*/libclrjit.so'  # [linux]
  script: |
    git submodule update --init --recursive
    export CMAKE_GENERATOR="Ninja"
    {{ PYTHON }} -m pip install . -vv
  entry_points:
    - pyjion = pyjion.__main__:main

requirements:
  build:
    - {{ compiler('cxx') }}
    - cmake
    - git
    - ninja
  host:
    - python 3.10.* *_cpython
    - dotnet >=6
    - pip
    - setuptools
    - wheel
    - scikit-build
  run:
    - python 3.10.* *_cpython
    - dotnet >=6

test:
  imports:
{'fraction_non_alphanumeric': 0.1507376523412444, 'fraction_numerical': 0.012828736369467608, 'mean_word_length': 2.277310924369748, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '7215040', 'n_tokens_mistral': 635, 'n_tokens_neox': 610, 'n_words': 134}