<commit_before>{% set name = "oso" %}
{% set build_number = 0 %}
{% set version = "0.26.1" %}
{% set min_rust = "rust >=1.46" %}

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

source:
  url: https://github.com/osohq/oso/archive/refs/tags/v{{ version }}.tar.gz
  sha256: 412b62ca46b649cd2b0ddfd9027180eeda9aa8d4f059da44978fa56ac103e90a

build:
  number: {{ build_number }}
  script:
    - bash {{ RECIPE_DIR }}/build_oso.sh

requirements:
  build:
    - {{ compiler('c') }}                    # [unix]
    - {{ compiler('cxx') }}                  # [unix]
    - {{ compiler('msvc_c') }}              # [win]
    - {{ compiler('msvc_cxx') }}            # [win]
    - {{ min_rust }}
  host:
    - jq
    - make
    - clangdev                               # [not osx]
    - openssl
    - python
    - pip
    - cffi >=1.0.0
  run:
    - python
    # fails pip check: https://github.com/conda-forge/importlib_metadata-feedstock/issues/88
    - importlib-metadata !=4.7.1
    - cffi >=1.0.0

test:
  source_files:
    - languages/python/oso/tests
  imports:
    - oso
    - polar
  commands:
    - pip check
    - pytest -vv languages/python/oso/tests
  requires:
    - pip
    - pytest-cov
    - ruamel_yaml
    - jq
    - sqlalchemy

about:
  home: https://github.com/osohq/oso
  summary: 'Oso is a batteries-included framework for building authorization in your application.'
  license: Apache
  license_family: Apache
  license_file: LICENSE
  doc_url: https://docs.osohq.com/
  dev_url: https://github.com/osohq/oso

extra:
  feedstock-name: oso
  recipe-maintainers:
    - alexpilot11
<commit_msg>change win compiler back to m2w64<commit_after>{% set name = "oso" %}
{% set build_number = 0 %}
{% set version = "0.26.1" %}
{% set min_rust = "rust >=1.46" %}

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

source:
  url: https://github.com/osohq/oso/archive/refs/tags/v{{ version }}.tar.gz
  sha256: 412b62ca46b649cd2b0ddfd9027180eeda9aa8d4f059da44978fa56ac103e90a

build:
  number: {{ build_number }}
  script:
    - bash {{ RECIPE_DIR }}/build_oso.sh

requirements:
  build:
    - {{ compiler('c') }}                    # [unix]
    - {{ compiler('cxx') }}                  # [unix]
    - {{ compiler('m2w64_c') }}              # [win]
    - {{ compiler('m2w64_cxx') }}            # [win]
    - {{ min_rust }}
  host:
    - jq
    - make
    - clangdev                               # [not osx]
    - openssl
    - python
    - pip
    - cffi >=1.0.0
  run:
    - python
    # fails pip check: https://github.com/conda-forge/importlib_metadata-feedstock/issues/88
    - importlib-metadata !=4.7.1
    - cffi >=1.0.0

test:
  source_files:
    - languages/python/oso/tests
  imports:
    - oso
    - polar
  commands:
    - pip check
    - pytest -vv languages/python/oso/tests
  requires:
    - pip
    - pytest-cov
    - ruamel_yaml
    - jq
    - sqlalchemy

about:
  home: https://github.com/osohq/oso
  summary: 'Oso is a batteries-included framework for building authorization in your application.'
  license: Apache
  license_family: Apache
  license_file: LICENSE
  doc_url: https://docs.osohq.com/
  dev_url: https://github.com/osohq/oso

extra:
  feedstock-name: oso
  recipe-maintainers:
    - alexpilot11

{'fraction_non_alphanumeric': 0.14356130622304375, 'fraction_numerical': 0.0403573629081947, 'mean_word_length': 2.1463178294573644, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4294187', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1192, 'n_words': 231}