-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
49 lines (46 loc) · 1.64 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
import setuptools
import json
import os
import io
this_dir = os.path.dirname(os.path.realpath(__file__))
module_dir = os.path.join(this_dir, 'nxt_editor')
with io.open(os.path.join(this_dir, "README.md"), "r", encoding="utf-8") as fp:
long_description = fp.read()
desc = ("A general purpose code compositor designed for rigging, "
"scene assembly, and automation. (node execution tree)")
with open(os.path.join(module_dir, "version.json"), 'r') as fp:
ed_version_data = json.load(fp)
ed_v_data = ed_version_data['EDITOR']
ed_major = ed_v_data['MAJOR']
ed_minor = ed_v_data['MINOR']
ed_patch = ed_v_data['PATCH']
editor_version = '{}.{}.{}'.format(ed_major, ed_minor, ed_patch)
setuptools.setup(
name="nxt-editor",
version=editor_version,
author="The nxt contributors",
author_email="[email protected]",
description=desc,
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/nxt-dev/nxt_editor",
packages=setuptools.find_packages(),
python_requires='>=3.9, <3.12',
install_requires=['nxt-core<1.0,>=0.14',
'qt.py<3',
'PySide6>=6,<6.8'
],
package_data={
# covers text nxt files
"": ["*.nxt"],
# Covers builtin, and full depth of resources
"nxt_editor": ["version.json",
"integration/*",
"integration/*/*",
"integration/*/*/*",
"resources/*",
"resources/*/*",
"resources/*/*/*",
"resources/*/*/*/*"],
}
)