-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (25 loc) · 855 Bytes
/
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
"""
Setup script to package the module
"""
import ast
import re
from pathlib import Path
from setuptools import find_packages, setup
_PACKAGE_NAME = "nes_ai"
BASE_DIR = Path(__file__).resolve().parent / _PACKAGE_NAME
_VERSION_RE = re.compile(r"__version__\s+=\s+(?P<version>.*)")
def get_version():
with open(str(BASE_DIR / "__init__.py")) as file:
match = _VERSION_RE.search(file.read())
version_ = match.group("version") if match else '"unknown"'
return str(ast.literal_eval(version_))
setup(
name=_PACKAGE_NAME.replace("_", "-"),
version=get_version(),
author="Samuel Pedro",
description="Nes AI - a bot that tries to play NES games.",
include_package_data=True,
install_requires=["aenum", "numpy", "networkx", "nes-py", "matplotlib", "sympy"],
data_files=list(),
packages=find_packages(),
)