-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
89 lines (78 loc) · 2.74 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
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
"""Setups the project."""
import pathlib
from setuptools import setup, find_packages
CWD = pathlib.Path(__file__).absolute().parent
def get_version():
"""Gets the sailboat-gym version."""
path = CWD / "sailboat_gym" / "__init__.py"
content = path.read_text()
for line in content.splitlines():
if line.startswith("__version__"):
return line.strip().split()[-1].strip().strip('"').strip("'")
raise RuntimeError("bad version data in __init__.py")
def get_description():
"""Gets the description from the readme."""
with open("README.md") as fh:
long_description = ""
header_count = 0
for line in fh:
if line.startswith("##"):
header_count += 1
if header_count < 1:
if not line.startswith("#") and not line.startswith("!"):
long_description += line
else:
break
return long_description
setup(
name="sailboat-gym",
version=get_version(),
description="A dynamic gym simulation environment specifically designed for sailboats.",
long_description=get_description(),
author="Lucas Marandat",
author_email="[email protected]",
license="MIT License",
keywords=["Simulation", "Sailboat", "Gymnasium", "Gym"],
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
python_requires=">=3.7",
url="https://github.com/lucasmrdt/sailboat-gym",
project_urls={
"Homepage": "https://github.com/lucasmrdt/sailboat-gym",
"Repository": "https://github.com/lucasmrdt/sailboat-gym",
"Documentation": "https://github.com/lucasmrdt/sailboat-gym/blob/main/DOCUMENTATION.md",
"Bug Report": "https://github.com/lucasmrdt/sailboat-gym/issues",
},
packages=find_packages(),
include_package_data=True,
install_requires=[
'gymnasium==0.28.1',
'msgpack_python==0.5.6',
'pyzmq==25.0.2',
'numpy',
'pydantic',
'tqdm',
'opencv-python',
'imageio-ffmpeg',
'docker',
'moviepy',
'multiexit',
],
package_data={
"sailboat_gym": [
"docs/demo.gif",
"docs/sailing_schema.png",
"pkl/SailboatLSAEnv-v0_bounds_v_wind_1.pkl",
"pkl/SailboatLSAEnv-v0_bounds_v_wind_2.pkl",
]
},
)