From: Fredrik Tolf Date: Wed, 8 Apr 2026 00:09:15 +0000 (+0200) Subject: Relace setup.py with a pyproject.toml. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=HEAD;p=wrw.git Relace setup.py with a pyproject.toml. --- diff --git a/.gitignore b/.gitignore index 57e683c..a67ecb9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.pyc /build +/dist +/wrw.egg-info diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..52bf22d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,12 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "wrw" +version = "0.1" +description = "Simple WSGI request wrapper library" +authors = [{name = "Fredrik Tolf", email = "fredrik@dolda2000.com"}] + +[tool.setuptools] +package-data."wrw.makolib" = ["*"] diff --git a/setup.py b/setup.py deleted file mode 100755 index d8eb073..0000000 --- a/setup.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/python3 - -from distutils.core import setup, Extension - -setup(name = "wrw", - version = "0.1", - description = "Simple WSGI request wrapper library", - author = "Fredrik Tolf", - author_email = "fredrik@dolda2000.com", - packages = ["wrw", "wrw.sp"], - package_data = {"wrw": ["makolib/*.mako"]}, - license = "GPL-3")