Skip to content

Commit 1b0f46d

Browse files
committed
Merge branch 'master' into drop-pysimplesoap
2 parents 14add1a + e578fb8 commit 1b0f46d

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
@@ -275,11 +275,12 @@ def get_bug_log(
275275
"""Get Buglogs.
276276
277277
A buglog is a dictionary with the following mappings:
278-
* "header" => string
279-
* "body" => string
280-
* "attachments" => list
281-
* "msg_num" => int
282-
* "message" => email.message.Message
278+
279+
* "header": `string`
280+
* "body": `string`
281+
* "attachments": `list`
282+
* "msg_num": `int`
283+
* "message": `email.message.Message`
283284
284285
Parameters
285286
----------
@@ -349,25 +350,25 @@ def get_bugs(
349350
350351
The conditions are defined by the keyword arguments.
351352
352-
Arguments
353-
---------
354-
kwargs
353+
Parameters
354+
----------
355+
**kwargs
355356
Possible keywords are:
356-
* "package": bugs for the given package
357-
* "submitter": bugs from the submitter
358-
* "maint": bugs belonging to a maintainer
359-
* "src": bugs belonging to a source package
360-
* "severity": bugs with a certain severity
361-
* "status": can be either "done", "forwarded", or "open"
362-
* "tag": see http://www.debian.org/Bugs/Developer#tags for
363-
available tags
364-
* "owner": bugs which are assigned to `owner`
365-
* "bugs": takes single int or list of bugnumbers, filters the list
366-
according to given criteria
367-
* "correspondent": bugs where `correspondent` has sent a mail to
368-
* "archive": takes a string: "0" (unarchived), "1" (archived) or
369-
"both" (un- and archived). if omitted, only returns un-archived
370-
bugs.
357+
358+
* `package`: bugs for the given package
359+
* `submitter`: bugs from the submitter
360+
* `maint`: bugs belonging to a maintainer
361+
* `src`: bugs belonging to a source package
362+
* `severity`: bugs with a certain severity
363+
* `status`: can be either "done", "forwarded", or "open"
364+
* `tag`: see http://www.debian.org/Bugs/Developer#tags for available
365+
tags
366+
* `owner`: bugs which are assigned to `owner`
367+
* `bugs`: takes single int or list of bugnumbers, filters the list
368+
according to given criteria
369+
* `correspondent`: bugs where `correspondent` has sent a mail to
370+
* `archive`: takes a string: "0" (unarchived), "1" (archived) or "both"
371+
(un- and archived). if omitted, only returns un-archived bugs.
371372
372373
Returns
373374
-------

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.

0 commit comments

Comments
 (0)