Skip to content

Commit df594c7

Browse files
committed
updated setup from #111
1 parent 3766921 commit df594c7

File tree

4 files changed

+30
-28
lines changed

4 files changed

+30
-28
lines changed

NodeGraphQt/__init__.py

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,6 @@
3030
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
3131
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232

33-
__version__ = '0.0.9'
34-
__status__ = 'Work in Progress'
35-
__license__ = 'MIT'
36-
37-
__author__ = 'Johnny Chan'
38-
__email__ = 'http://chantasticvfx.com/contact'
39-
40-
__module_name__ = 'NodeGraphQt'
41-
__url__ = 'https://github.com/jchanvfx/NodeGraphQt'
42-
43-
__all__ = [
44-
'BackdropNode', 'BaseNode', 'Menu', 'MenuCommand', 'NodeGraph',
45-
'NodeObject', 'NodeTreeWidget', 'Port', 'PropertiesBinWidget',
46-
'constants', 'setup_context_menu'
47-
]
48-
4933
try:
5034
from Qt import QtWidgets, QtGui, QtCore, QtCompat
5135
except ImportError as ie:
@@ -55,13 +39,21 @@
5539
'"NodeGraphQt.vendor.Qt ({})"'.format(qtpy_ver))
5640

5741
from .base.graph import NodeGraph
42+
from .base.menu import Menu, MenuCommand
5843
from .base.node import NodeObject, BaseNode, BackdropNode
5944
from .base.port import Port
60-
from .base.menu import Menu, MenuCommand
45+
from .pkg_info import __version__ as VERSION
6146

6247
# functions
6348
from .base.actions import setup_context_menu
6449

6550
# widgets
6651
from .widgets.node_tree import NodeTreeWidget
6752
from .widgets.properties_bin import PropertiesBinWidget
53+
54+
__version__ = VERSION
55+
__all__ = [
56+
'BackdropNode', 'BaseNode', 'Menu', 'MenuCommand', 'NodeGraph',
57+
'NodeObject', 'NodeTreeWidget', 'Port', 'PropertiesBinWidget', 'VERSION',
58+
'constants', 'setup_context_menu'
59+
]

NodeGraphQt/pkg_info.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
3+
__version__ = '0.0.10'
4+
__status__ = 'Work in Progress'
5+
__license__ = 'MIT'
6+
7+
__author__ = 'Johnny Chan'
8+
__email__ = 'http://chantasticvfx.com/contact'
9+
10+
__module_name__ = 'NodeGraphQt'
11+
__url__ = 'https://github.com/jchanvfx/NodeGraphQt'

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
PySide2>=5.12
22
Qt.py>=1.2.0
3-
python>=3.6

setup.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
33
import setuptools
4-
5-
import NodeGraphQt
4+
import .pkg_info as pkg_info
65

76
with open('README.md', 'r') as fh:
87
long_description = fh.read()
@@ -21,18 +20,19 @@
2120
]
2221

2322
setuptools.setup(
24-
name='NodeGraphQt',
25-
version=NodeGraphQt.__version__,
26-
install_requires=requirements,
27-
author='Johnny Chan',
28-
author_email='[email protected]',
23+
name=pkg_info.__module_name__,
24+
version=pkg_info.__version__,
25+
author=pkg_info.__author__,
26+
author_email=pkg_info.__email__,
2927
description=description,
3028
long_description=long_description,
3129
long_description_content_type='text/markdown',
32-
url='https://github.com/jchanvfx/NodeGraphQt',
33-
packages=setuptools.find_packages(exclude=["example_nodes"]),
30+
url=pkg_info.__url__,
31+
packages=setuptools.find_packages(exclude=['example_nodes']),
3432
classifiers=classifiers,
35-
include_package_data=True
33+
install_requires=requirements,
34+
include_package_data=True,
35+
python_requires='>=3.6'
3636
)
3737

3838

0 commit comments

Comments
 (0)