]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
refactor(pool): convert setup.cfg to pyproject.toml
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 22 Dec 2024 01:50:55 +0000 (02:50 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 23 Dec 2024 12:44:13 +0000 (13:44 +0100)
psycopg_pool/pyproject.toml
psycopg_pool/setup.cfg [deleted file]
psycopg_pool/setup.py [deleted file]

index 21e410c74b3e8c7fade8709ffad94c2cd1debd2c..ffbe884d04066d770fc5c0ce00ab9b93759a0cc9 100644 (file)
@@ -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 (file)
index f77dce4..0000000
+++ /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 (file)
index ab75bb7..0000000
+++ /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()