Skip to content

Commit 4dd6d66

Browse files
Migrate from setup.cfg to pyproject.toml
1 parent 88ce585 commit 4dd6d66

File tree

2 files changed

+91
-76
lines changed

2 files changed

+91
-76
lines changed

pyproject.toml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,65 @@ requires = [
77
"wheel>=0.36",
88
]
99

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+
1069
[tool.setuptools_scm]
1170
write_to = "pytest_asyncio/_version.py"
1271

@@ -17,3 +76,35 @@ lint.select = [
1776
"F", # pyflakes
1877
"W", # pycodestyle
1978
]
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

setup.cfg

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)