2021-05-13 05:44:27 +00:00
|
|
|
#!/usr/bin/env python3
|
2020-04-22 18:51:32 +00:00
|
|
|
import setuptools
|
2021-05-13 05:56:14 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
try:
|
|
|
|
from setuptools_rust import Binding, RustExtension
|
|
|
|
except ImportError:
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
errno = subprocess.call([sys.executable, "-m", "pip", "install", "setuptools-rust"])
|
|
|
|
if errno:
|
|
|
|
print("Please install setuptools-rust package")
|
|
|
|
raise SystemExit(errno)
|
|
|
|
else:
|
|
|
|
from setuptools_rust import Binding, RustExtension
|
2020-04-22 18:51:32 +00:00
|
|
|
|
2021-03-05 18:34:21 +00:00
|
|
|
|
2020-04-22 19:08:07 +00:00
|
|
|
REQUIRES = [
|
2021-04-12 23:23:48 +00:00
|
|
|
"numpy",
|
2021-05-16 07:33:25 +00:00
|
|
|
"vapoursynth",
|
2021-04-12 23:23:48 +00:00
|
|
|
"scenedetect[opencv]",
|
|
|
|
"opencv-python",
|
|
|
|
"tqdm",
|
|
|
|
"psutil",
|
|
|
|
"scipy",
|
|
|
|
"matplotlib",
|
2021-05-13 05:44:27 +00:00
|
|
|
"maturin",
|
|
|
|
"setuptools_rust",
|
2020-04-22 19:08:07 +00:00
|
|
|
]
|
|
|
|
|
2021-05-13 05:44:27 +00:00
|
|
|
setup_requires = ["setuptools-rust", "maturin"]
|
|
|
|
|
2020-05-02 19:10:30 +00:00
|
|
|
with open("README.md", "r") as f:
|
|
|
|
long_description = f.read()
|
2020-04-22 18:51:32 +00:00
|
|
|
|
2021-05-15 06:00:20 +00:00
|
|
|
version = "7.0.0"
|
2020-11-25 11:11:20 +00:00
|
|
|
|
2020-04-22 18:51:32 +00:00
|
|
|
setuptools.setup(
|
2020-05-02 19:10:30 +00:00
|
|
|
name="Av1an",
|
2020-11-25 11:11:20 +00:00
|
|
|
version=version,
|
2020-04-22 18:51:32 +00:00
|
|
|
author="Master_Of_Zen",
|
|
|
|
author_email="master_of_zen@protonmail.com",
|
2021-06-01 13:53:00 +00:00
|
|
|
description="Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding",
|
2020-04-22 18:51:32 +00:00
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="https://github.com/master-of-zen/Av1an",
|
2021-04-12 23:23:48 +00:00
|
|
|
packages=setuptools.find_packages(".", exclude="tests"),
|
2021-05-13 05:44:27 +00:00
|
|
|
setup_requires=setup_requires,
|
2020-04-22 19:08:07 +00:00
|
|
|
install_requires=REQUIRES,
|
2021-04-12 23:23:48 +00:00
|
|
|
py_modules=["av1an"],
|
2021-05-13 05:44:27 +00:00
|
|
|
rust_extensions=[RustExtension("av1an.av1an", "Cargo.toml", binding=Binding.PyO3)],
|
|
|
|
include_package_data=True,
|
2021-05-15 04:26:59 +00:00
|
|
|
entry_points={"console_scripts": ["av1an=av1an.py"]},
|
2020-04-22 18:51:32 +00:00
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
],
|
2021-04-12 23:23:48 +00:00
|
|
|
python_requires=">=3.6",
|
2021-05-13 05:44:27 +00:00
|
|
|
zip_safe=False,
|
2020-07-14 01:47:22 +00:00
|
|
|
)
|