forked from Video-Bench/Video-Bench
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (30 loc) · 1.04 KB
/
Copy pathsetup.py
File metadata and controls
34 lines (30 loc) · 1.04 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
#!/usr/bin/env python
from setuptools import find_packages, setup
import os
def fetch_readme():
with open('README.md', encoding='utf-8') as f:
text = f.read()
return text
def fetch_requirements():
filename = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
with open(filename, 'r') as f:
envs = [line.rstrip('\n') for line in f.readlines() if '@' not in line]
return envs
install_requires = fetch_requirements()
setup(name='HAbench',
version='0.1.0',
description='Human Preference Aligned Video Generation Benchmark',
long_description=fetch_readme(),
long_description_content_type='text/markdown',
project_urls={
'Source': 'https://github.com/Video-Bench/Video-Bench',
},
entry_points={
'console_scripts': ['HAbench=HAbench.cli.evaluate:main']
},
install_requires=install_requires,
packages=find_packages(),
include_package_data=True,
license='Apache Software License 2.0',
python_requires='>=3.8',
)