From: Daniele Varrazzo Date: Sun, 22 Dec 2024 01:50:55 +0000 (+0100) Subject: refactor(pool): convert setup.cfg to pyproject.toml X-Git-Tag: 3.3.0.dev1~141^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ab473c58cd5a9a78d198a4ef7214ec31199e9a2;p=thirdparty%2Fpsycopg.git refactor(pool): convert setup.cfg to pyproject.toml --- diff --git a/psycopg_pool/pyproject.toml b/psycopg_pool/pyproject.toml index 21e410c74..ffbe884d0 100644 --- a/psycopg_pool/pyproject.toml +++ b/psycopg_pool/pyproject.toml @@ -1,3 +1,65 @@ [build-system] requires = ["setuptools>=49.2.0", "wheel>=0.37"] build-backend = "setuptools.build_meta" + +[project] +name = "psycopg-pool" +description = "Connection Pool for Psycopg" +version = "3.3.0.dev1" +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", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", + "Topic :: Database", + "Topic :: Database :: Front-Ends", + "Topic :: Software Development", + "Topic :: Software Development :: Libraries :: Python Modules", +] +requires-python = ">= 3.8" +dependencies = [ + "typing-extensions >= 4.6", +] + +[[project.authors]] +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" +Changes = "https://psycopg.org/psycopg3/docs/news_pool.html" +Code = "https://github.com/psycopg/psycopg" +"Issue Tracker" = "https://github.com/psycopg/psycopg/issues" +Download = "https://pypi.org/project/psycopg-pool/" + +[project.readme] +file = "README.rst" +content-type = "text/x-rst" + +[tool.setuptools] +zip-safe = false +license-files = ["LICENSE.txt"] +include-package-data = true + +[tool.setuptools.package-data] +psycopg_pool = [ + "py.typed", +] + +[tool.setuptools.packages.find] +namespaces = false diff --git a/psycopg_pool/setup.cfg b/psycopg_pool/setup.cfg deleted file mode 100644 index f77dce446..000000000 --- a/psycopg_pool/setup.cfg +++ /dev/null @@ -1,55 +0,0 @@ -[metadata] -name = psycopg-pool -description = Connection Pool for Psycopg -url = https://psycopg.org/psycopg3/ -author = Daniele Varrazzo -author_email = daniele.varrazzo@gmail.com -license = GNU Lesser General Public License v3 (LGPLv3) - -# STOP AND READ! if you change: -version = 3.3.0.dev1 -# also change: -# - `docs/news_pool.rst` to declare this version current or unreleased - -project_urls = - Homepage = https://psycopg.org/ - Documentation = https://www.psycopg.org/psycopg3/docs/advanced/pool.html - Changes = https://psycopg.org/psycopg3/docs/news_pool.html - Code = https://github.com/psycopg/psycopg - Issue Tracker = https://github.com/psycopg/psycopg/issues - Download = https://pypi.org/project/psycopg-pool/ - -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 - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: 3.13 - Programming Language :: Python :: Implementation :: CPython - Programming Language :: Python :: Implementation :: PyPy - Topic :: Database - Topic :: Database :: Front-Ends - Topic :: Software Development - Topic :: Software Development :: Libraries :: Python Modules - -long_description = file: README.rst -long_description_content_type = text/x-rst -license_files = LICENSE.txt - -[options] -python_requires = >= 3.8 -packages = find: -zip_safe = False -install_requires = - typing-extensions >= 4.6 - -[options.package_data] -psycopg_pool = py.typed diff --git a/psycopg_pool/setup.py b/psycopg_pool/setup.py deleted file mode 100644 index ab75bb726..000000000 --- a/psycopg_pool/setup.py +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env python3 -""" -PostgreSQL database adapter for Python - Connection Pool -""" - -# Copyright (C) 2020 The Psycopg Team - -from setuptools import setup - -setup()