-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·57 lines (47 loc) · 1.58 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·57 lines (47 loc) · 1.58 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
import setuptools
from codecs import open
from os import path
def get_version() -> str:
# https://packaging.python.org/guides/single-sourcing-package-version/
init = open(os.path.join("cmorl", "__init__.py"), "r").read().split()
return init[init.index("__version__") + 2][1:-1]
import os
from setuptools import setup, find_packages
import setuptools
here = path.abspath(path.dirname(__file__))
requires_list = []
with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
for line in f:
requires_list.append(str(line))
extras = {}
all_deps = []
for group_name in extras:
all_deps += extras[group_name]
extras['all'] = all_deps
long_description = 'TODO.'
setup(
name='cmorl',
version=get_version(),
description='Safe and Balanced: A Framework for Constrained Multi-Objective Reinforcement Learning',
long_description=long_description,
author="authors",
author_email='email',
license='MIT',
packages=[package for package in find_packages()
if package.startswith('node')],
zip_safe=False,
install_requires=requires_list,
extras_require=extras,
python_requires=">=3.8",
# PyPI package information.
classifiers=["Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
]
)