Update packages metadata following PEP 639 license documentation.
- 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 <https://endoflife.date/python>` Python 3.8::
[build-system]
-requires = ["setuptools>=49.2.0", "wheel>=0.37"]
+requires = ["setuptools>=80.3.1", "wheel>=0.37"]
build-backend = "setuptools.build_meta"
[project]
#
# 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",
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/"
[tool.setuptools]
zip-safe = false
-license-files = ["LICENSE.txt"]
include-package-data = true
[tool.setuptools.package-data]
[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'",
]
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",
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/"
"psycopg_c.types",
]
zip-safe = false
-license-files = ["LICENSE.txt"]
include-package-data = true
[tool.setuptools.package-data]
[build-system]
-requires = ["setuptools>=49.2.0", "wheel>=0.37"]
+requires = ["setuptools>=80.3.1", "wheel>=0.37"]
build-backend = "setuptools.build_meta"
[project]
# 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",
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"
[tool.setuptools]
zip-safe = false
-license-files = ["LICENSE.txt"]
include-package-data = true
[tool.setuptools.package-data]