Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
7cba9c22
Commit
7cba9c22
authored
12 years ago
by
Donald Stufft
Browse files
Options
Downloads
Patches
Plain Diff
Properly Mock out the dependencies for building the docs
parent
000b6e2d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/conf.py
+5
-6
5 additions, 6 deletions
docs/conf.py
with
5 additions
and
6 deletions
docs/conf.py
+
5
−
6
View file @
7cba9c22
...
...
@@ -11,12 +11,13 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import
sys
,
os
import
os
import
sys
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
sys.path.insert(0, os.path.abspath('.'))
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'
.
.
'
))
# -- General configuration -----------------------------------------------------
...
...
@@ -255,10 +256,8 @@ class Mock(object):
def
__getattr__
(
cls
,
name
):
if
name
in
(
"
__file__
"
,
"
__path__
"
):
return
"
/dev/null
"
elif
name
[
0
]
==
name
[
0
].
upper
():
mockType
=
type
(
name
,
(),
{})
mockType
.
__module__
=
__name__
return
mockType
elif
name
in
(
"
__name__
"
,):
return
"
mocked
"
else
:
return
Mock
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment