Skip to content

Commit eedd32e

Browse files
pyproject.toml is used (#7)
1 parent a3280ea commit eedd32e

4 files changed

Lines changed: 58 additions & 60 deletions

File tree

pyproject.toml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools.package-dir]
6+
"testgres.postgres_configuration" = "src"
7+
8+
[tool.flake8]
9+
extend-ignore = ["E501", "E721", "E722", "W503"]
10+
exclude = [".git", "__pycache__", "env", "venv"]
11+
12+
[project]
13+
name = "testgres.postgres_configuration"
14+
version = "0.1.0"
15+
16+
description = "PostgreSQL Configuration Python Library"
17+
readme = "README.md"
18+
19+
# [2026-01-05]
20+
# This old format is used to ensure compatibility with Python 3.7.
21+
license = {text = "PostgreSQL"}
22+
23+
authors = [
24+
{name = "Postgres Professional", email = "testgres@postgrespro.ru"},
25+
]
26+
27+
keywords = [
28+
"postgresql",
29+
"postgres",
30+
"test",
31+
]
32+
33+
requires-python = ">=3.7.17"
34+
35+
classifiers = [
36+
"Intended Audience :: Developers",
37+
"Operating System :: Unix",
38+
"Programming Language :: Python :: 3 :: Only",
39+
"Programming Language :: Python :: 3.7",
40+
"Programming Language :: Python :: 3.8",
41+
"Programming Language :: Python :: 3.9",
42+
"Programming Language :: Python :: 3.10",
43+
"Programming Language :: Python :: 3.11",
44+
"Programming Language :: Python :: 3.12",
45+
"Programming Language :: Python :: 3.13",
46+
"Programming Language :: Python :: 3.14",
47+
"Topic :: Software Development :: Libraries",
48+
"Topic :: Software Development :: Testing",
49+
]
50+
51+
dependencies = [
52+
]
53+
54+
[project.urls]
55+
"HomePage" = "https://github.com/postgrespro/testgres.pg_conf"

run_tests3.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ rm -rf $VENV_PATH
1010
python -m venv "${VENV_PATH}"
1111
export VIRTUAL_ENV_DISABLE_PROMPT=1
1212
source "${VENV_PATH}/bin/activate"
13-
pip install flake8 pytest pytest-xdist
1413

1514
# Codestyle is checked
15+
pip install flake8 flake8-pyproject
1616
flake8
17+
pip uninstall -y flake8 flake8-pyproject
1718

1819
# Functional is tested
20+
pip install pytest pytest-xdist
1921
python -m pytest -l -v -n 4
2022

2123
set +eux

setup.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)