-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (48 loc) · 1.79 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
52
53
54
55
56
57
import os
from setuptools import setup, find_packages
def _parse_requirements(path: str) -> list[str]:
"""Returns content of given requirements file."""
with open(os.path.join(path)) as file:
lst = [line.rstrip() for line in file
if not (line.isspace() or line.startswith("#"))]
return lst
_pwd = os.path.dirname(os.path.abspath(__file__))
_req = _parse_requirements(os.path.join(
_pwd, './', 'requirements.txt'))
_req_dev = _parse_requirements(os.path.join(
_pwd, './', 'requirements_dev.txt'))
_d = {}
with open('jit_env/version.py') as f:
exec(f.read(), _d)
try:
__version__ = _d['__version__']
except KeyError as e:
raise RuntimeError('Module versioning not found!') from e
with open('README.md') as f:
long_desc = f.read()
setup(
name='jit_env',
version=__version__,
description='A Jax interface for Reinforcement Learning environments.',
long_description=long_desc,
long_description_content_type='text/markdown',
author='Joery A. de Vries',
author_email="[email protected]",
keywords='reinforcement-learning python machine learning jax',
packages=find_packages(),
package_data={'jit_env': ['py.typed']},
url='https://github.com/joeryjoery/jit_env',
license='MIT',
python_requires='>=3.9',
install_requires=_req,
extras_require={'dev': _req_dev},
classifiers=[
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Testing :: Mocking',
'Topic :: Software Development :: Testing :: Unit'
]
)