-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (49 loc) · 1.42 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
import os
import sys
import shutil
from setuptools import setup, find_packages
sys.path.append(os.path.abspath('./lrl'))
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'lrl'))
from version import VERSION
# 'setup.py publish' shortcut.
# Thanks to requests for the idea and code
if sys.argv[-1] == 'publish':
# Remove old stuff
print("Removing old ./dist and ./lrl.egg-info")
try:
shutil.rmtree('./build')
shutil.rmtree('./dist')
shutil.rmtree('./lrl.egg-info')
except FileNotFoundError:
# Nothing to remove
pass
# Make new stuff
os.system('python setup.py sdist bdist_wheel')
os.system('twine upload dist/*')
sys.exit()
def get_readme():
"""
Get readme for long description
"""
with open('README.md') as fin:
return fin.read()
setup(name='lrl',
version=VERSION,
description='lrl: Learn Reinforcement Learning',
long_description=get_readme(),
long_description_content_type='text/markdown',
author='Andrew Scribner',
license='BSD 3',
url='https://github.com/ca-scribner/lrl',
# classifiers=[], # Where do these come from?
packages=find_packages(),
install_requires=[
'gym>=0.12.1',
'matplotlib>=3.0.3',
'ipython>=7.5.0',
'pandas>=0.24.2',
'scikit-learn>=0.20.3'
],
python_requires='>3.6',
zip_save=False,
)