-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (51 loc) · 1.7 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
56
57
58
59
60
61
62
63
#######################################################################
# Copyright (C) 2017 Artem Oboturov([email protected]) #
# Permission given to modify the code as long as you keep this #
# declaration at the top #
#######################################################################
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import setuptools
from setuptools import setup
from setuptools.command.test import test as TestCommand
NAME = 'reinforcement-learning-an-introduction'
VERSION = '0.1.0'
DESCRIPTION = 'Python code for Sutton & Barto\'s book'
LICENSE = ''
URL = 'https://github.com/ShangtongZhang/reinforcement-learning-an-introduction'
AUTHOR = 'Shangtong Zhang'
EMAIL = '[email protected]'
KEYWORDS = ''
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def run_tests(self):
sys.exit(0)
def setup_package():
# Assemble additional setup commands
cmdclass = {}
cmdclass['test'] = PyTest
setup(
name=NAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
author=AUTHOR,
author_email=EMAIL,
license=LICENSE,
keywords=KEYWORDS,
long_description='',
classifiers=[],
test_suite='',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
install_requires=['numpy', 'matplotlib', 'six', 'seaborn'],
setup_requires=[],
cmdclass=cmdclass,
tests_require=['pytest'],
command_options={},
entry_points={},
)
if __name__ == '__main__':
setup_package()