File: pyproject.toml

package info (click to toggle)
python-txaio 25.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 552 kB
  • sloc: python: 2,122; makefile: 178; sh: 48
file content (195 lines) | stat: -rw-r--r-- 4,360 bytes parent folder | download
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "txaio"
version = "25.9.2"
description = "Compatibility API between asyncio/Twisted/Trollius"
readme = {file = "README.md", content-type = "text/markdown"}
license = "MIT"
authors = [
    {name = "typedef int GmbH", email = "contact@typedefint.eu"}
]
maintainers = [
    {name = "typedef int GmbH", email = "contact@typedefint.eu"}
]
keywords = ["asyncio", "twisted", "trollius", "coroutine"]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Environment :: Console",
    "Framework :: Twisted",
    "Intended Audience :: Developers",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Programming Language :: Python :: 3.14",
    "Programming Language :: Python :: Implementation :: CPython",
    "Programming Language :: Python :: Implementation :: PyPy",
    "Topic :: Software Development :: Libraries",
    "Topic :: Software Development :: Libraries :: Application Frameworks",
]
requires-python = ">=3.11"
dependencies = []

[project.optional-dependencies]
twisted = [
    "zope.interface>=5.2.0",
    "twisted>=22.10.0",
]
asyncio = []
dev = [
    "build",
    "wheel",
    "flake8>=7.3.0",
    "pytest>=2.6.4",
    "pytest-cov>=1.8.1",
    "black>=25.1.0",
    "mypy>=1.18.2",
    "myst_parser>=4.0.1",
    "pyenchant>=1.6.6",
    "ruff>=0.13.1",
    "sphinx>=7.2.6",
    "sphinxcontrib-spelling>=2.1.2",
    "sphinxcontrib-images>=0.9.4",
    "sphinxcontrib-bibtex>=2.6.1",
    "sphinx-autoapi>=3.0.0",
    "sphinx-rtd-theme>=2.0.0",
    "tox>=2.1.1",
    "twine>=1.6.5",
    "tox-gh-actions>=2.2.0",
]
all = [
    "zope.interface>=5.2.0",
    "twisted>=22.10.0",
]

[project.urls]
Homepage = "https://txaio.readthedocs.io/"
Documentation = "https://txaio.readthedocs.io/"
Repository = "https://github.com/crossbario/txaio"
Source = "https://github.com/crossbario/txaio"
"Bug Tracker" = "https://github.com/crossbario/txaio/issues"

[tool.setuptools]
packages = ["txaio"]
zip-safe = true
include-package-data = true

[tool.setuptools.package-data]
txaio = ["py.typed"]

[tool.wheel]
universal = false

[tool.black]
line-length = 88
target-version = ['py311', 'py312', 'py313', 'py314']
include = '\.pyi?$'
extend-exclude = '''
/(
  # directories
  \.eggs
  | \.git
  | \.tox
  | \.venv
  | build
  | dist
)/
'''

[tool.flake8]
max-line-length = 88
isolated = true
extend-ignore = [
    "E203",  # whitespace before ':'
    "W503",  # line break before binary operator
]

[tool.pytest.ini_options]
testpaths = ["test"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
    "--strict-markers",
    "--strict-config",
    "-v",
]

[tool.coverage.run]
source = ["txaio"]
branch = true

[tool.coverage.report]
show_missing = true
skip_covered = false
exclude_lines = [
    "pragma: no cover",
    "def __repr__",
    "if self.debug:",
    "if settings.DEBUG",
    "raise AssertionError",
    "raise NotImplementedError",
    "if 0:",
    "if __name__ == .__main__.:",
    "class .*\\bProtocol\\):",
    "@(abc\\.)?abstractmethod",
]

[tool.mypy]
python_version = "3.11"
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true

[[tool.mypy.overrides]]
module = "twisted.*"
ignore_missing_imports = true

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{311,312,313,314}-{twisted,asyncio}, flake8, mypy, coverage

[testenv]
deps =
    pytest
    pytest-cov
    twisted: twisted>=22.10.0
    twisted: zope.interface>=5.2.0
    asyncio: # no extra deps for asyncio
commands =
    pytest {posargs}

[testenv:flake8]
deps = flake8>=7.3.0
commands = flake8 txaio test

[testenv:mypy]
deps =
    mypy
    twisted
    zope.interface
commands = mypy txaio

[testenv:coverage]
deps =
    pytest
    pytest-cov
    twisted
    zope.interface
commands =
    pytest --cov=txaio --cov-report=html --cov-report=term-missing
"""