<commit_before>[make_wheels]
recipe = collective.recipe.template
target_dir = parts/wheels
wheels =
       src/substanced
       src/adhocracy_core
platform = none

input = inline:
    #!/bin/bash
    set -e
    WHEELS="${make_wheels:wheels}"
    BLACKLIST="recipe"
    ${buildout:bin-directory}/pip install wheel --upgrade

    # collect names and execute setup.py for each to update RELEASE-VERSION
    FILTER=""
    ADDITIONAL_REQUIREMENTS=""
    for WHEEL in $WHEELS
    do
        # execute check so a RELEASE-VERSION is created which can than be used by pip after copying files to /tmp
        FILTER="$FILTER -e $(${buildout:executable} $WHEEL/setup.py --name | tr '_' '-')"
        ADDITIONAL_REQUIREMENTS="$ADDITIONAL_REQUIREMENTS\n$(${buildout:executable} $WHEEL/setup.py --name | tr '_' '-')==$(${buildout:executable} $WHEEL/setup.py --version)"

    done

    # create requirements.txt
    if git describe --tags --exact-match 2> /dev/null; then
      REQUIREMENTS_FILE=${make_wheels:target_dir}/requirements/${make_wheels:platform}-$(git describe --tags --exact-match)-requirements.txt
      HASH_FILE=${make_wheels:platform}-$(git describe --tags --exact-match)-requirements.hash
    else
      REQUIREMENTS_FILE=${make_wheels:target_dir}/requirements/${make_wheels:platform}-$(git rev-parse --abbrev-ref HEAD)-requirements.txt
      HASH_FILE=${make_wheels:platform}-$(git rev-parse --abbrev-ref HEAD)-requirements.hash
    fi
    mkdir -p ${make_wheels:target_dir}/requirements
    cat ${buildout:directory}/${make_wheels:platform}-requirements.txt | grep -v $FILTER | grep -v $BLACKLIST > $REQUIREMENTS_FILE

    # build requirement wheels
    ${buildout:bin-directory}/pip wheel \
       --find-links=${make_wheels:target_dir} \
       --wheel-dir=${make_wheels:target_dir} \
       --requirement=$REQUIREMENTS_FILE

    # build wheels
    ${buildout:bin-directory}/pip wheel \
       --find-links=${make_wheels:target_dir} \
       --wheel-dir=${make_wheels:target_dir} \
       $(echo $WHEELS | tr '\n' ' ')

    echo -e "$ADDITIONAL_REQUIREMENTS" >> $REQUIREMENTS_FILE
    (cd ${make_wheels:target_dir}/requirements; sha256sum `basename $REQUIREMENTS_FILE` > $HASH_FILE)

output = ${buildout:bin-directory}/ad_make_wheels
mode = 755
<commit_msg>Add deform to wheels configuration<commit_after>[make_wheels]
recipe = collective.recipe.template
target_dir = parts/wheels
wheels =
       src/deform
       src/substanced
       src/adhocracy_core
platform = none

input = inline:
    #!/bin/bash
    set -e
    WHEELS="${make_wheels:wheels}"
    BLACKLIST="recipe"
    ${buildout:bin-directory}/pip install wheel --upgrade

    # collect names and execute setup.py for each to update RELEASE-VERSION
    FILTER=""
    ADDITIONAL_REQUIREMENTS=""
    for WHEEL in $WHEELS
    do
        # execute check so a RELEASE-VERSION is created which can than be used by pip after copying files to /tmp
        FILTER="$FILTER -e $(${buildout:executable} $WHEEL/setup.py --name | tr '_' '-')"
        ADDITIONAL_REQUIREMENTS="$ADDITIONAL_REQUIREMENTS\n$(${buildout:executable} $WHEEL/setup.py --name | tr '_' '-')==$(${buildout:executable} $WHEEL/setup.py --version)"

    done

    # create requirements.txt
    if git describe --tags --exact-match 2> /dev/null; then
      REQUIREMENTS_FILE=${make_wheels:target_dir}/requirements/${make_wheels:platform}-$(git describe --tags --exact-match)-requirements.txt
      HASH_FILE=${make_wheels:platform}-$(git describe --tags --exact-match)-requirements.hash
    else
      REQUIREMENTS_FILE=${make_wheels:target_dir}/requirements/${make_wheels:platform}-$(git rev-parse --abbrev-ref HEAD)-requirements.txt
      HASH_FILE=${make_wheels:platform}-$(git rev-parse --abbrev-ref HEAD)-requirements.hash
    fi
    mkdir -p ${make_wheels:target_dir}/requirements
    cat ${buildout:directory}/${make_wheels:platform}-requirements.txt | grep -v $FILTER | grep -v $BLACKLIST > $REQUIREMENTS_FILE

    # build requirement wheels
    ${buildout:bin-directory}/pip wheel \
       --find-links=${make_wheels:target_dir} \
       --wheel-dir=${make_wheels:target_dir} \
       --requirement=$REQUIREMENTS_FILE

    # build wheels
    ${buildout:bin-directory}/pip wheel \
       --find-links=${make_wheels:target_dir} \
       --wheel-dir=${make_wheels:target_dir} \
       $(echo $WHEELS | tr '\n' ' ')

    echo -e "$ADDITIONAL_REQUIREMENTS" >> $REQUIREMENTS_FILE
    (cd ${make_wheels:target_dir}/requirements; sha256sum `basename $REQUIREMENTS_FILE` > $HASH_FILE)

output = ${buildout:bin-directory}/ad_make_wheels
mode = 755

{'fraction_non_alphanumeric': 0.1384817326624371, 'fraction_numerical': 0.0030627871362940277, 'mean_word_length': 3.618181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '7461168', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1496, 'n_words': 291}