This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 157
/
setup.py
48 lines (40 loc) · 1.54 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
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from pathlib import Path
from setuptools import setup, find_packages
def parse_requirements_file(path):
return [line.rstrip() for line in open(path, "r")]
reqs_main = parse_requirements_file("requirements/main.txt")
reqs_dev = parse_requirements_file("requirements/dev.txt")
with open("README.md", "r") as f:
long_description = f.read()
init_str = Path("mbrl/__init__.py").read_text()
version = init_str.split("__version__ = ")[1].rstrip().strip('"')
setup(
name="mbrl",
version=version,
author="Facebook AI Research",
description="A PyTorch library for model-based reinforcement learning research",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/facebookresearch/mbrl-lib",
packages=find_packages(),
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
install_requires=reqs_main,
extras_require={
"dev": reqs_main + reqs_dev,
},
include_package_data=True,
python_requires=">=3.8",
zip_safe=False,
)