forked from imageio/imageio-ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
85 lines (71 loc) · 2.63 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
"""
Setup script for imageio-ffmpeg.
"""
import os
import sys
from setuptools import setup
this_dir = os.path.dirname(os.path.abspath(__file__))
# Get version
sys.path.insert(0, os.path.join(this_dir, "imageio_ffmpeg"))
try:
from _definitions import __version__
finally:
sys.path.pop(0)
# Disallow releasing via setup.py
if "upload" in sys.argv:
raise RuntimeError("Running setup.py upload is not the proper release procedure!")
# If making a source dist, clear the binaries directory
if "sdist" in sys.argv:
target_dir = os.path.abspath(os.path.join(this_dir, "imageio_ffmpeg", "binaries"))
for fname in os.listdir(target_dir):
if fname != "README.md":
os.remove(os.path.join(target_dir, fname))
long_description = """
FFMPEG wrapper for Python.
Note that the platform-specific wheels contain the binary executable
of ffmpeg, which makes this package around 60 MiB in size.
I guess that's the cost for being able to read/write video files.
For Linux users: the above is not the case when installing via your
Linux package manager (if that is possible), because this package would
simply depend on ffmpeg in that case.
""".lstrip()
setup(
name="imageio-ffmpeg",
version=__version__,
author="imageio contributors",
author_email="[email protected]",
license="BSD-2-Clause",
url="https://github.com/imageio/imageio-ffmpeg",
download_url="http://pypi.python.org/pypi/imageio-ffmpeg",
keywords="video ffmpeg",
description="FFMPEG wrapper for Python",
long_description=long_description,
platforms="any",
provides=["imageio_ffmpeg"],
python_requires=">=3.5",
setup_requires=["pip>19"],
install_requires=[],
packages=["imageio_ffmpeg"],
package_dir={"imageio_ffmpeg": "imageio_ffmpeg"},
package_data={"imageio_ffmpeg": ["binaries/*.*"]},
include_package_data=True,
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)