File size: 1,560 Bytes
feb2918 |
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 49 50 51 52 53 54 |
import os
from setuptools import find_packages, setup
version_file = "cover/version.py"
def readme():
with open("README.md", encoding="utf-8") as f:
content = f.read()
return content
def get_version():
with open(version_file, "r") as f:
exec(compile(f.read(), version_file, "exec"))
return locals()["__version__"]
def get_requirements(filename="requirements.txt"):
here = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(here, filename), "r") as f:
requires = [line.replace("\n", "") for line in f.readlines()]
return requires
setup(
name="cover",
version=get_version(),
description="Disentangled Video Quality Evaluator",
long_description=readme(),
long_description_content_type="text/markdown",
author="Teo (Timothy) Wu Hao Ning",
author_email="realtimothyhwu@gmail.com",
keywords="computer vision, video quality assessment",
url="https://github.com/twowu/cover",
include_package_data=True,
packages=find_packages(exclude=("examplar_data_labels", "figs")),
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
license="MIT License",
setup_requires=["numpy"],
install_requires=get_requirements(),
ext_modules=[],
cmdclass={},
zip_safe=False,
)
|