-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
35 lines (27 loc) · 867 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
from pathlib import Path
from setuptools import find_packages
from setuptools import setup
dir_path = Path(__file__).resolve().parent
with dir_path.joinpath('easyrl').joinpath('version.py').open('r') as fp:
exec(fp.read())
def read_requirements_file(filename):
req_file = dir_path.joinpath(filename)
with req_file.open('r') as f:
return [line.strip() for line in f]
packages = find_packages()
easyrl_pkgs = []
for p in packages:
if p == 'easyrl' or p.startswith('easyrl.'):
easyrl_pkgs.append(p)
setup(
name='easyrl',
version=__version__,
author='Tao Chen',
url='https://github.com/taochenshh/easyrl.git',
license='MIT',
packages=easyrl_pkgs,
install_requires=read_requirements_file('requirements.txt'),
entry_points={
'console_scripts': ['hpsweep=easyrl.utils.hp_sweeper:main']
}
)