-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (131 loc) · 4.1 KB
/
Copy pathpyproject.toml
File metadata and controls
150 lines (131 loc) · 4.1 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "more.transaction"
version = "1.0.dev0"
dynamic = ["readme"]
description = "transaction integration for Morepath"
license = "BSD-3-Clause"
license-files = ["LICENSE.txt"]
authors = [{name = "Martijn Faassen", email = "faassen@startifact.com"}]
maintainers = [{name = "Henri Hulski", email = "henri@sancode.it"}]
keywords = ["morepath", "sqlalchemy", "zodb", "transaction"]
classifiers = [
"Intended Audience :: Developers",
"Environment :: Web Environment",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"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 :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: PyPy",
"Development Status :: 5 - Production/Stable",
]
requires-python = ">= 3.10"
dependencies = [
# TODO: Change this pin to >= 1
"morepath >= 0.15",
"transaction >= 2.4.0",
]
[project.urls]
Repository = "https://github.com/morepath/more.transaction"
Issues = "https://github.com/morepath/more.transaction/issues"
Changelog = "https://github.com/morepath/more.transaction/blob/master/CHANGES.txt"
[project.optional-dependencies]
test = ["pytest >= 8", "pytest-env", "WebTest >= 2.0.14"]
coverage = ["pytest-cov"]
lint = ["black", "flake8", "flake8-pyproject"]
mypy = ["mypy", "pytest", "types-WebOb", "types-WebTest"]
pyright = ["pyright", "pytest", "types-WebOb", "types-WebTest", "WebTest >= 2.0.14"]
[tool.setuptools.packages]
find = {}
[tool.setuptools.package-data]
"more.transaction" = ["py.typed"]
[tool.setuptools.dynamic]
readme = {file = ["README.rst", "CHANGES.txt"]}
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["more/transaction"]
addopts = ["-vv"]
env = ["RUN_ENV=test"]
[tool.coverage.run]
omit = ["more/transaction/tests/*"]
source = ["more/transaction"]
[tool.coverage.report]
show_missing = true
[tool.flake8]
show-source = true
ignore = ["E203", "E731", "W503", "N801"]
max-line-length = 88
[tool.mypy]
python_version = "3.10"
strict = true
warn_unreachable = true
[[tool.mypy.overrides]]
# ignore missing imports for packages that have no stubs available
module = ["transaction.*"]
ignore_missing_imports = true
[tool.tox]
requires = ["tox>=4"]
env_list = [
"py310",
"py311",
"py312",
"py313",
"py314",
"pypy3",
"coverage",
"pre-commit",
"mypy",
"pyright",
]
skip_missing_interpreters = true
[tool.tox.gh.python]
"3.10" = ["py310"]
"3.11" = ["py311", "mypy", "pyright"]
"3.12" = ["py312"]
"3.13" = ["py313"]
"3.14" = ["py314", "pre-commit", "coverage"]
"pypy-3.11" = ["pypy3"]
[tool.tox.env_run_base]
package = "editable"
extras = ["test"]
deps = ["-r{tox_root}/requirements/corelibs.txt"]
commands = [["pytest", "{posargs:more}"]]
[tool.tox.env.coverage]
base_python = ["python3"]
extras = ["test", "coverage"]
commands = [
["pytest", "--cov", "--cov-fail-under=100", "{posargs:more}"],
]
[tool.tox.env.pre-commit]
base_python = ["python3"]
package = "skip"
deps = ["pre-commit"]
commands = [
["pre-commit", "run", "--all-files"],
]
[tool.tox.env.mypy]
base_python = ["python3"]
extras = ["mypy"]
commands = [
["mypy", "-p", "more.transaction", "--python-version", "3.10"],
["mypy", "-p", "more.transaction", "--python-version", "3.11"],
["mypy", "-p", "more.transaction", "--python-version", "3.12"],
["mypy", "-p", "more.transaction", "--python-version", "3.13"],
["mypy", "-p", "more.transaction", "--python-version", "3.14"],
]
[tool.tox.env.pyright]
base_python = ["python3"]
extras = ["pyright"]
commands = [
["pyright", "more/transaction", "--pythonversion", "3.10"],
["pyright", "more/transaction", "--pythonversion", "3.11"],
["pyright", "more/transaction", "--pythonversion", "3.12"],
["pyright", "more/transaction", "--pythonversion", "3.13"],
["pyright", "more/transaction", "--pythonversion", "3.14"],
]