Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 383644761
  • Loading branch information
RLaxDev authored and hbq1 committed Jul 8, 2021
1 parent 3566d85 commit af776aa
Show file tree
Hide file tree
Showing 8 changed files with 476 additions and 10 deletions.
431 changes: 431 additions & 0 deletions .pylintrc

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include README.md
include LICENSE
include requirements/*
include rlax/py.typed
1 change: 1 addition & 0 deletions requirements/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Placeholder
5 changes: 5 additions & 0 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
absl-py>=0.9.0
chex>=0.0.8
jax>=0.1.55
jaxlib>=0.1.37
numpy>=1.18.0
1 change: 1 addition & 0 deletions requirements/requirements_examples.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dm-env>=1.2
14 changes: 14 additions & 0 deletions rlax/_src/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2021 DeepMind Technologies Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
Empty file added rlax/py.typed
Empty file.
30 changes: 20 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
# ==============================================================================
"""Install script for setuptools."""

import os
from setuptools import find_namespace_packages
from setuptools import setup

_CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))


def _get_version():
with open('rlax/__init__.py') as fp:
Expand All @@ -28,29 +31,36 @@ def _get_version():
raise ValueError('`__version__` not defined in `rlax/__init__.py`')


def _parse_requirements(path):

with open(os.path.join(_CURRENT_DIR, path)) as f:
return [
line.rstrip()
for line in f
if not (line.isspace() or line.startswith('#'))
]


setup(
name='rlax',
version=_get_version(),
url='https://github.com/deepmind/rlax',
license='Apache 2.0',
author='DeepMind',
description=('A library of reinforcement learning building blocks in JAX.'),
long_description=open('README.md').read(),
long_description=open(os.path.join(_CURRENT_DIR, 'README.md')).read(),
long_description_content_type='text/markdown',
author_email='rlax-dev@google.com',
keywords='reinforcement-learning python machine learning',
packages=find_namespace_packages(exclude=['*_test.py']),
install_requires=[
'absl-py>=0.9.0',
'chex>=0.0.4',
'jax>=0.1.55',
'jaxlib>=0.1.37',
'dm-env>=1.2',
'numpy>=1.18.0',
],
install_requires=_parse_requirements(
os.path.join(_CURRENT_DIR, 'requirements', 'requirements.txt')),
tests_require=_parse_requirements(
os.path.join(_CURRENT_DIR, 'requirements', 'requirements-test.txt')),
zip_safe=False, # Required for full installation.
python_requires='>=3.6',
classifiers=[
'Development Status :: 3 - Alpha',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
Expand Down

0 comments on commit af776aa

Please sign in to comment.