File tree Expand file tree Collapse file tree 6 files changed +15
-33
lines changed Expand file tree Collapse file tree 6 files changed +15
-33
lines changed Original file line number Diff line number Diff line change 23
23
version : ${{ steps.version.outputs.version }}
24
24
prerelease : ${{ steps.version.outputs.prerelease }}
25
25
steps :
26
- - uses : actions/checkout@v4
26
+ - uses : actions/checkout@v5
27
27
with :
28
28
fetch-depth : 0
29
29
persist-credentials : false
77
77
78
78
79
79
steps :
80
- - uses : actions/checkout@v4
80
+ - uses : actions/checkout@v5
81
81
with :
82
82
persist-credentials : false
83
83
- uses : actions/setup-python@v5
@@ -116,7 +116,7 @@ jobs:
116
116
uses : re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
117
117
with :
118
118
jobs : ${{ toJSON(needs) }}
119
- - uses : actions/checkout@v4
119
+ - uses : actions/checkout@v5
120
120
with :
121
121
persist-credentials : false
122
122
- uses : actions/setup-python@v5
@@ -151,7 +151,7 @@ jobs:
151
151
contents : write
152
152
steps :
153
153
- name : Checkout
154
- uses : actions/checkout@v4
154
+ uses : actions/checkout@v5
155
155
with :
156
156
fetch-depth : 0
157
157
persist-credentials : false
Original file line number Diff line number Diff line change @@ -62,7 +62,3 @@ target/
62
62
63
63
# pyenv
64
64
.python-version
65
-
66
-
67
- # generated by setuptools_scm
68
- pytest_asyncio /_version.py
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
2
build-backend = " setuptools.build_meta"
3
3
requires = [
4
- " setuptools>=77 " ,
5
- " setuptools-scm[toml]>=6 .2" ,
4
+ " setuptools==80.9 " ,
5
+ " setuptools-scm==9 .2" ,
6
6
]
7
7
8
8
[project ]
@@ -67,7 +67,6 @@ packages = [
67
67
include-package-data = true
68
68
69
69
[tool .setuptools_scm ]
70
- write_to = " pytest_asyncio/_version.py"
71
70
local_scheme = " no-local-version"
72
71
73
72
[tool .ruff ]
@@ -138,9 +137,6 @@ source = [
138
137
]
139
138
branch = true
140
139
data_file = " coverage/coverage"
141
- omit = [
142
- " */_version.py" ,
143
- ]
144
140
parallel = true
145
141
146
142
[tool .coverage .report ]
Original file line number Diff line number Diff line change 2
2
3
3
from __future__ import annotations
4
4
5
- from ._version import version as __version__ # noqa: F401
5
+ from importlib .metadata import version
6
+
6
7
from .plugin import fixture , is_async_test
7
8
9
+ __version__ = version (__name__ )
10
+
8
11
__all__ = ("fixture" , "is_async_test" )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import pytest_asyncio
2
+
3
+
4
+ def test_package_exposes_version ():
5
+ assert pytest_asyncio .__version__
You can’t perform that action at this time.
0 commit comments