]> git.ipfire.org Git - thirdparty/nftables.git/commit
py: use setup.cfg to configure setuptools
authorJeremy Sowden <jeremy@azazel.net>
Mon, 31 Jul 2023 11:40:23 +0000 (12:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Sep 2025 20:36:32 +0000 (22:36 +0200)
commit4d64a2599812149d08305da03f145c71df2695a9
tree40ba657479e92dd7e2ea0bc9552be85d8ecd434a
parent4627157041c39b47c94bbb31f5846f1bba36a102
py: use setup.cfg to configure setuptools

commit 8ae4dc1f40aa04e499d941faca45fe7e914f0b4d upstream.

Setuptools has had support for declarative configuration for several
years.  To quote their documentation:

  Setuptools allows using configuration files (usually setup.cfg) to
  define a package’s metadata and other options that are normally
  supplied to the setup() function (declarative config).

  This approach not only allows automation scenarios but also reduces
  boilerplate code in some cases.

Additionally, this allows us to introduce support for PEP-517-compatible
build-systems.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
py/Makefile.am
py/setup.cfg [new file with mode: 0644]
py/setup.py