-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (44 loc) · 1.57 KB
/
setup.py
File metadata and controls
49 lines (44 loc) · 1.57 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
49
from setuptools import setup, find_packages
def load_requirements(filename="requirements.txt"):
with open(filename, encoding="utf-8") as f:
return [line.strip() for line in f if line.strip() and not line.startswith("#")]
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
with open("VERSION") as f:
version = f.read().strip()
with open("src/HwCodecDetect/version.py", "w") as f:
f.write(f'__version__ = "{version}"\n')
setup(
name="HwCodecDetect",
version=version,
author="whyb",
author_email="whyber@outlook.com",
description="A cross-platform tool to automatically detect and test hardware video decoders/encoders using FFmpeg.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/whyb/HwCodecDetect",
project_urls={
"Homepage": "https://github.com/whyb/HwCodecDetect",
"Issues": "https://github.com/whyb/HwCodecDetect/issues",
},
license="BSD-3-Clause",
license_files=["LICENSE"],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Topic :: Multimedia :: Video",
"Topic :: System :: Installation/Setup",
"Topic :: Utilities",
],
python_requires=">=3.8",
install_requires=load_requirements(),
packages=find_packages(where="src"),
package_dir={"": "src"},
entry_points={
"console_scripts": [
"hwcodecdetect=HwCodecDetect.run_tests:main"
]
},
include_package_data=True,
zip_safe=True,
)