-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
34 lines (31 loc) · 1.08 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
import os
import re
from setuptools import setup, find_packages
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
read_md = lambda f: open(f, 'r').read()
def read_version():
__PATH__ = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(__PATH__, 'breakout_env/__init__.py')) as f:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find __version__ string")
setup(
name='breakout_env',
packages=find_packages(),
version=read_version(),
description='A configurable Breakout environment for reinforcement learning',
long_description=read_md('README.md'),
author='SSARCandy',
author_email='[email protected]',
license='MIT',
url='https://github.com/SSARCandy/breakout-env',
keywords=['game', 'learning', 'evironment'],
classifiers=[],
install_requires=['numpy>=1.1', 'distribute'],
include_package_data=True
)