commit:     9b519c87fc85703e1fbe2861883ed8864197abbd
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 23 17:32:18 2025 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Thu Dec 25 08:38:51 2025 +0000
URL:        https://gitweb.gentoo.org/proj/webapp-config.git/commit/?id=9b519c87

Add pyproject.toml

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 pyproject.toml | 24 ++++++++++++++++++++++++
 setup.py       | 18 +++++++-----------
 2 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..e5e4b71
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,24 @@
+[build-system]
+requires = ["setuptools"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "webapp-config"
+dynamic = ["version"]
+description = "Python script for managing the deployment of web-based 
applications"
+license = "GPL-2.0-only"
+authors = [
+    { name = "Stuart Herbert", email = "[email protected]"},
+    { name = "Renat Lumpau", email = "[email protected]" },
+    { name = "Gunnar Wrobel", email = "[email protected]" },
+    { name = "Devan Franchini", email = "[email protected]" },
+]
+
+[project.urls]
+Repository = "https://gitweb.gentoo.org/proj/webapp-config.git/";
+Documentation = "https://wiki.gentoo.org/wiki/Webapp-config";
+
+[tool.setuptools]
+packages.find.include = ["WebappConfig"]
+packages.find.exclude = ["*tests", "*tests*"]
+include-package-data = false
\ No newline at end of file

diff --git a/setup.py b/setup.py
index ddd4a9d..7b2b8de 100755
--- a/setup.py
+++ b/setup.py
@@ -1,21 +1,17 @@
 #!/usr/bin/env python
 
 import sys
-
-from distutils.core import setup
+import setuptools
 
 # this affects the names of all the directories we do stuff with
 sys.path.insert(0, './')
 from WebappConfig.version import WCVERSION
 
+def get_version():
+      return WCVERSION
 
-setup(name          = 'webapp-config',
-      version       = WCVERSION,
-      description   = 'Python script for managing the deployment of web-based 
applications',
-      author        = 'Stuart Herbert, Renat Lumpau, Gunnar Wrobel, Devan 
Franchini',
-      author_email  = '[email protected]',
-      url           = 
'http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=summary',
-      packages      = ['WebappConfig'],
+setuptools.setup(
+      name          = 'webapp-config',
+      version       = get_version(),
       scripts       = ['sbin/webapp-config', 'sbin/webapp-cleaner'],
-      license       = 'GPL',
-      )
+)

Reply via email to