-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (45 loc) · 1.48 KB
/
setup.py
File metadata and controls
48 lines (45 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from pathlib import Path
import re
from setuptools import setup, find_packages
def read_version() -> str:
text = Path(__file__).with_name("pyproject.toml").read_text()
match = re.search(r'^version\s*=\s*"([^"]+)"', text, re.MULTILINE)
if not match:
raise RuntimeError("Version not found in pyproject.toml")
return match.group(1)
setup(
name="psyflow",
version=read_version(),
description="A utility package for building modular PsychoPy experiments.",
author="Zhipeng Cao",
author_email="zhipeng30@foxmail.com",
packages=find_packages(),
python_requires=">=3.10",
install_requires=[
"psychopy",
"numpy",
"pandas",
"click", # for CLI support
"cookiecutter", # for template-based scaffolding
"pyyaml", # for YAML configuration parsing
"pyserial", # for serial port communication
"edge-tts", # for text-to-speech support
],
entry_points={
"console_scripts": [
"psyflow = psyflow.cli:main",
"psyflow-run = psyflow.task_launcher:run_main",
"psyflow-qa = psyflow.task_launcher:qa_main",
"psyflow-sim = psyflow.task_launcher:sim_main",
"psyflow-validate = psyflow.validate:main",
],
},
include_package_data=True,
package_data={
"psyflow": [
"templates/cookiecutter-psyflow/**/*",
"contracts/**/*",
],
},
zip_safe=False
)