<commit_before>{% set name = "sphinx-jsonschema" %}
{% set version = "1.16.8" %}


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

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

build:
  number: 0
  noarch: python
  script: {{ PYTHON }} -m pip install . -vv

requirements:
  host:
    - pip
    - python >=3.6
  run:
    - python >=3.6
    - docutils
    - jsonpointer
    - pyyaml
    - requests

test:
  # There are no import tests because this package provides no imports, just a sphinx plugin.
  # There are currently no functional unit tests ( https://github.com/lnoor/sphinx-jsonschema/issues/56 ).
  commands:
    - pip check
  requires:
    - pip
<commit_msg>Add import test<commit_after>{% set name = "sphinx-jsonschema" %}
{% set version = "1.16.8" %}


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

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

build:
  number: 0
  noarch: python
  script: {{ PYTHON }} -m pip install . -vv

requirements:
  host:
    - pip
    - python >=3.6
  run:
    - python >=3.6
    - docutils
    - jsonpointer
    - pyyaml
    - requests

test:
  commands:
    - pip check
    # I need to use importlib due to the - character in the package name.
    - {{ PYTHON }} -c 'import importlib; importlib.import_module("sphinx-jsonschema")'
  requires:
    - pip
  # There are currently no functional unit tests ( https://github.com/lnoor/sphinx-jsonschema/issues/56 ).

{'fraction_non_alphanumeric': 0.13766842413591096, 'fraction_numerical': 0.06561218512009373, 'mean_word_length': 2.9264367816091954, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '5431972', 'n_tokens_mistral': 702, 'n_tokens_neox': 647, 'n_words': 153}