Re: [PATCH v3 1/2] libselinux: add pyproject.toml file
Stephen Smalley <[email protected]> Wed, 29 Jul 2026 12:02:59 -0400
| Newsgroups | org.kernel.vger.selinux |
|---|---|
| Message-ID | <CAEjxPJ4diE9aXf6SGrSqZfs7Kh-pnv62L7AA9CP1Z3YdDSZHPQ@mail.gmail.com> |
On Wed, Jul 29, 2026 at 11:26 AM Cathy Hu <[email protected]> wrote: > > From: Stephen Smalley <[email protected]> > > Add a pyproject.toml file for the libselinux python bindings. > > Fixes: https://github.com/SELinuxProject/selinux/issues/505 > Signed-off-by: Stephen Smalley <[email protected]> Verified via https://github.com/SELinuxProject/selinux/tree/pyprojecttoml Acked-by: Stephen Smalley <[email protected]> > --- > same as v2 > libselinux/src/pyproject.toml | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 libselinux/src/pyproject.toml > > diff --git a/libselinux/src/pyproject.toml b/libselinux/src/pyproject.toml > new file mode 100644 > index 00000000..dfc44e81 > --- /dev/null > +++ b/libselinux/src/pyproject.toml > @@ -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 >