File: wheel-exclude-test-compatibility.patch

package info (click to toggle)
python-libais 0.17%2Bgit.20190917.master.e464cf8-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,828 kB
  • sloc: cpp: 56,058; python: 11,979; makefile: 537; sh: 466
file content (26 lines) | stat: -rw-r--r-- 757 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Colin Watson <cjwatson@debian.org>
Date: Sun, 13 Jul 2025 00:36:27 +0200
Subject: Exclude test/compatibility/ from wheel

A built wheel of this packages includes `test/compatibility/*.py`, which
is namespace pollution and doesn't seem to be intentional.  Remove it.

Forwarded: https://github.com/schwehr/libais/pull/252
Last-Update: 2025-07-13
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index ef7e9a7..7da3888 100755
--- a/setup.py
+++ b/setup.py
@@ -108,7 +108,7 @@ setup(
   },
 
   ext_modules=[AIS_MODULE],
-  packages=find_packages(exclude=['test']),
+  packages=find_packages(exclude=['test', 'test.*']),
   install_requires=['six'],
   extras_require={
       'tests': tests_require,