Skip to content

Commit

Permalink
Fix packaging and documentation (#97)
Browse files Browse the repository at this point in the history
* Fix packaging

* Do not add source to PYTHONPATH to build documentation

This requires installing the code to build the docs.

* Exclude tests
  • Loading branch information
astrojuanlu committed Jul 20, 2021
1 parent e278526 commit a6eeb92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 0 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import inspect


sys.path.insert(0, os.path.join(os.path.abspath(os.path.dirname(__file__)), '../'))

# -- readthedocs -------------------------------------------------------------
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

Expand Down
18 changes: 2 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from setuptools import setup, Extension
from setuptools import setup, Extension, find_packages

os.environ['CFLAGS'] = '-std=c++11'

Expand Down Expand Up @@ -62,21 +62,7 @@
"scipy",
"structlog",
"colorama"],
packages=["d3rlpy",
"d3rlpy.algos",
"d3rlpy.algos.torch",
"d3rlpy.dynamics",
"d3rlpy.dynamics.torch",
"d3rlpy.envs",
"d3rlpy.iterators",
"d3rlpy.metrics",
"d3rlpy.models",
"d3rlpy.models.torch",
"d3rlpy.online",
"d3rlpy.ope",
"d3rlpy.ope.torch",
"d3rlpy.preprocessing",
"d3rlpy.wrappers"],
packages=find_packages(exclude=["tests*"]),
python_requires=">=3.6.0",
zip_safe=False,
package_data={'d3rlpy': ['*.pyx',
Expand Down

0 comments on commit a6eeb92

Please sign in to comment.