from setuptools import setup
from pathlib import Path

THISDIR = Path(__file__).parent

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

with open(THISDIR/'..'/'Readme.md', encoding='utf-8') as f:
    long_description = f.read()
print(required)

setup(
    name="blendtorch-btt",
    author='Christoph Heindl and Sebastian Zambal',
    description='PyTorch part of project blendtorch. See also blendtorch-btb.', 
    url='https://github.com/cheind/pytorch-blender',
    license='MIT',
    long_description=long_description,
    long_description_content_type='text/markdown',
    version=open(THISDIR/'blendtorch'/'btt'/'__init__.py').readlines()[-1].split()[-1].strip('\''),
    packages=['blendtorch.btt', 'blendtorch.btt.apps'],    
    install_requires=required,
    zip_safe=False,
    entry_points = {
        'console_scripts': [
            'blendtorch-launch=blendtorch.btt.apps.launch:main'
        ],
    }
)