From 0cd69a409350ee40860bb32ca667b0fb6482e665 Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Mon, 19 Oct 2026 23:21:59 +0300 Subject: [PATCH] pyproject.toml is updated - project.optional-dependencies - authors - license (py 3.7) - project.urls --- pyproject.toml | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 76a3c33..e8e7ff5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,16 +8,32 @@ build-backend = "setuptools.build_meta" [tool.setuptools.dynamic] version = {attr = "testgres_exts.pglab.__version__"} +[tool.flake8] +extend-ignore = ["E501"] +exclude = [".git", "__pycache__", "env", "venv"] + +# Pytest settings +[tool.pytest.ini_options] +testpaths = ["tests"] +log_file_level = "NOTSET" +log_file_format = "%(levelname)8s [%(asctime)s] %(message)s" +log_file_date_format = "%Y-%m-%d %H:%M:%S" + [project] name = "testgres_exts.pglab" dynamic = ["version"] description = "Linux netns/cgroup/netem fault injection for PostgreSQL tests using Testgres" readme = "README.md" -requires-python = ">=3.8" -license = "PostgreSQL" -dependencies = [ - "testgres>=1.17,<1.18", + +# This old format is used to ensure compatibility with Python 3.7. +license = {text = "PostgreSQL"} + +authors = [ + {name = "Postgres Professional", email = "testgres@postgrespro.ru"}, ] + +requires-python = ">=3.8" + classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", @@ -34,18 +50,14 @@ classifiers = [ "Topic :: Database", ] +dependencies = [ + "testgres>=1.17,<1.18", +] + [project.optional-dependencies] test = [ - "pytest>=8,<10", + "pytest", ] -[tool.flake8] -extend-ignore = ["E501"] -exclude = [".git", "__pycache__", "env", "venv"] - -# Pytest settings -[tool.pytest.ini_options] -testpaths = ["tests"] -log_file_level = "NOTSET" -log_file_format = "%(levelname)8s [%(asctime)s] %(message)s" -log_file_date_format = "%Y-%m-%d %H:%M:%S" +[project.urls] +"HomePage" = "https://github.com/postgrespro/testgres_exts.pglab"