-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (46 loc) · 1.64 KB
/
setup.py
File metadata and controls
59 lines (46 loc) · 1.64 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
58
59
import os
from setuptools import setup, find_packages
try:
from pypandoc import convert, convert_text
def read_md(file_path):
return convert_text(file_path, to='rst', format='markdown')
except ImportError:
convert = None
print(
"warning: pypandoc module not found, "
"could not convert Asciidoc to RST"
)
def read_md(file_path):
with open(file_path, 'r') as f:
return f.read()
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# README = os.path.join(os.path.dirname(__file__), 'README.md')
def strip_comments(l):
return l.split('#', 1)[0].strip()
def reqs(*f):
return list(filter(None, [strip_comments(l) for l in open(
os.path.join(os.getcwd(), *f)).readlines()]))
setup(
name='pernaf',
version="0.0.14",
author="Simon Hirlaender",
author_email="simon.hirlaender@cern.ch",
description="An implementation of the Normalized Advantage Function Reinforcement Learning Algorithm with "
"Prioritized Experience Replay",
url = 'https://github.com/MathPhysSim/PER-NAF',
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=['tensorflow==2.7.2', 'numpy', 'gym'],
packages=find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6'
)