Skip to content

Commit 75a5907

Browse files
committed
Change PYBUILD to use pyproject.toml
1 parent a1dc098 commit 75a5907

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

debian/control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Section: python
66
Priority: optional
77
Build-Depends: debhelper (>= 11),
88
Build-Depends-Indep: dh-python,
9+
pybuild-plugin-pyproject,
910
python3-all,
1011
python3-decorator (>= 4.0.10),
1112
python3-pytest,
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Index: python3-prometheus-client/pyproject.toml
2+
===================================================================
3+
--- python3-prometheus-client.orig/pyproject.toml
4+
+++ python3-prometheus-client/pyproject.toml
5+
@@ -47,3 +47,10 @@ Documentation = "https://prometheus.gith
6+
7+
[tool.setuptools.package-data]
8+
prometheus_client = ['py.typed']
9+
+
10+
+[tool.setuptools.data-files]
11+
+"tests" = [
12+
+ "tests/certs/*",
13+
+ "tests/proc/stat",
14+
+ "tests/proc/584/*",
15+
+ "tests/proc/26231/limits",
16+
+ "tests/proc/26231/stat",
17+
+ "tests/proc/26231/fd/*"
18+
+]
19+
+
20+
+[tool.setuptools.packages.find]
21+
+where = ["."]
22+
+exclude = ["debian"]

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
0001-import-unvendorized-decorator.patch
2+
0002-Update-pyproject.toml.patch

0 commit comments

Comments
 (0)