-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (45 loc) · 1.5 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
import os
import pathlib
from setuptools import setup, find_packages
from pybind11.setup_helpers import Pybind11Extension, build_ext
def get_version() -> str:
init = open(os.path.join("UtilsRL", "__init__.py"), "r").read().split()
return init[init.index("__version__") + 2][1:-1]
ROOT_DIR = pathlib.Path(__file__).parent
README = (ROOT_DIR / "README.md").read_text()
VERSION = get_version()
def get_install_requires():
return [
"gym>=0.23.1,<=0.24.1",
"tqdm",
"numpy",
"torch",
"pandas",
"opencv-python"
]
def get_extras_require():
return {}
ext_modules = [
Pybind11Extension("data_structure",
["UtilsRL/data_structure/data_structure.cc"],
)
]
setup(
name = "UtilsRL",
version = VERSION,
description = "A python module desgined for RL logging, monitoring and experiments managing. ",
long_description = README,
long_description_content_type = "text/markdown",
url = "https://github.com/typoverflow/UtilsRL",
author = "typoverflow",
author_email = "[email protected]",
license = "MIT",
packages = find_packages(),
include_package_data = True,
tests_require=["pytest", "mock"],
python_requires=">=3.7",
install_requires = get_install_requires(),
# extras_require = get_extras_require(),
ext_modules = ext_modules,
cmdclass = {"build_ext": build_ext},
)