Skip to content

Commit

Permalink
use pip install in readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
MacHu-GWU committed Oct 17, 2018
1 parent b229533 commit 7a8d7b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions docfly/pkg/picage/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ def __init__(self, name, path=None, parent=None, is_single_file=None):

# is single file package
p = Path(Path(sp_dir, *chain).abspath + ".py")
print(1111, p)
if p.is_file() and p.exists():
self.path = p
self.is_single_file = True
return

# then has to be a directory having __init__.py file
p = Path(sp_dir, *chain)
print(1111, p)
if p.is_dir() and p.exists() and Path(p, "__init__.py").exists():
self.path = Path(sp_dir, *chain)
self.is_single_file = False
Expand Down
3 changes: 2 additions & 1 deletion readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
python:
pip_install: true
extra_requirements:
- docs
- docs

0 comments on commit 7a8d7b6

Please sign in to comment.