]> www.dolda2000.com Git - ashd.git/commitdiff
python: Replace setup.py with a pyproject.toml. master
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 8 Apr 2026 01:36:30 +0000 (03:36 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 8 Apr 2026 01:36:30 +0000 (03:36 +0200)
python/.gitignore
python/pyproject.toml [new file with mode: 0644]
python/setup.py [deleted file]

index 21e5002165dc026d68713608b64c3e7cb1c05523..ed38e693796a59284cd3572ed3333766744e7b93 100644 (file)
@@ -1,3 +1,5 @@
 *.pyc
 /build
+/dist
+/ashd_py3.egg-info
 /ashd/htlib.so
diff --git a/python/pyproject.toml b/python/pyproject.toml
new file mode 100644 (file)
index 0000000..86beffd
--- /dev/null
@@ -0,0 +1,21 @@
+[build-system]
+requires = ["setuptools"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "ashd-py3"
+version = "0.6"
+description = "Python module for handling ashd requests"
+license = "GPL-3.0-or-later"
+authors = [{name = "Fredrik Tolf", email = "fredrik@dolda2000.com"}]
+
+[project.urls]
+Homepage = "https://www.dolda2000.com/~fredrik/ashd/"
+Repository = "git://git.dolda2000.com/ashd"
+
+[tool.setuptools]
+packages = ["ashd"]
+script-files = ["ashd-wsgi3", "scgi-wsgi3", "serve-ssi"]
+ext-modules = [
+    {name = "ashd.htlib", sources=["htp.c"], libraries=["ht"]}
+]
diff --git a/python/setup.py b/python/setup.py
deleted file mode 100755 (executable)
index 6c6e16c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/python3
-
-from distutils.core import setup, Extension
-
-htlib = Extension("ashd.htlib", ["htp.c"],
-                  libraries = ["ht"])
-
-setup(name = "ashd-py3",
-      version = "0.6",
-      description = "Python module for handling ashd requests",
-      author = "Fredrik Tolf",
-      author_email = "fredrik@dolda2000.com",
-      url = "http://www.dolda2000.com/~fredrik/ashd/",
-      ext_modules = [htlib],
-      packages = ["ashd"],
-      scripts = ["ashd-wsgi3", "scgi-wsgi3", "serve-ssi"],
-      license = "GPL-3")