<commit_before>{% set name = "xcfun" %}
{% set version = "2.0.0a1" %}
{% set sha256 = "e232e2b576fa5778a972984db760c61e1cf05902bfd1a15f45f5e8712f7c1260" %}
{% set pyver = PY_VER.replace(".", "") %}

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

source:
  git_url: https://github.com/robertodr/xcfun.git
  git_tag: conda-forge

build:
  number: 0
  skip: true  # [win]
  binary_relocation: true
  run_exports:
    - {{ pin_subpackage('xcfun', max_pin='x') }}
  ignore_run_exports:
    - libgfortran-ng  # [not win]

requirements:
  build:
    - cmake >=3.5
    - {{ compiler('cxx') }}
    - {{ compiler('c') }}
    - {{ compiler('fortran') }}  # [not win]
    - {{ compiler('fortran') }}  # [not osx]
    - pybind11 =*=*py{{ pyver }}*
    - ninja  # [win]
  host:
    - python
  run:
    - numpy
    - python

files:
  - include/XCFun              # [unix]
  - lib/libxcfun*              # [unix]
  - share/cmake/XCFun          # [unix]
  - Library/include/XCFun      # [win]
  - Library/lib/xcfun*         # [win]
  - Library/share/cmake/XCFun  # [win]
  - lib/python{{ PY_VER }}/site-packages/xcfun  # [unix]
  - Lib/site-packages/xcfun                     # [win]

test:
  requires:
    - numpy
    - pytest
  imports:
    - xcfun
  commands:
    # Verify library
    - test -L $PREFIX/lib/libxcfun$SHLIB_EXT                 # [unix]
    - test -f $SP_DIR/xcfun/_xcfun*$SHLIB_EXT           # [unix]
    - if not exist %PREFIX%\\Library\\lib\\xcfun.lib exit 1  # [win]
    - if not exist %SP_DIR%\\xcfun\\_xcfun*.dll exit 1  # [win]
    # Inspect linkage
    - ldd -v $PREFIX/lib/libxcfun$SHLIB_EXT                           # [linux]
    - otool -L $PREFIX/lib/libxcfun$SHLIB_EXT                         # [osx]
    - conda inspect linkages --show-files --groupby=dependency xcfun  # [unix]
    - conda inspect objects -p $PREFIX $PKG_NAME                      # [osx]
    - ls -l $SP_DIR/xcfun  # [unix]
    - dir %SP_DIR%\xcfun   # [win]
    - ldd -v $SP_DIR/xcfun/_xcfun*$SHLIB_EXT    # [linux]
    - otool -L $SP_DIR/xcfun/_xcfun*$SHLIB_EXT  # [osx]
    - conda inspect linkages --show-files --groupby=dependency $PKG_NAME  # [unix]
    - conda inspect objects -p $PREFIX $PKG_NAME      # [osx]
    # FIXME Just for testing
    - echo $PWD
    - ls $PWD
    # Actually test
    - python -m pytest --pyargs xcfun<commit_msg>Fix linter warning<commit_after>{% set name = "xcfun" %}
{% set version = "2.0.0a1" %}
{% set sha256 = "e232e2b576fa5778a972984db760c61e1cf05902bfd1a15f45f5e8712f7c1260" %}
{% set pyver = PY_VER.replace(".", "") %}

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

source:
  git_url: https://github.com/robertodr/xcfun.git
  git_tag: conda-forge

build:
  number: 0
  skip: true  # [win]
  binary_relocation: true
  run_exports:
    - {{ pin_subpackage('xcfun', max_pin='x') }}
  ignore_run_exports:
    - libgfortran-ng  # [not win]

requirements:
  build:
    - cmake >=3.5
    - {{ compiler('cxx') }}
    - {{ compiler('c') }}
    - {{ compiler('fortran') }}  # [not win]
    - {{ compiler('fortran') }}  # [not osx]
    - pybind11 =*=*py{{ pyver }}*
    - ninja  # [win]
  host:
    - python
  run:
    - numpy
    - python

outputs:
  - name: xcfun
    files:
      - include/XCFun              # [unix]
      - lib/libxcfun*              # [unix]
      - share/cmake/XCFun          # [unix]
      - Library/include/XCFun      # [win]
      - Library/lib/xcfun*         # [win]
      - Library/share/cmake/XCFun  # [win]
      - lib/python{{ PY_VER }}/site-packages/xcfun  # [unix]
      - Lib/site-packages/xcfun                     # [win]

test:
  requires:
    - numpy
    - pytest
  imports:
    - xcfun
  commands:
    # Verify library
    - test -L $PREFIX/lib/libxcfun$SHLIB_EXT                 # [unix]
    - test -f $SP_DIR/xcfun/_xcfun*$SHLIB_EXT           # [unix]
    - if not exist %PREFIX%\\Library\\lib\\xcfun.lib exit 1  # [win]
    - if not exist %SP_DIR%\\xcfun\\_xcfun*.dll exit 1  # [win]
    # Inspect linkage
    - ldd -v $PREFIX/lib/libxcfun$SHLIB_EXT                           # [linux]
    - otool -L $PREFIX/lib/libxcfun$SHLIB_EXT                         # [osx]
    - conda inspect linkages --show-files --groupby=dependency xcfun  # [unix]
    - conda inspect objects -p $PREFIX $PKG_NAME                      # [osx]
    - ls -l $SP_DIR/xcfun  # [unix]
    - dir %SP_DIR%\xcfun   # [win]
    - ldd -v $SP_DIR/xcfun/_xcfun*$SHLIB_EXT    # [linux]
    - otool -L $SP_DIR/xcfun/_xcfun*$SHLIB_EXT  # [osx]
    - conda inspect linkages --show-files --groupby=dependency $PKG_NAME  # [unix]
    - conda inspect objects -p $PREFIX $PKG_NAME      # [osx]
    # FIXME Just for testing
    - echo $PWD
    - ls $PWD
    # Actually test
    - python -m pytest --pyargs xcfun
{'fraction_non_alphanumeric': 0.15382996632996632, 'fraction_numerical': 0.023989898989898988, 'mean_word_length': 1.966916354556804, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4297575', 'n_tokens_mistral': 1926, 'n_tokens_neox': 1843, 'n_words': 360}