-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
107 lines (98 loc) · 3.73 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
"""
===============================================
DeFFcode library source-code is deployed under the Apache 2.0 License:
Copyright (c) 2021 Abhishek Thakur(@abhiTronix) <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
===============================================
"""
# import the necessary packages
from setuptools import setup
from distutils.util import convert_path
# parse PKG version
pkg_version = {}
ver_path = convert_path("deffcode/version.py")
with open(ver_path) as ver_file:
exec(ver_file.read(), pkg_version)
# apply various patches to README text and prepare
# valid long_description
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# patch to remove github README specific text
long_description = (
long_description.replace(
"![DeFFcode](https://user-images.githubusercontent.com/34266896/211494463-a63a03d2-72a6-46bb-b40a-ab485a63674b.png#gh-dark-mode-only)",
"",
)
.replace("#gh-light-mode-only", "")
.replace("<ins>", "")
.replace("</ins>", "")
)
# patch for unicodes
long_description = long_description.replace("➶", ">>").replace("©", "(c)")
# patch internal hyperlinks
long_description = long_description.replace(
"(#", "(https://github.com/abhiTronix/deffcode#"
)
setup(
name="deffcode",
packages=["deffcode"],
version=pkg_version["__version__"],
description="A cross-platform High-performance & Flexible Real-time Video Frames Decoder in Python.",
license="Apache License 2.0",
author="Abhishek Thakur",
install_requires=[
"cython", # (not really a dependency) just helper for numpy install
"numpy",
"requests",
"colorlog",
"tqdm",
],
long_description=long_description,
long_description_content_type="text/markdown",
author_email="[email protected]",
url="https://abhitronix.github.io/deffcode",
keywords=[
"FFmpeg",
"Decoder",
"Realtime",
"Framework",
"Cross-platform",
"Video Processing",
"Computer Vision",
"Video Decoding",
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Topic :: Multimedia :: Video",
"Topic :: Multimedia :: Video :: Conversion",
"Topic :: Scientific/Engineering",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
python_requires=">=3.8",
scripts=[],
project_urls={
"Bug Reports": "https://github.com/abhiTronix/deffcode/issues",
"Funding": "https://ko-fi.com/W7W8WTYO",
"Source": "https://github.com/abhiTronix/deffcode",
"Documentation": "https://abhitronix.github.io/deffcode",
"Changelog": "https://abhitronix.github.io/deffcode/latest/changelog/",
},
)