<commit_before>{% set name = "ESMValTool" %}
{% set version = "2.2.0" %}

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

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

build:
  number: 0
  noarch: python

requirements:
  run:
    - python >=3.7
    - iris >=3.0.1
    - {{ pin_subpackage('esmvaltool-julia', exact=True) }}
    - {{ pin_subpackage('esmvaltool-ncl', exact=True) }}
    - {{ pin_subpackage('esmvaltool-python', exact=True) }}
    - {{ pin_subpackage('esmvaltool-r', exact=True) }}

test:
  source_files:
    - tests
    - setup.cfg
  requires:
    - pytest >=3.9,!=6.0.0rc1,!=6.0.0
    - pytest-cov
    - pytest-env
    - pytest-flake8
    - pytest-html !=2.1.0
    - pytest-metadata >=1.5.1
    - pytest-xdist
  imports:
    - esmvaltool
  commands:
    - pytest -n 2 --ignore="run_test.py" --ignore="tests/unit/test_docs.py"
    - cmorize_obs --help
    - nclcodestyle --help
    - esmvaltool colortables --help
    - test_recipe --help
    - ncl -V
    - cdo -V

outputs:

  - name: esmvaltool-python
    build:
      noarch: python
    script: install.sh
    requirements:
      build:
        - git
        - python >=3.7
        - setuptools_scm
      run:
        - cartopy >=0.18
        - cdo >=1.9.7
        - eccodes !=2.19.0  # cdo dependency; something messed up with libeccodes.so<commit_msg>Update python build script<commit_after>{% set name = "ESMValTool" %}
{% set version = "2.2.0" %}

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

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

build:
  number: 0
  noarch: python

requirements:
  run:
    - python >=3.7
    - iris >=3.0.1
    - {{ pin_subpackage('esmvaltool-julia', exact=True) }}
    - {{ pin_subpackage('esmvaltool-ncl', exact=True) }}
    - {{ pin_subpackage('esmvaltool-python', exact=True) }}
    - {{ pin_subpackage('esmvaltool-r', exact=True) }}

test:
  source_files:
    - tests
    - setup.cfg
  requires:
    - pytest >=3.9,!=6.0.0rc1,!=6.0.0
    - pytest-cov
    - pytest-env
    - pytest-flake8
    - pytest-html !=2.1.0
    - pytest-metadata >=1.5.1
    - pytest-xdist
  imports:
    - esmvaltool
  commands:
    - pytest -n 2 --ignore="run_test.py" --ignore="tests/unit/test_docs.py"
    - cmorize_obs --help
    - nclcodestyle --help
    - esmvaltool colortables --help
    - test_recipe --help
    - ncl -V
    - cdo -V

outputs:

  - name: esmvaltool-python
    build:
      noarch: python
    script: "{{ PYTHON }} -m pip install . -vv"
    requirements:
      build:
        - git
        - python >=3.7
        - setuptools_scm
      run:
        - cartopy >=0.18
        - cdo >=1.9.7
        - eccodes !=2.19.0  # cdo dependency; something messed up with libeccodes.so
{'fraction_non_alphanumeric': 0.16094276094276094, 'fraction_numerical': 0.057912457912457915, 'mean_word_length': 2.246994535519126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '5422004', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1199, 'n_words': 216}