-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
setup.py
84 lines (70 loc) · 2.62 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
"""
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 not in ["README.md", "__init__.py"]:
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="almar.klein@gmail.com",
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=[],
install_requires=[],
packages=["imageio_ffmpeg", "imageio_ffmpeg.binaries"],
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.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)