File tree 5 files changed +42
-5
lines changed
5 files changed +42
-5
lines changed Original file line number Diff line number Diff line change
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version : 2
7
+
8
+ # Set the version of Python and other tools you might need
9
+ build :
10
+ os : ubuntu-20.04
11
+ tools :
12
+ python : " 3.7"
13
+ # You can also specify other tool versions:
14
+ # nodejs: "16"
15
+ # rust: "1.55"
16
+ # golang: "1.17"
17
+
18
+ # Build documentation in the docs/ directory with Sphinx
19
+ sphinx :
20
+ configuration : docs/source/conf.py
21
+
22
+ # If using Sphinx, optionally build your docs in additional formats such as PDF
23
+ # formats:
24
+ # - pdf
25
+
26
+ # Optionally declare the Python requirements required to build your docs
27
+ python :
28
+ install :
29
+ - requirements : requirements.txt
30
+ - requirements : docs/requirements.txt
Original file line number Diff line number Diff line change 1
1
sphinx == 3.5.4
2
2
recommonmark == 0.6.0
3
3
furo == 2021.4.11b34
4
- git+https://github.com/Oneflow-Inc/vision .git
4
+ git+https://github.com/Oneflow-Inc/libai .git
5
5
--pre
6
6
-f https://staging.oneflow.info/branch/master/cpu
7
7
oneflow
Original file line number Diff line number Diff line change 13
13
import os
14
14
import sys
15
15
16
+ import libai # noqa
17
+
16
18
sys .path .insert (0 , os .path .abspath ("." ))
17
19
18
20
# -- Project information -----------------------------------------------------
55
57
# The theme to use for HTML and HTML Help pages. See the documentation for
56
58
# a list of builtin themes.
57
59
#
58
- html_theme = "sphinx_rtd_theme "
60
+ html_theme = "furo "
59
61
60
62
61
63
def setup (app ):
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ hydra-core
6
6
nltk
7
7
numpy
8
8
omegaconf
9
- oneflow >= 0.6.0
10
9
Pygments
11
10
PyYAML
12
11
jieba
Original file line number Diff line number Diff line change 17
17
import subprocess
18
18
import sys
19
19
20
- import pybind11
21
20
from setuptools import Extension , find_packages , setup
22
21
23
22
version = "0.0.1.3"
@@ -66,6 +65,13 @@ def write_version_file():
66
65
"black==21.4b2" ,
67
66
]
68
67
68
+
69
+ def get_pybind11 ():
70
+ import pybind11 as pb
71
+
72
+ return pb
73
+
74
+
69
75
extensions = [
70
76
Extension (
71
77
"libai.data.data_utils.helpers" ,
@@ -78,7 +84,7 @@ def write_version_file():
78
84
"-fPIC" ,
79
85
"-fdiagnostics-color" ,
80
86
],
81
- include_dirs = [pybind11 .get_include ()],
87
+ include_dirs = [get_pybind11 () .get_include ()],
82
88
),
83
89
]
84
90
You can’t perform that action at this time.
0 commit comments