|
""" |
|
Setup of pyrender Python codebase. |
|
|
|
Author: Matthew Matl |
|
""" |
|
import sys |
|
from setuptools import setup |
|
|
|
|
|
exec(open('pyrender/version.py').read()) |
|
|
|
def get_imageio_dep(): |
|
if sys.version[0] == "2": |
|
return 'imageio<=2.6.1' |
|
return 'imageio' |
|
|
|
requirements = [ |
|
'freetype-py', |
|
get_imageio_dep(), |
|
'networkx', |
|
'numpy', |
|
'Pillow', |
|
'pyglet>=1.4.10', |
|
'PyOpenGL~=3.1.0', |
|
|
|
'scipy', |
|
'six', |
|
'trimesh', |
|
] |
|
|
|
dev_requirements = [ |
|
'flake8', |
|
'pre-commit', |
|
'pytest', |
|
'pytest-cov', |
|
'tox', |
|
] |
|
|
|
docs_requirements = [ |
|
'sphinx', |
|
'sphinx_rtd_theme', |
|
'sphinx-automodapi' |
|
] |
|
|
|
|
|
setup( |
|
name = 'pyrender', |
|
version=__version__, |
|
description='Easy-to-use Python renderer for 3D visualization', |
|
long_description='A simple implementation of Physically-Based Rendering ' |
|
'(PBR) in Python. Compliant with the glTF 2.0 standard.', |
|
author='Matthew Matl', |
|
author_email='matthewcmatl@gmail.com', |
|
license='MIT License', |
|
url = 'https://github.com/mmatl/pyrender', |
|
classifiers = [ |
|
'Development Status :: 4 - Beta', |
|
'License :: OSI Approved :: MIT License', |
|
'Operating System :: POSIX :: Linux', |
|
'Operating System :: MacOS :: MacOS X', |
|
'Programming Language :: Python :: 2.7', |
|
'Programming Language :: Python :: 3.5', |
|
'Programming Language :: Python :: 3.6', |
|
'Natural Language :: English', |
|
'Topic :: Scientific/Engineering' |
|
], |
|
keywords = 'rendering graphics opengl 3d visualization pbr gltf', |
|
packages = ['pyrender', 'pyrender.platforms'], |
|
setup_requires = requirements, |
|
install_requires = requirements, |
|
extras_require={ |
|
'dev': dev_requirements, |
|
'docs': docs_requirements, |
|
}, |
|
include_package_data=True |
|
) |
|
|