-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (29 loc) · 848 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
34
35
36
import os
from setuptools import setup
dir_path = os.path.abspath(os.path.dirname(__file__))
def get_version():
"""Gets the gymnasium version."""
path = os.path.join(dir_path, "mjnax", "__init__.py")
lines = open(path, "r").readlines()
for line in lines:
if line.startswith("__version__"):
return line.strip().split()[-1].strip().strip('"')
raise RuntimeError("bad version data in __init__.py")
setup(
# Metadata
name="mjnax",
version=get_version(),
author="Tolga Ok",
author_email="[email protected]",
url="",
description="MuJoCo environments implemented in gymnax",
long_description=(""),
license="MIT",
# Package info
packages=["mjnax", "mjnax.assets"],
package_data={
"mjnax": ["assets/*"],
},
install_requires=[],
zip_safe=False
)