mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 15:02:01 +08:00
46c35610db
Fix dependency with python3-pkg-resources (it got removed). And add test.sh - Bump from 4.5.1 to 4.6.0 - Drop python3-pkg-resources dependency: setools uses 'from importlib import resources as pkg_resources' which is stdlib, not the external pkg_resources package - Update 010-no-gui.patch: pyproject.toml now manages script-files and package-data (was setup.py in 4.5.1); rewrite patch to target it - Update 030-remove-host-paths.patch: lib_dirs now uses list[str] type hint; fix hunk header line numbers to match new upstream layout - Add test.sh: verify core query classes (SELinuxPolicy, BoolQuery, TypeQuery, RoleQuery, UserQuery) are accessible Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
26 lines
681 B
Diff
26 lines
681 B
Diff
--- a/pyproject.toml
|
|
+++ b/pyproject.toml
|
|
@@ -48,8 +48,7 @@ optional-dependencies.test = ["tox"]
|
|
|
|
[tool.setuptools]
|
|
include-package-data = false
|
|
-script-files = ["apol",
|
|
- "sediff",
|
|
+script-files = ["sediff",
|
|
"seinfo",
|
|
"seinfoflow",
|
|
"sesearch",
|
|
@@ -57,10 +56,10 @@ script-files = ["apol",
|
|
"sechecker"]
|
|
|
|
[tool.setuptools.packages.find]
|
|
-include = ["setools*"]
|
|
+include = ["setools", "setools.*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
-"*" = ["*.css", "*.html", "perm_map", "py.typed"]
|
|
+"setools" = ["perm_map", "py.typed"]
|
|
|
|
[tool.setuptools.exclude-package-data]
|
|
"*" = ["*.c", "*.pyi", "*.pyx"]
|