-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (118 loc) · 3.09 KB
/
pyproject.toml
File metadata and controls
130 lines (118 loc) · 3.09 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# -*- coding: utf-8 -*-
# :Project: pglast — Tools configuration
# :Created: mer 29 ott 2025, 08:42:11
# :Author: Lele Gaifax <lele@metapensiero.it>
# :License: GNU General Public License version 3 or later
# :Copyright: © 2025, 2026 Lele Gaifax
#
[project]
name = "pglast"
version = "7.13"
description="PostgreSQL Languages AST and statements prettifier"
readme = "README.rst"
authors = [{name = "Lele Gaifax", email = "lele@metapensiero.it"}]
license = "GPL-3.0-or-later"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: SQL",
# "Programming Language :: PL/SQL",
"Topic :: Database",
"Topic :: Utilities",
]
keywords = [
"postgresql",
"parser",
"sql",
"prettifier",
]
[project.urls]
Changelog = "https://github.com/lelit/pglast/blob/v7/CHANGES.rst"
Source = "https://github.com/lelit/pglast"
[project.scripts]
pgpp = "pglast.__main__:main"
[project.optional-dependencies]
dev = [
"bump-my-version==1.2.5",
"cython==3.2.4",
"pycparser==2.23",
"readme-renderer==44.0",
"setuptools==80.9.0",
"sphinx==9.0.4",
"twine==6.2.0",
]
test = [
"coverage==7.13.0",
"mypy==1.17.1",
"pytest-cov==7.0.0",
"pytest==9.0.2",
"ty==0.0.7",
]
[build-system]
requires = [
"cython==3.2.4",
"setuptools==80.9.0",
]
build-backend = "setuptools.build_meta"
[tool.pytest]
addopts = [
"--cov=pglast",
"--cov-report=term-missing",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.setuptools]
packages = [
"pglast",
"pglast.enums",
"pglast.printers",
]
[tool.bumpversion]
current_version = "7.13"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)"
serialize = [
"{major}.{minor}",
"{major}.{minor}",
]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = false
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = false
message = "Bump version: {current_version} → {new_version}"
commit_args = ""
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "pglast/__init__.py"
search = "__version__ = 'v{current_version}'"
replace = "__version__ = 'v{new_version}'"
[[tool.bumpversion.files]]
filename = "docs/conf.py"
search = "release = 'v{current_version}'"
replace = "release = 'v{new_version}'"