forked from axon-rl/gem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (35 loc) · 1.24 KB
/
setup.py
File metadata and controls
43 lines (35 loc) · 1.24 KB
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
"""Build the package."""
import os
import re
from io import open
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
PACKAGE_NAME = "gem"
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
readme = f.read()
def _read_version():
VERSION_FILE = f"{PACKAGE_NAME}/__about__.py"
ver_str_line = open(VERSION_FILE, "rt").read()
version_re = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(version_re, ver_str_line, re.M)
if mo:
version = mo.group(1)
else:
raise RuntimeError(f"Unable to find version string in {VERSION_FILE}.")
return version
setup(
name=PACKAGE_NAME,
version=_read_version(),
author="Zichen Liu, Anya Sims, Keyu Duan, Changyu Chen",
description="A Gym for Generalist LLMs.",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/axon-rl/gem",
license="Apache-2.0",
packages=find_packages(exclude=["examples*", "test*"]),
include_package_data=True,
python_requires=">=3.10, <=3.12",
setup_requires=["setuptools_scm>=7.0"],
zip_safe=False,
)