{% set name = "cohesion" %}
{% set version = "1.0.0" %}

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

source:
  url: https://github.com/mschwager/{{ name }}/archive/refs/tags/{{ version }}.tar.gz
  sha256: abb5a88b70de96e7dfb65244cc13cff7e9c5edee5333175d5a7668ac7c742c6c

build:
  noarch: python
  number: 0
  entry_points:
    - cohesion = cohesion.__main__:main
  script: "{{ PYTHON }} -m pip install . -vv"

requirements:
  host:
    - python >=3.6
    - pip
  run:
    - python >=3.6

test:
  commands:
    - pip check
    - cohesion -h
    - {{ PYTHON }} -c "import subprocess, sys; sys.exit(1) if 'cohesion not in subprocess.check_output('flake8 --version').decode() else sys.exit(0)"
  requires:
    - flake8
    - pip

about:
  home: https://github.com/mschwager/cohesion
  license: GPL-3.0-or-later
  license_file: LICENSE
  summary: Tool for measuring Python class cohesion. Optional flake8 extension.

extra:
  recipe-maintainers:
    - thewchan

{% set name = "cohesion" %}
{% set version = "1.0.0" %}

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

source:
  url: https://github.com/mschwager/{{ name }}/archive/refs/tags/{{ version }}.tar.gz
  sha256: abb5a88b70de96e7dfb65244cc13cff7e9c5edee5333175d5a7668ac7c742c6c

build:
  noarch: python
  number: 0
  entry_points:
    - cohesion = cohesion.__main__:main
  script: "{{ PYTHON }} -m pip install . -vv"

requirements:
  host:
    - python >=3.6
    - pip
  run:
    - python >=3.6

test:
  commands:
    - pip check
    - cohesion -h
    - "flake8 --version | grep cohesion"
  requires:
    - flake8
    - m2-grep  # [win]
    - pip

about:
  home: https://github.com/mschwager/cohesion
  license: GPL-3.0-or-later
  license_file: LICENSE
  summary: Tool for measuring Python class cohesion. Optional flake8 extension.

extra:
  recipe-maintainers:
    - thewchan

Revert flake8 test add windows grep
Revert flake8 test add windows grep
