forked from Kazuhito00/Image-Processing-Node-Editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (62 loc) · 2.3 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
from setuptools import setup, find_packages
import re
import os
from os import path
from os.path import splitext
from os.path import basename
from glob import glob
package_keyword = "ipn_editor"
def get_version():
with open("__init__.py", "r") as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
f.read(), re.MULTILINE).group(1)
return version
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
extra_py_files = package_files("node") + package_files("node_editor")
readme_path = path.abspath(path.dirname(__file__))
with open(path.join(readme_path, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name="ipn-editor",
packages=find_packages(),
py_modules=[splitext(basename(path))[0] for path in glob("./*")],
package_data={"node_editor": extra_py_files},
include_package_data=True,
version=get_version(),
author="Kazuhito00",
url="https://github.com/Kazuhito00/Image-Processing-Node-Editor",
description=
"Node editor-based image processing application for use in verification and comparison of processing",
long_description=long_description,
long_description_content_type='text/markdown',
keywords='opencv node-editor onnx onnxruntime dearpygui',
license="Apache-2.0 license",
python_requires=">=3.7",
install_requires=[
"numpy>=1.21.6", "Cython==0.29.30", "opencv-python==4.5.5.64",
"onnxruntime-gpu==1.12.0", "dearpygui==1.6.2", "mediapipe==0.8.10",
"protobuf==3.20.0", "filterpy==1.4.5", "lap==0.4.0",
"cython-bbox==0.1.3", "rich==12.4.4"
],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
project_urls={
"Source":
"https://github.com/Kazuhito00/Image-Processing-Node-Editor",
"Tracker":
"https://github.com/Kazuhito00/Image-Processing-Node-Editor/issues",
},
entry_points={
"console_scripts": [
"ipn-editor=main:main",
],
})