Skip to content
Snippets Groups Projects
setup.py 2.29 KiB
Newer Older
spmohanty's avatar
spmohanty committed
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""The setup script."""
from setuptools import setup, find_packages
spmohanty's avatar
spmohanty committed

u214892's avatar
u214892 committed
assert sys.version_info >= (3, 6)
spmohanty's avatar
spmohanty committed
with open('README.rst') as readme_file:
    readme = readme_file.read()

    for dirpath, subdirs, files in os.walk(directory):
        for f in files:
            ret.append(os.path.join(dirpath, f))
def get_all_images_files(directory='./images/'):
    ret = []
    for dirpath, subdirs, files in os.walk(directory):
        for f in files:
            ret.append(os.path.join(dirpath, f))
def get_all_notebook_files(directory='./notebooks/'):
    ret = []
    for dirpath, subdirs, files in os.walk(directory):
        for f in files:
            ret.append(os.path.join(dirpath, f))
# Gather requirements from requirements_dev.txt
install_reqs = []
requirements_path = 'requirements_dev.txt'
with open(requirements_path, 'r') as f:
    install_reqs += [
        s for s in [
            line.strip(' \n') for line in f
        ] if not s.startswith('#') and s != ''
    ]
requirements = install_reqs
setup_requirements = install_reqs
test_requirements = install_reqs
spmohanty's avatar
spmohanty committed

setup(
    author="S.P. Mohanty",
    author_email='mohanty@aicrowd.com',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
    ],
    description="Multi Agent Reinforcement Learning on Trains",
    entry_points={
        'console_scripts': [
            'flatland-evaluator=flatland.cli:evaluator'
spmohanty's avatar
spmohanty committed
        ],
    },
    install_requires=requirements,
    long_description=readme,
spmohanty's avatar
spmohanty committed
    include_package_data=True,
    keywords='flatland',
    name='flatland-rl',
spiglerg's avatar
spiglerg committed
    packages=find_packages('.'),
    data_files=[('svg', get_all_svg_files()),
                ('images', get_all_images_files()),
                ('notebooks', get_all_notebook_files())],
spmohanty's avatar
spmohanty committed
    setup_requires=setup_requirements,
    test_suite='tests',
    tests_require=test_requirements,
    url='https://gitlab.aicrowd.com/flatland/flatland',
    version='0.3.4',
spmohanty's avatar
spmohanty committed
    zip_safe=False,
)