<commit_before>{% set name = "climlab" %}
{% set version = "0.5.2" %}
{% set sha256 = "7ff27199a065aa70db9b32fa81cc83a37a7195f097689bd3dd06a92730ab9e62" %}

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

source:
  fn: {{ name }}-{{ version }}.tar.gz
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 1
  script:
    - export LDFLAGS="-undefined dynamic_lookup -bundle"  # [osx]
    - python setup.py install

requirements:
  build:
    - python
    - numpy x.x
    - toolchain
    - gcc
    - libgfortran

  run:
    - python
    - numpy x.x
    - scipy
    - netcdf4
    - pytest
    - libgfortran

test:
  requires:
    - pytest
  imports:
    - climlab
  commands:
    - pytest -v --pyargs climlab
<commit_msg>gcc is build requirement only for osx<commit_after>{% set name = "climlab" %}
{% set version = "0.5.2" %}
{% set sha256 = "7ff27199a065aa70db9b32fa81cc83a37a7195f097689bd3dd06a92730ab9e62" %}

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

source:
  fn: {{ name }}-{{ version }}.tar.gz
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
  sha256: {{ sha256 }}

build:
  number: 1
  script:
    - export LDFLAGS="-undefined dynamic_lookup -bundle"  # [osx]
    - python setup.py install

requirements:
  build:
    - python
    - numpy x.x
    - toolchain
    - gcc       # [osx]
    - libgfortran

  run:
    - python
    - numpy x.x
    - scipy
    - netcdf4
    - pytest
    - libgfortran

test:
  requires:
    - pytest
  imports:
    - climlab
  commands:
    - pytest -v --pyargs climlab

{'fraction_non_alphanumeric': 0.1544471153846154, 'fraction_numerical': 0.0673076923076923, 'mean_word_length': 2.391038696537678, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5799485', 'n_tokens_mistral': 721, 'n_tokens_neox': 655, 'n_words': 141}