ffmpeg utils as py module

This commit is contained in:
Ville Rantanen
2021-12-07 20:58:41 +02:00
parent 6c37663f9f
commit a7710d7df9
7 changed files with 210 additions and 4 deletions

View File

@@ -0,0 +1,26 @@
from distutils.core import setup
def version_reader(path):
for line in open(path, "rt").read(1024).split("\n"):
if line.startswith("__version__"):
return line.split("=")[1].strip().replace('"', "")
version = version_reader(os.path.join("ffmpegparser", "ffmpegparser.py"))
setup(
name="ffmpegparser",
packages=["ffmpegparser"],
version=version,
description="View parse ffmpeg and ffprobe output nicer",
author="Ville Rantanen",
author_email="ville.q.rantanen@gmail.com",
keywords=["ffmpeg"],
entry_points={
"console_scripts": [
"ffmpeg-parser = ffmpegparser.ffmpegparser:main",
"ffprobe-parser = ffmpegparser.ffprobeparser:main"
]
},
install_requires=["parse", "ansi"],
)