diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..e8d90d4e --- /dev/null +++ b/setup.cfg @@ -0,0 +1,31 @@ +[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.15 + +[options.packages.find] +exclude = example_nodes + +[options.package_data] +NodeGraphQt = widgets/icons/node_base.png diff --git a/setup.py b/setup.py deleted file mode 100644 index 9e23e7d9..00000000 --- a/setup.py +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/python -# -*- 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/', -] - -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 -"""