Skip to contentSkip to conversation

libselinux: add pyproject.toml file

PATCH In review Cathy Hu 2 participants 5 messages Jul 29 SELinux security module

lore
Share & tools
lore

Cathy Hu

author
#0 lore raw

PATCH v3 1/2 libselinux: add pyproject.toml file

From: Stephen Smalley <[email protected]>

Add a pyproject.toml file for the libselinux python bindings.

---
same as v2

 libselinux/src/pyproject.toml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 libselinux/src/pyproject.toml
libselinux/src/pyproject.toml new file +24 -0
new file mode 100644
index 00000000..dfc44e81
@@ -0,0 +1,24 @@
+[build-system]
+requires = ["setuptools", "wheel"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "selinux"
+version = "3.11"
+description = "Python bindings for libselinux (SELinux userspace library)"
+readme = "../README.md"
+license = "libselinux-1.0"
+authors = [
+    { name = "SELinux Project", email = "[email protected]" }
+]
+classifiers = [
+    "Programming Language :: Python :: 3",
+    "Operating System :: POSIX :: Linux",
+    "Topic :: Security",
+]
+
+[project.urls]
+Homepage = "https://github.com/SELinuxProject/selinux"
+
+# The actual .so is produced by a custom build_ext (SWIG + libselinux.so),
+# driven from setup.py.
Signature · 1 line
2.54.0
author
#1 lore raw

PATCH v3 2/2 python/sepolicy: add a pyproject.toml file

From: Stephen Smalley <[email protected]>

Add a pyproject.toml file for the sepolicy python module. This required also updating setup.py to avoid defining author outside of pyproject.toml, and I further updated the authors to refer to the list like libselinux since Dan is enjoying retirement.

---
dropped scripts section

 python/sepolicy/pyproject.toml | 12 ++++++++++++
 python/sepolicy/setup.py       |  2 --
 2 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 python/sepolicy/pyproject.toml
python/sepolicy/pyproject.toml new file +12 -0
new file mode 100644
index 00000000..3dafd35f
@@ -0,0 +1,12 @@
+[build-system]
+requires = ["setuptools", "wheel"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "sepolicy"
+version = "3.11"
+description = "Python tools for SELinux policy analysis (sepolicy, sepolgen)"
+license = "GPL-2.0-or-later"
+authors = [
+    { name = "SELinux Project", email = "[email protected]" }
+]
python/sepolicy/setup.py +0 -2
index ca0396b5..5c4f2e5d 100644
@@ -8,8 +8,6 @@ setup(
     name="sepolicy",
     version="3.11",
     description="Python SELinux Policy Analyses bindings",
-    author="Daniel Walsh",
-    author_email="[email protected]",
     packages=[
         "sepolicy",
         "sepolicy.templates",
Signature · 1 line
2.54.0
maintainer Acked-by on v3 2/2
#2 lore raw

Re: [PATCH v3 2/2] python/sepolicy: add a pyproject.toml file

Quoted 10 lines · Cathy Hu

From: Stephen Smalley <[email protected]>

Add a pyproject.toml file for the sepolicy python module. This required also updating setup.py to avoid defining author outside of pyproject.toml, and I further updated the authors to refer to the list like libselinux since Dan is enjoying retirement.

Verified via https://github.com/SELinuxProject/selinux/tree/pyprojecttoml

Quoted 41 lines

---
dropped scripts section

 python/sepolicy/pyproject.toml | 12 ++++++++++++
 python/sepolicy/setup.py       |  2 --
 2 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 python/sepolicy/pyproject.toml
python/sepolicy/pyproject.toml new file +12 -0
new file mode 100644
index 00000000..3dafd35f
@@ -0,0 +1,12 @@
+[build-system]
+requires = ["setuptools", "wheel"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "sepolicy"
+version = "3.11"
+description = "Python tools for SELinux policy analysis (sepolicy, sepolgen)"
+license = "GPL-2.0-or-later"
+authors = [
+    { name = "SELinux Project", email = "[email protected]" }
+]
python/sepolicy/setup.py +0 -3
index ca0396b5..5c4f2e5d 100644
@@ -8,8 +8,6 @@ setup(
     name="sepolicy",
     version="3.11",
     description="Python SELinux Policy Analyses bindings",
-    author="Daniel Walsh",
-    author_email="[email protected]",
     packages=[
         "sepolicy",
         "sepolicy.templates",
--

2.54.0

maintainer
#3 lore raw

Re: [PATCH v3 2/2] python/sepolicy: add a pyproject.toml file

Quoted 10 lines · Stephen Smalley
Quoted 8 lines · Cathy Hu

From: Stephen Smalley <[email protected]>

Add a pyproject.toml file for the sepolicy python module. This required also updating setup.py to avoid defining author outside of pyproject.toml, and I further updated the authors to refer to the list like libselinux since Dan is enjoying retirement.

Quoted 6 lines
Quoted 2 lines

Verified via https://github.com/SELinuxProject/selinux/tree/pyprojecttoml

Merged.

maintainer Acked-by on v3 1/2
#4 lore raw
In reply to Cathy Hu
Quoted 7 lines · Cathy Hu

From: Stephen Smalley <[email protected]>

Add a pyproject.toml file for the libselinux python bindings.

Verified via https://github.com/SELinuxProject/selinux/tree/pyprojecttoml

Quoted 39 lines

---
same as v2

 libselinux/src/pyproject.toml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 libselinux/src/pyproject.toml
libselinux/src/pyproject.toml new file +24 -1
new file mode 100644
index 00000000..dfc44e81
@@ -0,0 +1,24 @@
+[build-system]
+requires = ["setuptools", "wheel"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "selinux"
+version = "3.11"
+description = "Python bindings for libselinux (SELinux userspace library)"
+readme = "../README.md"
+license = "libselinux-1.0"
+authors = [
+    { name = "SELinux Project", email = "[email protected]" }
+]
+classifiers = [
+    "Programming Language :: Python :: 3",
+    "Operating System :: POSIX :: Linux",
+    "Topic :: Security",
+]
+
+[project.urls]
+Homepage = "https://github.com/SELinuxProject/selinux"
+
+# The actual .so is produced by a custom build_ext (SWIG + libselinux.so),
+# driven from setup.py.
--

2.54.0