-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (45 loc) · 1.47 KB
/
setup.py
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
from setuptools import setup, find_packages # type: ignore
import os
VERSION = "1.0.3"
def parse_requirements(filename):
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), filename),
encoding="utf-8",
mode="r",
) as file:
return [
line.strip() for line in file if line.strip() and not line.startswith("#")
]
def parse_long_description():
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
encoding="utf8",
mode="r",
) as fp:
return fp.read()
setup(
name="mkvexport",
description="A command-line utility for extracting attachments (subtitles, fonts and chapters) of MKV files.",
long_description=parse_long_description(),
long_description_content_type="text/markdown",
author="ToshY (https://github.com/ToshY)",
url="https://github.com/ToshY/mkvexport",
project_urls={
"Issues": "https://github.com/ToshY/mkvexport/issues",
"CI": "https://github.com/ToshY/mkvexport/actions",
"Releases": "https://github.com/ToshY/mkvexport/releases",
},
license="MIT",
version=VERSION,
packages=find_packages(),
entry_points={
"console_scripts": [
"mkvexport=mkvexport.cli:cli",
],
},
install_requires=parse_requirements("requirements.txt"),
extras_require={
"dev": parse_requirements("requirements.dev.txt"),
},
python_requires=">=3.11",
)