Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions example_auto_nodes.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from NodeGraphQt import NodeGraph, setup_context_menu, \
QtWidgets, QtCore, PropertiesBinWidget, BackdropNode

from Qt import QtWidgets, QtCore
from NodeGraphQt import (NodeGraph, setup_context_menu,
PropertiesBinWidget, BackdropNode,)
from example_auto_nodes import Publish, RootNode, update_nodes, setup_node_menu
import importlib
import inspect
import sys

import os
import sys
import inspect
import importlib


def get_nodes_from_folder(folder_path):
Expand Down
2 changes: 1 addition & 1 deletion example_auto_nodes/input_nodes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from NodeGraphQt import QtCore
from Qt import QtCore
from NodeGraphQt.constants import (NODE_PROP_VECTOR2,
NODE_PROP_VECTOR3,
NODE_PROP_VECTOR4)
Expand Down
5 changes: 3 additions & 2 deletions example_nodes/input_nodes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
from NodeGraphQt import BaseNode, QtCore
from Qt import QtCore
from NodeGraphQt import BaseNode


class DataInputNode(BaseNode):
Expand Down Expand Up @@ -85,4 +86,4 @@ def __init__(self):
self.view.widgets['combo'].value_changed.connect(self.update_stream)

def run(self):
self.set_property('out', eval(self.get_property('combo')))
self.set_property('out', eval(self.get_property('combo')))
3 changes: 2 additions & 1 deletion example_nodes/logic_nodes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from NodeGraphQt import BaseNode, QtCore
from Qt import QtCore
from NodeGraphQt import BaseNode


class IfNode(BaseNode):
Expand Down
32 changes: 32 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[metadata]
license = MIT License
license_file = LICENSE.md
long_description = file: README.md
long_description_content_type = text/markdown
description = Node graph framework for PySide2/PyQt5 that can be
implemented and re-purposed into applications.
classifiers = Operating System :: OS Independent
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3.6
url = https://github.com/jchanvfx/NodeGraphQt
project_urls =
Documentation = https://jchanvfx.github.io/NodeGraphQt/api/html/index.html
Source = https://github.com/jchanvfx/NodeGraphQt/
Tracker = https://github.com/jchanvfx/NodeGraphQt/issues

[options]
packages = find:
include_package_data = True
python_requires = >=3.6
install_requires =
Qt.py>=1.2.0

[options.extras_require]
PySide2 = PySide2>=5.12

[options.packages.find]
exclude = example_nodes

[options.package_data]
NodeGraphQt = widgets/icons/down_arrow.png
widgets/icons/node_base.png
46 changes: 4 additions & 42 deletions setup.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,53 +1,15 @@
#!/usr/bin/python
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys

import setuptools

sys.path.append(os.path.join(os.path.dirname(__file__), "NodeGraphQt"))

import pkg_info

with open('README.md', 'r') as fh:
long_description = fh.read()

with open('requirements.txt') as f:
requirements = f.read().splitlines()

description = (
'Node graph framework that can be re-implemented into applications that '
'supports PySide & PySide2'
)
classifiers = [
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Documentation :: https://jchanvfx.github.io/NodeGraphQt/api/html/index.html',
'Source :: https://github.com/jchanvfx/NodeGraphQt/',
]
from NodeGraphQt import pkg_info

setuptools.setup(
name=pkg_info.__module_name__,
version=pkg_info.__version__,
author=pkg_info.__author__,
author_email='',
description=description,
long_description=long_description,
long_description_content_type='text/markdown',
url=pkg_info.__url__,
packages=setuptools.find_packages(exclude=['example_nodes']),
classifiers=classifiers,
install_requires=requirements,
include_package_data=True,
python_requires='>=3.6',
extras_require={
'PySide2': ['PySide2>=5.12']
}
)


"""
python setup.py sdist
sudo python setup.py install
"""
# python3 setup.py sdist
# python3 setup.py install --prefix ~/.local/