<commit_before>{% set name = "PsychoPy" %}
{% set version = "3.1.3" %}

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

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.zip
  sha256: 5df7c0ff494368fcc4ade820d5b83135f82a44740868ed199d1023e181c30f95

build:
  number: 0
  skip: true  # [py<36]
  script: "{{ PYTHON }} -m pip install --no-deps . -vv"
  entry_points:
    - psychopy = psychopy.app.psychopyApp:main

requirements:
  host:
    - python
    - pip
    - {{ cdt('mesa-libgl') }}        # [linux]
  run:
    - python
    - python.app  # [osx]
    - arabic_reshaper
    - astunparse
    - cffi
    - configobj
    - esprima-python
    - freetype-py
    - future
    - gevent
    - gitpython
    - greenlet
    - hdf5
    - imageio >=2.5
    - imageio-ffmpeg
    - json_tricks
    - matplotlib
    - moviepy
    - msgpack-numpy
    - msgpack-python
    - numpy
    - opencv
    - openpyxl
    - pandas
    - pillow
    - psutil
    - pyglet >=1.3
    - pyobjc-core  # [osx]
    - pyobjc-framework-quartz  # [osx]
    - pyopengl
    - pyosf
    - pyqmix >=2018.12.13  # [not linux]
    - pyqt
    - pyserial
    - pysoundfile  # [not win]
    - pytables
    - python-bidi
    - python-gitlab
    - python-sounddevice
    - pywin32  # [win]
    - pyWinhook  # [win]
    - pyyaml
    - pyzmq
    - requests
    - scipy
    - wxpython !=4.0.2, !=4.0.3
    - xlrd

test:
  files:
    - import_test.py
#    - import_test.sh
  commands:
    - python import_test.py  # [not linux]
#    - bash import_test.sh  # [linux]

    # https://stackoverflow.com/q/22913794/1944216
    - xvfb-run --server-args="-screen 0 1024x768x24 -ac +extension GLX" python import_test.py  # [linux]
    - "psychopy --version"

about:
  home: https://www.psychopy.org
  license: GPL-3.0
  license_family: GPL
  license_file: LICENSE
  summary: 'Psychology experiment software in Python'
  description: |
    PsychoPy is an open-source package for creating psychology stimuli in
    Python (A real and free alternative to Matlab). PsychoPy combines the
    graphical strengths of OpenGL with the easy Python syntax to give
    psychophysics a free and simple stimulus presentation and control package.
    an optional C extension for a serious speed boost.
  doc_url:  https://www.psychopy.org/documentation.html
  dev_url: https://github.com/psychopy/psychopy

extra:
  recipe-maintainers:
    - kastman
    - peircej
    - hoechenberger<commit_msg>Try to fix pgylet issue<commit_after>{% set name = "PsychoPy" %}
{% set version = "3.1.3" %}

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

source:
  url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.zip
  sha256: 5df7c0ff494368fcc4ade820d5b83135f82a44740868ed199d1023e181c30f95

build:
  number: 0
  skip: true  # [py<36]
  script: "{{ PYTHON }} -m pip install --no-deps . -vv"
  entry_points:
    - psychopy = psychopy.app.psychopyApp:main

requirements:
  host:
    - python
    - pip
    - {{ cdt('mesa-libgl') }}        # [linux]
  run:
    - python
    - python.app  # [osx]
    - arabic_reshaper
    - astunparse
    - cffi
    - configobj
    - esprima-python
    - freetype-py
    - future
    - gevent
    - gitpython
    - greenlet
    - hdf5
    - imageio >=2.5
    - imageio-ffmpeg
    - json_tricks
    - matplotlib
    - moviepy
    - msgpack-numpy
    - msgpack-python
    - numpy
    - opencv
    - openpyxl
    - pandas
    - pillow
    - psutil
    - pyglet >=1.3
    - pyobjc-core  # [osx]
    - pyobjc-framework-quartz  # [osx]
    - pyopengl
    - pyosf
    - pyqmix >=2018.12.13  # [not linux]
    - pyqt
    - pyserial
    - pysoundfile  # [not win]
    - pytables
    - python-bidi
    - python-gitlab
    - python-sounddevice
    - pywin32  # [win]
    - pyWinhook  # [win]
    - pyyaml
    - pyzmq
    - requests
    - scipy
    - wxpython !=4.0.2, !=4.0.3
    - xlrd

test:
  files:
    - import_test.py
#    - import_test.sh
  commands:
    - python import_test.py  # [not linux]
#    - bash import_test.sh  # [linux]

    # https://stackoverflow.com/q/22913794/1944216
    - LANG=en_US.UTF-8 xvfb-run --server-args="-screen 0 1024x768x24 -ac +extension GLX" python import_test.py  # [linux]
    - "psychopy --version"

about:
  home: https://www.psychopy.org
  license: GPL-3.0
  license_family: GPL
  license_file: LICENSE
  summary: 'Psychology experiment software in Python'
  description: |
    PsychoPy is an open-source package for creating psychology stimuli in
    Python (A real and free alternative to Matlab). PsychoPy combines the
    graphical strengths of OpenGL with the easy Python syntax to give
    psychophysics a free and simple stimulus presentation and control package.
    an optional C extension for a serious speed boost.
  doc_url:  https://www.psychopy.org/documentation.html
  dev_url: https://github.com/psychopy/psychopy

extra:
  recipe-maintainers:
    - kastman
    - peircej
    - hoechenberger
{'fraction_non_alphanumeric': 0.11961530755359648, 'fraction_numerical': 0.04067321178120617, 'mean_word_length': 2.212355212355212, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, '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': '1431848', 'n_tokens_mistral': 1999, 'n_tokens_neox': 1842, 'n_words': 418}