-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
171 lines (157 loc) · 6.04 KB
/
pyproject.toml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
[project]
name = "civrealm"
version = "0.1.2"
description = "CivRealm is an interactive environment for AI agents for the open-source strategy game Freeciv with the Freeciv-web client."
authors = [
{name = "Siyuan Qi", email = "[email protected]"},
{name = "Shuo Chen", email = "[email protected]"},
{name = "Yexin Li", email = "[email protected]"},
{name = "Xiangyu Kong", email = "[email protected]"},
{name = "Pring Wong", email = "[email protected]"},
{name = "Bangcheng Yang", email = "[email protected]"},
{name = "Chris1869", email = "[email protected]"},
{name = "Junqi Wang", email = "[email protected]"},
{name = "Yifan Zhong", email = "[email protected]"},
{name = "Zhaowei Zhang", email = "[email protected]"},
{name = "Xiaoyuan Zhang", email = "[email protected]"},
{name = "Nian Liu", email = "[email protected]"}
]
readme = "README.md"
license = {text = "GLP3.0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Games/Entertainment :: Turn Based Strategy",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
]
keywords = ["civrealm", "freeciv", "ai", "reinforcement-learning", "openai-gym"]
dependencies = [
'importlib-resources',
'pyyaml>=5.4.1',
'overrides',
'wheel',
'docker',
'urllib3',
'BitVector',
'numpy',
'tornado==6.3.2',
'gymnasium==0.29.1',
'selenium==4.9.1',
'websocket-client',
'filelock>=3.12.2',
'matplotlib',
# The following packages are for parallel training
'ray==2.6.3; python_version < "3.12"',
]
requires-python = ">= 3.8"
[project.optional-dependencies]
dev = [
'pytest',
'pytest-xdist'
]
[project.scripts]
test_civrealm = "civrealm.random_game:main"
download_freeciv_web_image = "civrealm.freeciv.build_server:download_freeciv_web_image"
start_freeciv_web_service = "civrealm.freeciv.build_server:start_freeciv_web_service"
stop_freeciv_web_service = "civrealm.freeciv.build_server:stop_freeciv_web_service"
build_freeciv_web_service = "civrealm.freeciv.build_server:build_freeciv_web_service"
update_javascript_for_clean_screenshot = "civrealm.freeciv.build_server:update_javascript_for_clean_screenshot"
[project.urls]
Homepage = "https://github.com/bigai-ai/civrealm"
Issues = "https://github.com/bigai-ai/civrealm/issues"
Documentation = "https://bigai-ai.github.io/civrealm/"
Source = "https://github.com/bigai-ai/civrealm"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
civrealm = ["*.yaml"]
[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning", "ignore:.*obs returned by the.*method.*", "ignore:.*Casting input x to numpy array.*"]
addopts = [
"--import-mode=importlib",
"-s", # show print statements in console
"-n 16", # specify the number of processes for parallel test
# specify which test file to run by setting test file name
# Env
"tests/env/test_tensor_env.py",
"tests/env/test_tensor_minitask_env.py",
"tests/env/test_tech_victory.py",
"tests/env/test_allied_victory.py",
"tests/env/test_culture_victory.py",
# City
"tests/city/test_city_change_unit_prod.py",
"tests/city/test_city_change_improve_prod.py",
"tests/city/test_city_change_specialist.py",
"tests/city/test_city_unwork.py",
"tests/city/test_city_work.py",
"tests/city/test_city_buy_prod.py",
"tests/city/test_city_buy_if_anarchy.py",
"tests/city/test_city_sell_improvement.py",
# Dipl
"tests/dipl/test_dipl_start_negotiate.py",
"tests/dipl/test_dipl_stop_negotiate.py",
"tests/dipl/test_dipl_accept_treaty.py",
"tests/dipl/test_dipl_cancel_treaty.py",
"tests/dipl/test_dipl_cancel_vision.py",
"tests/dipl/test_dipl_remove_clause.py",
"tests/dipl/test_dipl_add_clause.py",
"tests/dipl/test_dipl_trade_tech.py",
"tests/dipl/test_dipl_trade_gold.py",
"tests/dipl/test_dipl_trade_city.py",
# Gov
"tests/gov/test_change_government.py",
"tests/gov/test_gov_increase_tax.py",
"tests/gov/test_gov_decrease_tax.py",
"tests/gov/test_gov_increase_sci.py",
"tests/gov/test_gov_decrease_sci.py",
"tests/gov/test_gov_increase_lux.py",
"tests/gov/test_gov_decrease_lux.py",
"tests/gov/test_gov_set_sci_lux_tax.py",
# Tech
"tests/tech/test_choose_research_tech.py",
"tests/tech/test_choose_research_goal.py",
# Unit
"tests/unit/test_move_to.py",
"tests/unit/test_hut_enter.py",
"tests/unit/test_build_city.py",
"tests/unit/test_build_city2.py",
"tests/unit/test_join_city.py",
"tests/unit/test_build_road.py",
"tests/unit/test_build_railroad.py",
"tests/unit/test_irrigation.py",
"tests/unit/test_mine.py",
"tests/unit/test_mine_desert.py",
"tests/unit/test_cultivate.py",
"tests/unit/test_plant.py",
"tests/unit/test_pillage.py",
"tests/unit/test_pollution.py",
"tests/unit/test_fortress.py",
"tests/unit/test_fortify.py",
"tests/unit/test_homecity.py",
"tests/unit/test_upgrade.py",
"tests/unit/test_get_action_pro.py",
"tests/unit/test_get_action_pro2.py",
"tests/unit/test_get_action_pro3.py",
"tests/unit/test_attack.py",
"tests/unit/test_conquer_city.py",
"tests/unit/test_get_action_pro_spy_bribe.py",
"tests/unit/test_get_action_pro_spy_steal.py",
"tests/unit/test_spy_steal_tech.py",
"tests/unit/test_spy_sabotage_city.py",
"tests/unit/test_spy_bribe_unit.py",
"tests/unit/test_investigate_spend.py",
"tests/unit/test_cancel_order.py",
"tests/unit/test_airbase.py",
"tests/unit/test_embark_disembark.py",
"tests/unit/test_embark_2.py",
"tests/unit/test_load_deboard_unload.py",
"tests/unit/test_trade_route_market.py",
"tests/unit/test_embassy_stay.py",
"tests/unit/test_transform.py",
# Deprecated test
# "tests/unit/test_disband.py",
]