Skip to content

Commit 3fa4c16

Browse files
feat: update python-tinycss to 0.4-8
1 parent 1c6cba2 commit 3fa4c16

File tree

8 files changed

+82
-14
lines changed

8 files changed

+82
-14
lines changed

debian/changelog

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
python-tinycss (0.4-8) unstable; urgency=medium
2+
3+
* Team upload.
4+
* Drop build-dependency on python3-pytest-flake8 (see #1068502).
5+
6+
-- Colin Watson <[email protected]> Sun, 23 Mar 2025 21:03:59 +0000
7+
8+
python-tinycss (0.4-7) unstable; urgency=medium
9+
10+
* Team upload.
11+
* Fix documentation build for Sphinx 8.0 (closes: #1090163).
12+
* Use pybuild-plugin-pyproject.
13+
* Run tests during build.
14+
* Enable autopkgtest-pkg-pybuild.
15+
* Use dh-sequence-python3 and dh-sequence-sphinxdoc.
16+
* Simplify some debhelper overrides.
17+
18+
-- Colin Watson <[email protected]> Tue, 17 Dec 2024 14:22:33 +0000
19+
120
python-tinycss (0.4-6) unstable; urgency=medium
221

322
[ Debian Janitor ]

debian/clean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
docs/.build/
12
tinycss.egg-info/SOURCES.txt
23
tinycss/speedups.c

debian/control

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@ Maintainer: Debian Python Team <[email protected]>
55
Uploaders: Michael Fladischer <[email protected]>,
66
Felix Krull <[email protected]>
77
Build-Depends: debhelper-compat (= 13),
8-
dh-python,
8+
dh-sequence-python3,
9+
dh-sequence-sphinxdoc,
910
cython3,
11+
pybuild-plugin-pyproject,
1012
python3-all-dev,
13+
python3-pytest <!nocheck>,
14+
python3-pytest-cov <!nocheck>,
1115
python3-setuptools,
1216
python3-sphinx
1317
Standards-Version: 3.9.8
1418
Homepage: https://github.com/Kozea/tinycss
1519
Vcs-Browser: https://salsa.debian.org/python-team/packages/python-tinycss
1620
Vcs-Git: https://salsa.debian.org/python-team/packages/python-tinycss.git
17-
18-
21+
Testsuite: autopkgtest-pkg-pybuild
1922

2023
Package: python3-tinycss
2124
Architecture: any
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From: Colin Watson <[email protected]>
2+
Date: Tue, 17 Dec 2024 14:09:59 +0000
3+
Subject: Remove pytest flake8 and isort configuration
4+
5+
`pytest-isort` isn't currently packaged in Debian, and running
6+
`pytest-flake8` as a downstream distributor is inconvenient.
7+
8+
Last-Update: 2024-12-17
9+
---
10+
setup.cfg | 6 +-----
11+
1 file changed, 1 insertion(+), 5 deletions(-)
12+
13+
diff --git a/setup.cfg b/setup.cfg
14+
index 2c35592..5c4105e 100644
15+
--- a/setup.cfg
16+
+++ b/setup.cfg
17+
@@ -9,12 +9,8 @@ upload-dir = docs/_build/html
18+
test = pytest
19+
20+
[tool:pytest]
21+
-addopts = --flake8 --isort --cov --ignore=test/cairosvg_reference
22+
+addopts = --cov --ignore=test/cairosvg_reference
23+
norecursedirs = dist .cache .git build *.egg-info .eggs venv cairosvg_reference
24+
-flake8-ignore = docs/conf.py ALL
25+
-isort_ignore =
26+
- docs/conf.py
27+
- setup.py
28+
29+
[egg_info]
30+
tag_build =

debian/patches/series

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx-8.0.patch
2+
remove-pytest-flake8-isort.patch

debian/patches/sphinx-8.0.patch

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
From: Colin Watson <[email protected]>
2+
Date: Tue, 17 Dec 2024 14:00:23 +0000
3+
Subject: Fix documentation build for Sphinx 8.0
4+
5+
Bug-Debian: https://bugs.debian.org/1090163
6+
Last-Update: 2024-12-17
7+
---
8+
docs/conf.py | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/docs/conf.py b/docs/conf.py
12+
index fa7da0a..609e398 100644
13+
--- a/docs/conf.py
14+
+++ b/docs/conf.py
15+
@@ -249,4 +249,4 @@ texinfo_documents = [
16+
17+
18+
# Example configuration for intersphinx: refer to the Python standard library.
19+
-intersphinx_mapping = {'http://docs.python.org/': None}
20+
+intersphinx_mapping = {'python': ('http://docs.python.org/', None)}

debian/pybuild.testfiles

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tinycss/tests

debian/rules

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,12 @@
44
#export DH_VERBOSE=1
55

66
export PYBUILD_NAME=tinycss
7-
# Disable tests because not all dependencies have been packaged yet:
8-
# * pytest-flake8
9-
# * pytest isort
10-
export PYBUILD_DISABLE=test
7+
export PYBUILD_TEST_ARGS=tests
118

129
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
1310

1411
%:
15-
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
12+
dh $@ --buildsystem=pybuild
1613

17-
override_dh_auto_build:
18-
dh_auto_build
14+
execute_after_dh_auto_build:
1915
PYTHONPATH=. python3 -m sphinx -b html -d docs/.build/.doctrees -N docs docs/.build/html
20-
21-
override_dh_clean:
22-
rm -rf docs/.build
23-
dh_clean

0 commit comments

Comments
 (0)