-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetup.py
55 lines (49 loc) · 2.01 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import codecs
from setuptools import setup
from setuptools import find_packages
# read version directly as variable, not import lagom, because it might not be installed yet
with open('lagom/version.py') as f:
exec(f.read())
# Read long description of README markdown, shows in Python Package Index
with codecs.open('README.md', encoding='utf-8') as f:
long_description = f.read()
# Minimal requried dependencies (full dependencies in requirements.txt)
install_requires = ['cloudpickle',
'pyyaml',
'opencv-python',
'colored',
'mpi4py',
'numpy',
'scipy',
'matplotlib',
'seaborn',
'scikit-image',
'scikit-learn',
'imageio',
'pandas',
'gym',
'cma']
tests_require = ['pytest',
'flake8',
'sphinx',
'sphinx_rtd_theme']
setup(name='lagom',
version=__version__,
author='Xingdong Zuo',
author_email='zuoxingdong@hotmail.com',
description='lagom: A light PyTorch infrastructure to quickly prototype reinforcement learning algorithms.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/zuoxingdong/lagom',
install_requires=install_requires,
tests_require=tests_require,
python_requires='>=3',
# List all lagom packages (folder with __init__.py), useful to distribute a release
packages=find_packages(),
# tell pip some metadata (e.g. Python version, OS etc.)
classifiers=['Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Natural Language :: English',
'Topic :: Scientific/Engineering :: Artificial Intelligence']
)