--- pyproject.toml.orig 2026-05-01 20:43:36 UTC +++ pyproject.toml @@ -5,7 +5,7 @@ requires = [ # `[tool.setuptools.ext-modules]` in `pyproject.toml` is still # *experimental* and likely to change in future releases # - "setuptools == 80.3.1", + "setuptools >= 61", "wheel >= 0.37", "tomli >= 2.0.1; python_version < '3.11'", ] @@ -25,8 +25,7 @@ version = "3.3.4" name = "psycopg-c" description = "PostgreSQL database adapter for Python -- C optimisation distribution" version = "3.3.4" -license = "LGPL-3.0-only" -license-files = ["LICENSE.txt"] +license = {text = "LGPL-3.0-only"} classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", @@ -89,16 +88,6 @@ psycopg_binary = [ "py.typed", "*.pyi", ] - -# Note: these ext modules lack details such as libraries and directories. -# They are added by the 'psycopg_build_ext' build module. -[[tool.setuptools.ext-modules]] -name = "psycopg_c._psycopg" -sources = ["psycopg_c/_psycopg.c", "psycopg_c/types/numutils.c"] - -[[tool.setuptools.ext-modules]] -name = "psycopg_c.pq" -sources = ["psycopg_c/pq.c"] [tool.setuptools.cmdclass] build_ext = "psycopg_build_ext.psycopg_build_ext"