Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
764fb35e
Commit
764fb35e
authored
Oct 25, 2020
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always install the required version of breathe
parent
e1bdc0ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
doc/build.py
doc/build.py
+2
-15
No files found.
doc/build.py
View file @
764fb35e
...
@@ -10,16 +10,6 @@ versions = ['1.0.0', '1.1.0', '2.0.0', '3.0.2', '4.0.0', '4.1.0', '5.0.0', '5.1.
...
@@ -10,16 +10,6 @@ versions = ['1.0.0', '1.1.0', '2.0.0', '3.0.2', '4.0.0', '4.1.0', '5.0.0', '5.1.
def
pip_install
(
package
,
commit
=
None
,
**
kwargs
):
def
pip_install
(
package
,
commit
=
None
,
**
kwargs
):
"Install package using pip."
"Install package using pip."
min_version
=
kwargs
.
get
(
'min_version'
)
if
min_version
:
from
pkg_resources
import
get_distribution
,
DistributionNotFound
try
:
installed_version
=
get_distribution
(
os
.
path
.
basename
(
package
)).
version
if
LooseVersion
(
installed_version
)
>=
min_version
:
print
(
'{} {} already installed'
.
format
(
package
,
min_version
))
return
except
DistributionNotFound
:
pass
if
commit
:
if
commit
:
package
=
'git+https://github.com/{0}.git@{1}'
.
format
(
package
,
commit
)
package
=
'git+https://github.com/{0}.git@{1}'
.
format
(
package
,
commit
)
print
(
'Installing {0}'
.
format
(
package
))
print
(
'Installing {0}'
.
format
(
package
))
...
@@ -56,8 +46,7 @@ def create_build_env(dirname='virtualenv'):
...
@@ -56,8 +46,7 @@ def create_build_env(dirname='virtualenv'):
# compatible with Breathe.
# compatible with Breathe.
pip_install
(
'sphinx-doc/sphinx'
,
'12b83372ac9316e8cbe86e7fed889296a4cc29ee'
)
pip_install
(
'sphinx-doc/sphinx'
,
'12b83372ac9316e8cbe86e7fed889296a4cc29ee'
)
pip_install
(
'michaeljones/breathe'
,
pip_install
(
'michaeljones/breathe'
,
'129222318f7c8f865d2631e7da7b033567e7f56a'
,
'129222318f7c8f865d2631e7da7b033567e7f56a'
)
min_version
=
'4.2.0'
)
def
build_docs
(
version
=
'dev'
,
**
kwargs
):
def
build_docs
(
version
=
'dev'
,
**
kwargs
):
doc_dir
=
kwargs
.
get
(
'doc_dir'
,
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)))
doc_dir
=
kwargs
.
get
(
'doc_dir'
,
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)))
...
@@ -102,9 +91,7 @@ def build_docs(version='dev', **kwargs):
...
@@ -102,9 +91,7 @@ def build_docs(version='dev', **kwargs):
raise
CalledProcessError
(
p
.
returncode
,
cmd
)
raise
CalledProcessError
(
p
.
returncode
,
cmd
)
html_dir
=
os
.
path
.
join
(
work_dir
,
'html'
)
html_dir
=
os
.
path
.
join
(
work_dir
,
'html'
)
main_versions
=
reversed
(
versions
[
-
3
:])
main_versions
=
reversed
(
versions
[
-
3
:])
# Always use sphinx-build from virtualenv because the system one may be
check_call
([
'sphinx-build'
,
# incompatible with the required version of breathe.
check_call
([
os
.
path
.
join
(
'virtualenv'
,
'bin'
,
'sphinx-build'
),
'-Dbreathe_projects.format='
+
os
.
path
.
abspath
(
doxyxml_dir
),
'-Dbreathe_projects.format='
+
os
.
path
.
abspath
(
doxyxml_dir
),
'-Dversion='
+
version
,
'-Drelease='
+
version
,
'-Dversion='
+
version
,
'-Drelease='
+
version
,
'-Aversion='
+
version
,
'-Aversions='
+
','
.
join
(
main_versions
),
'-Aversion='
+
version
,
'-Aversions='
+
','
.
join
(
main_versions
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment