Skip to content

Commit 42840c8

Browse files
committed
setup tweaks
1 parent 5cc7ef9 commit 42840c8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

requirements.txt

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

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
# -*- coding: utf-8 -*-
33
import setuptools
44

5-
from NodeGraphQt import __version__ as version
5+
import NodeGraphQt
66

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

10+
with open('requirements.txt') as f:
11+
requirements = f.read().splitlines()
12+
1013
description = (
1114
'Node graph framework that can be re-implemented into applications that '
1215
'supports PySide & PySide2'
@@ -19,7 +22,8 @@
1922

2023
setuptools.setup(
2124
name='NodeGraphQt',
22-
version=version,
25+
version=NodeGraphQt.__version__,
26+
install_requires=requirements,
2327
author='Johnny Chan',
2428
author_email='[email protected]',
2529
description=description,
@@ -28,8 +32,7 @@
2832
url='https://github.com/jchanvfx/NodeGraphQt',
2933
packages=setuptools.find_packages(exclude=["example_nodes"]),
3034
classifiers=classifiers,
31-
include_package_data=True,
32-
python_requires='>=3.6',
35+
include_package_data=True
3336
)
3437

3538

0 commit comments

Comments
 (0)