-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
39 lines (30 loc) · 1.22 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from setuptools import setup, find_packages
import os
def parse_requirements(filename):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
req = parse_requirements(filename=os.path.join(CURRENT_PATH, 'requirements.txt'))
# req = [str(ir.req) for ir in req]
# print(req)
with open(os.path.join(CURRENT_PATH, 'README.md'), 'r', encoding='utf-8') as f:
long_description = f.read()
exec(open('baconian/version.py').read())
ver = __version__
setup(
name='baconian',
version=ver,
url='https://github.com/cap-ntu/baconian-project',
license='MIT License',
author='Linsen Dong',
author_email='[email protected]',
description='model-based reinforcement learning toolbox',
install_requires=req,
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(include=['baconian', 'baconian.*'], exclude=[]),
python_requires='>=3.5',
include_package_data=True,
package_data={'baconian': ['config/required_keys/*', 'benchmark/**/*', './*']}
)