From 5f4bdcf14beacb27717afdf0e83036d006e63d5c Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Wed, 7 Jan 2026 18:05:29 +0300 Subject: [PATCH] pyproject.toml is used --- pyproject.toml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 6 ------ setup.py | 25 ------------------------ 3 files changed, 53 insertions(+), 31 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..6fb0745 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,53 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.package-dir] +"testgres.common" = "src" + +[tool.flake8] +extend-ignore = ["E501"] +exclude = [".git", "__pycache__", "env", "venv"] + +[project] +name = "testgres" +version = "0.0.3" + +description = "Testgres common code" +readme = "README.md" + +# [2026-01-05] +# This old format is used to ensure compatibility with Python 3.7. +license = {text = "PostgreSQL"} + +authors = [ + {name = "Postgres Professional", email = "testgres@postgrespro.ru"}, +] + +keywords = [ + 'testgres', +] + +requires-python = ">=3.7.17" + +classifiers = [ + "Intended Audience :: Developers", + "Operating System :: Unix", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.7", + "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 :: 3.14", + "Topic :: Software Development :: Libraries", + "Topic :: Software Development :: Testing", +] + +dependencies = [ +] + +[project.urls] +"HomePage" = "https://github.com/postgrespro/testgres" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index dbf5638..0000000 --- a/setup.cfg +++ /dev/null @@ -1,6 +0,0 @@ -[metadata] -description_file = README.md - -[flake8] -ignore = E501 -exclude = .git,__pycache__,env,venv diff --git a/setup.py b/setup.py deleted file mode 100644 index df4b34c..0000000 --- a/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -try: - from setuptools import setup -except ImportError: - from distutils.core import setup - -# Get contents of README file -with open("README.md", "r") as f: - readme = f.read() - -setup( - version="0.0.3", - name="testgres.common", - packages=[ - "testgres.common", - ], - package_dir={"testgres.common": "src"}, - description='Testgres common code', - url='https://github.com/postgrespro/testgres.common', - long_description=readme, - long_description_content_type='text/markdown', - license='PostgreSQL', - author='Postgres Professional', - author_email='testgres@postgrespro.ru', - keywords=['testgres'], -)