forked from lava-nc/lava-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
35 lines (28 loc) · 1.23 KB
/
build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from pybuilder.core import use_plugin, init
use_plugin("python.core")
use_plugin("python.sphinx")
use_plugin('python.install_dependencies')
name = "Lava"
default_task = ["sphinx_generate_documentation"]
version = "0.1.0"
summary = "A Software Framework for Neuromorphic Computing"
url = "https://lava-nc.org"
license = "BSD-3-Clause"
@init
def set_properties(project):
project.set_property("dir_source_main_python", "../lava")
project.set_property("dir_source_unittest_python", "../tests")
project.set_property("dir_source_main_scripts", "../scripts")
project.set_property("dir_docs", "./")
project.set_property("sphinx_config_path", "./")
project.set_property("sphinx_source_dir", "./")
project.set_property("sphinx_output_dir", "./_build")
project.set_property("sphinx_doc_author", "Lava Project")
project.set_property("sphinx_doc_builder", "html")
project.set_property("sphinx_project_name", project.name)
project.set_property("sphinx_project_version", project.version)
project.depends_on_requirements("requirements.txt")
project.build_depends_on("sphinx")
project.plugin_depends_on("sphinx_rtd_theme")
project.plugin_depends_on("sphinx_tabs")
project.plugin_depends_on("nbsphinx")