This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 370
/
setup.py
47 lines (38 loc) · 1.43 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
import glob
import setuptools
from typing import List
import poker_ai
def get_scripts_from_bin() -> List[str]:
"""Get all local scripts from bin so they are included in the package."""
return glob.glob("bin/*")
def get_package_description() -> str:
"""Returns a description of this package from the markdown files."""
with open("README.md", "r") as stream:
readme: str = stream.read()
with open("HISTORY.md", "r") as stream:
history: str = stream.read()
return f"{readme}\n\n{history}"
def get_requirements() -> List[str]:
"""Returns all requirements for this package."""
with open('requirements.txt') as f:
requirements = f.read().splitlines()
return requirements
setuptools.setup(
name="poker_ai",
version=poker_ai.__version__,
author="Leon Fedden, Colin Manko",
description="Open source implementation of a CFR based poker AI player.",
long_description=get_package_description(),
long_description_content_type="text/markdown",
url="https://github.com/fedden/poker_ai",
packages=setuptools.find_packages(),
install_requires=get_requirements(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
],
scripts=get_scripts_from_bin(),
python_requires=">=3.7",
)