Skip to content

Commit e578fb8

Browse files
authored
Merge pull request #61 from venthur/mkdocs
moved from sphinx to mkdocs
2 parents c847c15 + 68d7dcd commit e578fb8

16 files changed

+87
-199
lines changed

.readthedocs.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
version: 2
22

3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.11"
7+
8+
mkdocs:
9+
configuration: mkdocs.yml
10+
311
python:
4-
version: 3.8
512
install:
13+
- requirements: requirements.txt
14+
- requirements: requirements-dev.txt
615
- path: .

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [unreleased] - xxxx
44

5+
* replaced sphinx with mkdocs
6+
* fixed some documentation issues
57
* Added Python 3.12 to test suite
68

79
## [4.0.2] - 2023-10-22

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ PY = python3
33
VENV = venv
44
BIN=$(VENV)/bin
55

6-
DOCS_SRC = docs
7-
DOCS_OUT = $(DOCS_SRC)/_build
6+
DOCS_OUT = site
87

98

109
ifeq ($(OS), Windows_NT)
@@ -50,7 +49,7 @@ release: $(VENV) build
5049

5150
.PHONY: docs
5251
docs: $(VENV)
53-
$(BIN)/sphinx-build $(DOCS_SRC) $(DOCS_OUT)
52+
$(BIN)/mkdocs build
5453

5554
.PHONY: clean
5655
clean:

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# python-debianbts
22

3-
Python-debianbts is a Python library that allows for querying Debian's [Bug
4-
Tracking System](https://bugs.debian.org). Since 2011, python-debianbts is used
5-
by Debian's `reportbug` to query the Bug Tracking System and has currently
6-
(2017-11) roughly [190.000 installations](https://qa.debian.org/popcon.php?package=python-debianbts).
3+
python-debianbts is a Python library that allows for querying Debian's [Bug
4+
Tracking System](https://bugs.debian.org) using its SOAP interface. With this
5+
package you can query for bugs of a particular package, get the status of a bug
6+
read the messages of bug reports and more.
7+
8+
Since 2011, python-debianbts is used by Debian's `reportbug` to query the Bug
9+
Tracking System and has currently (2024) roughly [200.000
10+
installations](https://qa.debian.org/popcon.php?package=python-debianbts).
711

812
Online [documentation][] is available on readthedocs.
913

@@ -12,10 +16,14 @@ Online [documentation][] is available on readthedocs.
1216

1317
## Installing
1418

19+
python-debianbts is available on [Debian][], on every other platform it can be
20+
installed via pip:
21+
1522
```bash
1623
pip install python-debianbts
1724
```
1825

26+
[Debian]: https://debian.org
1927

2028
## Quickstart
2129

debianbts/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Entry point for the (not yet implemented cli."""
1+
"""Entry point for the (not yet implemented) cli."""
22

33

44
import logging

debianbts/debianbts.py

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,12 @@ def get_bug_log(
297297
"""Get Buglogs.
298298
299299
A buglog is a dictionary with the following mappings:
300-
* "header" => string
301-
* "body" => string
302-
* "attachments" => list
303-
* "msg_num" => int
304-
* "message" => email.message.Message
300+
301+
* "header": `string`
302+
* "body": `string`
303+
* "attachments": `list`
304+
* "msg_num": `int`
305+
* "message": `email.message.Message`
305306
306307
Parameters
307308
----------
@@ -374,25 +375,25 @@ def get_bugs(
374375
375376
The conditions are defined by the keyword arguments.
376377
377-
Arguments
378-
---------
379-
kwargs
378+
Parameters
379+
----------
380+
**kwargs
380381
Possible keywords are:
381-
* "package": bugs for the given package
382-
* "submitter": bugs from the submitter
383-
* "maint": bugs belonging to a maintainer
384-
* "src": bugs belonging to a source package
385-
* "severity": bugs with a certain severity
386-
* "status": can be either "done", "forwarded", or "open"
387-
* "tag": see http://www.debian.org/Bugs/Developer#tags for
388-
available tags
389-
* "owner": bugs which are assigned to `owner`
390-
* "bugs": takes single int or list of bugnumbers, filters the list
391-
according to given criteria
392-
* "correspondent": bugs where `correspondent` has sent a mail to
393-
* "archive": takes a string: "0" (unarchived), "1" (archived) or
394-
"both" (un- and archived). if omitted, only returns un-archived
395-
bugs.
382+
383+
* `package`: bugs for the given package
384+
* `submitter`: bugs from the submitter
385+
* `maint`: bugs belonging to a maintainer
386+
* `src`: bugs belonging to a source package
387+
* `severity`: bugs with a certain severity
388+
* `status`: can be either "done", "forwarded", or "open"
389+
* `tag`: see http://www.debian.org/Bugs/Developer#tags for available
390+
tags
391+
* `owner`: bugs which are assigned to `owner`
392+
* `bugs`: takes single int or list of bugnumbers, filters the list
393+
according to given criteria
394+
* `correspondent`: bugs where `correspondent` has sent a mail to
395+
* `archive`: takes a string: "0" (unarchived), "1" (archived) or "both"
396+
(un- and archived). if omitted, only returns un-archived bugs.
396397
397398
Returns
398399
-------

docs/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
::: debianbts.debianbts
2+
3+
::: debianbts.version
4+
5+
::: debianbts.__main__

docs/api.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/conf.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

docs/index.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

mkdocs.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
site_name: python-debianbts
2+
site_url: https://python-debianbts.readthedocs.io/
3+
repo_url: https://github.com/venthur/python-debianbts
4+
repo_name: venthur/python-debianbts
5+
6+
nav:
7+
- Home: index.md
8+
- API: api.md
9+
10+
theme:
11+
name: material
12+
highlightjs: true
13+
14+
markdown_extensions:
15+
- pymdownx.superfences
16+
17+
plugins:
18+
- search:
19+
- mkdocstrings:
20+
handlers:
21+
python:
22+
options:
23+
docstring_style: numpy
24+
show_root_heading: true

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ debianbts = "debianbts.__main__:main"
3434
[project.optional-dependencies]
3535
dev = [
3636
"build",
37-
"sphinx",
37+
"mkdocs",
38+
"mkdocs-material",
39+
"mkdocstrings[python]",
3840
"pytest",
3941
"pytest-cov",
4042
"pytest-xdist",

requirements-dev.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
build==1.2.1
2-
sphinx==7.3.7
2+
mkdocs==1.6.0
3+
mkdocs-material==9.5.20
4+
mkdocstrings[python]==0.25.0
35
pytest==8.2.0
46
pytest-cov==5.0.0
57
pytest-xdist==3.6.1

0 commit comments

Comments
 (0)