From: Daniele Varrazzo Date: Wed, 7 May 2025 11:05:49 +0000 (+0200) Subject: chore: bump build packages versions X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dbe750c1d64eafb55bd8a0ada66ecd3d01915ba8;p=thirdparty%2Fpsycopg.git chore: bump build packages versions Update packages metadata following PEP 639 license documentation. --- diff --git a/docs/release.rst b/docs/release.rst index ce82717b5..f1a5aac4f 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -114,6 +114,9 @@ When dropping end-of-life Python versions - Bump versions in the ``tests/constraints.txt`` file if it is necessary. +- bump ``build-system.requires`` in ``*/pyproject.toml``. Install the packages + with ``pip install ./psycopg*/`` and check eventual warnings. + - You may grep throughout the project for occurrences of a version to be dropped. However, favouring smaller pull requests is convenient and easy to review. An example for grepping `end-of-life ` Python 3.8:: diff --git a/psycopg/pyproject.toml b/psycopg/pyproject.toml index 637383628..1034e4bf8 100644 --- a/psycopg/pyproject.toml +++ b/psycopg/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=49.2.0", "wheel>=0.37"] +requires = ["setuptools>=80.3.1", "wheel>=0.37"] build-backend = "setuptools.build_meta" [project] @@ -15,10 +15,11 @@ version = "3.3.0.dev1" # # NOTE: you can use `tools/bump_version.py` to maintain versions. +license = "LGPL-3.0-only" +license-files = ["LICENSE.txt"] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", @@ -44,9 +45,6 @@ dependencies = [ name = "Daniele Varrazzo" email = "daniele.varrazzo@gmail.com" -[project.license] -text = "GNU Lesser General Public License v3 (LGPLv3)" - [project.urls] Homepage = "https://psycopg.org/" Documentation = "https://psycopg.org/psycopg3/docs/" @@ -99,7 +97,6 @@ docs = [ [tool.setuptools] zip-safe = false -license-files = ["LICENSE.txt"] include-package-data = true [tool.setuptools.package-data] diff --git a/psycopg_c/pyproject.toml b/psycopg_c/pyproject.toml index 7604b335e..905dfd0ed 100644 --- a/psycopg_c/pyproject.toml +++ b/psycopg_c/pyproject.toml @@ -1,11 +1,11 @@ [build-system] requires = [ - # Note: pinning these versions strictly because of the setuptools warning: + # Note: pinning this version strictly because of the setuptools warning: # # `[tool.setuptools.ext-modules]` in `pyproject.toml` is still # *experimental* and likely to change in future releases # - "setuptools == 75.6.0", + "setuptools == 80.3.1", "wheel >= 0.37", "tomli >= 2.0.1; python_version < '3.11'", ] @@ -25,10 +25,11 @@ cython-requires = ["Cython >= 3.0.0"] name = "psycopg-c" description = "PostgreSQL database adapter for Python -- C optimisation distribution" version = "3.3.0.dev1" +license = "LGPL-3.0-only" +license-files = ["LICENSE.txt"] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", @@ -50,9 +51,6 @@ requires-python = ">= 3.10" name = "Daniele Varrazzo" email = "daniele.varrazzo@gmail.com" -[project.license] -text = "GNU Lesser General Public License v3 (LGPLv3)" - [project.urls] Homepage = "https://psycopg.org/" Documentation = "https://psycopg.org/psycopg3/docs/" @@ -72,7 +70,6 @@ packages = [ "psycopg_c.types", ] zip-safe = false -license-files = ["LICENSE.txt"] include-package-data = true [tool.setuptools.package-data] diff --git a/psycopg_pool/pyproject.toml b/psycopg_pool/pyproject.toml index f6a4f30e6..6f94406c4 100644 --- a/psycopg_pool/pyproject.toml +++ b/psycopg_pool/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=49.2.0", "wheel>=0.37"] +requires = ["setuptools>=80.3.1", "wheel>=0.37"] build-backend = "setuptools.build_meta" [project] @@ -11,10 +11,11 @@ version = "3.3.0.dev1" # also change: # - `docs/news_pool.rst` to declare this version current or unreleased +license = "LGPL-3.0-only" +license-files = ["LICENSE.txt"] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", @@ -39,9 +40,6 @@ dependencies = [ name = "Daniele Varrazzo" email = "daniele.varrazzo@gmail.com" -[project.license] -text = "GNU Lesser General Public License v3 (LGPLv3)" - [project.urls] Homepage = "https://psycopg.org/" Documentation = "https://www.psycopg.org/psycopg3/docs/advanced/pool.html" @@ -55,7 +53,6 @@ content-type = "text/x-rst" [tool.setuptools] zip-safe = false -license-files = ["LICENSE.txt"] include-package-data = true [tool.setuptools.package-data]