@@ -7,6 +7,65 @@ requires = [
7
7
" wheel>=0.36" ,
8
8
]
9
9
10
+ [project ]
11
+ name = " pytest-asyncio"
12
+ description = " Pytest support for asyncio"
13
+ readme.content-type = " text/x-rst"
14
+ readme.file = " README.rst"
15
+ license.text = " Apache 2.0"
16
+ authors = [
17
+ {
name =
" Tin Tvrtković <[email protected] >" ,
email =
" [email protected] " },
18
+ ]
19
+ requires-python = " >=3.9"
20
+ classifiers = [
21
+ " Development Status :: 4 - Beta" ,
22
+ " Framework :: AsyncIO" ,
23
+ " Framework :: Pytest" ,
24
+ " Intended Audience :: Developers" ,
25
+ " License :: OSI Approved :: Apache Software License" ,
26
+ " Programming Language :: Python :: 3 :: Only" ,
27
+ " Programming Language :: Python :: 3.9" ,
28
+ " Programming Language :: Python :: 3.10" ,
29
+ " Programming Language :: Python :: 3.11" ,
30
+ " Programming Language :: Python :: 3.12" ,
31
+ " Programming Language :: Python :: 3.13" ,
32
+ " Topic :: Software Development :: Testing" ,
33
+ " Typing :: Typed" ,
34
+ ]
35
+ dynamic = [
36
+ " version" ,
37
+ ]
38
+
39
+ dependencies = [
40
+ " pytest>=8.2,<9" ,
41
+ ]
42
+ optional-dependencies.docs = [
43
+ " sphinx>=5.3" ,
44
+ " sphinx-rtd-theme>=1" ,
45
+ ]
46
+ optional-dependencies.testing = [
47
+ " coverage>=6.2" ,
48
+ " hypothesis>=5.7.1" ,
49
+ ]
50
+ urls."Bug Tracker" = " https://github.com/pytest-dev/pytest-asyncio/issues"
51
+ urls.Changelog = " https://pytest-asyncio.readthedocs.io/en/latest/reference/changelog.html"
52
+ urls.Documentation = " https://pytest-asyncio.readthedocs.io"
53
+ urls.Homepage = " https://github.com/pytest-dev/pytest-asyncio"
54
+ urls."Source Code" = " https://github.com/pytest-dev/pytest-asyncio"
55
+ entry-points.pytest11.asyncio = " pytest_asyncio.plugin"
56
+
57
+ [tool .setuptools ]
58
+ packages = [
59
+ " pytest_asyncio" ,
60
+ ]
61
+ include-package-data = true
62
+ license-files = [
63
+ " LICENSE" ,
64
+ ]
65
+
66
+ [tool .setuptools .dynamic .version ]
67
+ attr = " pytest_asyncio.__version__"
68
+
10
69
[tool .setuptools_scm ]
11
70
write_to = " pytest_asyncio/_version.py"
12
71
@@ -17,3 +76,35 @@ lint.select = [
17
76
" F" , # pyflakes
18
77
" W" , # pycodestyle
19
78
]
79
+
80
+ [tool .pytest .ini_options ]
81
+ python_files = [
82
+ " test_*.py" ,
83
+ " *_example.py" ,
84
+ ]
85
+ addopts = " -rsx --tb=short"
86
+ testpaths = [
87
+ " docs" ,
88
+ " tests" ,
89
+ ]
90
+ asyncio_mode = " auto"
91
+ asyncio_default_fixture_loop_scope = " function"
92
+ junit_family = " xunit2"
93
+ filterwarnings = [
94
+ " error" ,
95
+ " ignore:The event_loop fixture provided by pytest-asyncio has been redefined.*:DeprecationWarning" ,
96
+ ]
97
+
98
+ [tool .coverage .run ]
99
+ source = [
100
+ " pytest_asyncio" ,
101
+ ]
102
+ branch = true
103
+ data_file = " coverage/coverage"
104
+ omit = [
105
+ " */_version.py" ,
106
+ ]
107
+ parallel = true
108
+
109
+ [tool .coverage .report ]
110
+ show_missing = true
0 commit comments