forked from alan-turing-institute/AIrsenal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (38 loc) · 1.79 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
import os.path
import re
from setuptools import setup
SETUP_DIR = os.path.dirname(os.path.abspath(__file__))
# Get package version from airsenal/__init__.py
with open(os.path.join(SETUP_DIR, "airsenal", "__init__.py")) as f:
VERSION = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
# Get dependencies from requirements.txt
with open(os.path.join(SETUP_DIR, "requirements.txt"), "r") as f:
REQUIRED_PACKAGES = f.read().splitlines()
console_scripts = [
"airsenal_setup_initial_db=airsenal.scripts.fill_db_init:main",
"airsenal_update_db=airsenal.scripts.update_db:main",
"airsenal_plot=airsenal.scripts.plot_league_standings:main",
"airsenal_run_prediction=airsenal.scripts.fill_predictedscore_table:main",
"airsenal_run_optimization=airsenal.scripts.fill_transfersuggestion_table:main",
"airsenal_make_squad=airsenal.scripts.squad_builder:main",
"airsenal_check_data=airsenal.scripts.data_sanity_checks:run_all_checks",
"airsenal_dump_db=airsenal.scripts.dump_db_contents:main",
"airsenal_run_pipeline=airsenal.scripts.airsenal_run_pipeline:run_pipeline",
"airsenal_replay_season=airsenal.scripts.replay_season:main",
"airsenal_make_transfers=airsenal.scripts.make_transfers:main",
"airsenal_set_lineup=airsenal.scripts.set_lineup:main",
]
setup(
name="airsenal",
version=VERSION,
description="An automatic Fantasy Premier League manager.",
url="https://github.com/alan-turing-institute/AIrsenal",
author="Nick Barlow, Angus Williams, Jack Roberts",
license="MIT",
include_package_data=True,
packages=["airsenal", "airsenal.framework", "airsenal.scripts", "airsenal.api"],
install_requires=REQUIRED_PACKAGES,
entry_points={"console_scripts": console_scripts},
package_data={"airsenal": ["data/*"]},
zip_safe=False,
)