-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (74 loc) · 3.37 KB
/
Copy pathpyproject.toml
File metadata and controls
82 lines (74 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[build-system]
# setuptools >= 77 implements PEP 639, required for the SPDX `license` string
# below; it is available on every interpreter >= 3.9.
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "psycodict"
# Version lives in psycodict/__init__.py (__version__); see [tool.setuptools.dynamic].
dynamic = ["version"]
description = "dictionary-based python interface to PostgreSQL databases"
# Required by the `twine check --strict` gate in CI: without it the package
# has no long_description and the PyPI project page renders empty.
readme = "README.md"
requires-python = ">=3.9"
authors = [{name = "David Roe", email = "roed.math@gmail.com"}, {name = "Edgar Costa", email = "edgarc@mit.edu"}]
license = "GPL-2.0-or-later"
keywords = ["postgres", "database", "interface"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"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 :: Database",
"Topic :: Scientific/Engineering :: Mathematics",
]
[project.urls]
Homepage = "https://github.com/roed314/psycodict"
Documentation = "https://psycodict.readthedocs.io/"
Repository = "https://github.com/roed314/psycodict"
Changelog = "https://github.com/roed314/psycodict/blob/main/CHANGELOG.md"
[project.optional-dependencies]
# 3.2 introduced Connection.notifies(timeout=..., stop_after=...), which the
# notification listener uses, and 3.2.4 fixed notifications being dropped
# while no generator was consuming them -- essential for the pull-based
# NotificationListener.poll().
pgsource = ["psycopg>=3.2.4"]
pgbinary = ["psycopg[binary]>=3.2.4"]
test = ["pytest>=7"]
[tool.setuptools.dynamic]
version = {attr = "psycodict.__version__"}
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"devmirror: read-only tests against the public LMFDB mirror; needs network access and PSYCODICT_TEST_DEVMIRROR=1",
]
# psycodict logs every query it runs; without this a failing test drowns in
# connection chatter before the assertion that matters.
log_cli_level = "WARNING"
filterwarnings = ["error::DeprecationWarning:psycodict.*"]
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
# The rule selection is deliberately narrow -- correctness rules, not style --
# so that it stays green on a codebase that predates any linting. It is stated
# here rather than left to ruff's default because that default is not a fixed
# set: a ruff release that widens it would turn every open pull request red
# without anything in this repository changing.
select = ["E4", "E7", "E9", "F"]
[tool.ruff.lint.per-file-ignores]
# The psycopg availability check in __init__.py deliberately runs before the
# imports that depend on it.
"psycodict/__init__.py" = ["E402"]
# Pre-existing findings, silenced so that adopting a linter does not smuggle
# behavioural changes into an infrastructure change. Each is a one-line fix
# for a follow-up PR:
# base.py:229 E741 logger alias named `l`
# base.py:1024 F841 `ordered` assigned from a call kept for its side
# effect (_order_columns mutates its argument)
"psycodict/base.py" = ["E741", "F841"]