aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-08-02 15:27:28 -0300
committerGuido Günther <agx@sigxcpu.org>2017-08-02 15:27:28 -0300
commit889cf65e79d0c8b891eca5ea4f4b3051f1af9f54 (patch)
tree0f905bc30609459631ae8284d2590469ce58f516
parentdf7f0289851ac6c9cb106e5dbd62dc3fbbf113aa (diff)
Use pydoctor to generate apidocs
-rw-r--r--.pydoctor.cfg4
-rw-r--r--Makefile3
-rw-r--r--debian/control1
-rw-r--r--setup.cfg8
4 files changed, 7 insertions, 9 deletions
diff --git a/.pydoctor.cfg b/.pydoctor.cfg
new file mode 100644
index 00000000..ede8e513
--- /dev/null
+++ b/.pydoctor.cfg
@@ -0,0 +1,4 @@
+projectname: git-buildpackage
+projecturl: https://honk.sigxcpu.org/piki/projects/git-buildpackage/
+htmloutput: build/apidocs
+packages: gbp,tests/doctests/
diff --git a/Makefile b/Makefile
index 5ac780c1..80d116ff 100644
--- a/Makefile
+++ b/Makefile
@@ -21,9 +21,10 @@ syntax-check:
docs:
make -C docs
+ make apidocs
apidocs:
mkdir -p build
- epydoc -v --config=setup.cfg
+ pydoctor -v --config=.pydoctor.cfg
.PHONY: docs
diff --git a/debian/control b/debian/control
index b5ba10a3..8f3a2876 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Build-Depends:
gtk-doc-tools,
libdistro-info-perl,
perl,
+ python-pydoctor,
python3 (>= 3.5),
python3-coverage,
python3-dateutil,
diff --git a/setup.cfg b/setup.cfg
index 57bf8101..74e3b5e8 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -5,14 +5,6 @@ cover-package=gbp
cover-erase=1
exe=1
-[epydoc]
-name = git-buildpackage
-sourcecode = no
-url = https://honk.sigxcpu.org/piki/projects/git-buildpackage/
-target = build/apidocs/
-fail-on = docstring_warning
-modules = gbp, tests/test_*.py
-
[flake8]
# E501: ignore line length
# E265: block comment should start with '# '