5
5
6
6
7
7
def find_version ():
8
- version_file = Path (__file__ ).parent .joinpath ('pytest_asyncio' , '__init__.py' ).read_text ()
9
- version_match = re .search (r"^__version__ = ['\"]([^'\"]*)['\"]" ,
10
- version_file , re .M )
8
+ version_file = (
9
+ Path (__file__ )
10
+ .parent .joinpath ("pytest_asyncio" , "__init__.py" )
11
+ .read_text ()
12
+ )
13
+ version_match = re .search (
14
+ r"^__version__ = ['\"]([^'\"]*)['\"]" , version_file , re .M
15
+ )
11
16
if version_match :
12
17
return version_match .group (1 )
13
18
14
19
raise RuntimeError ("Unable to find version string." )
15
20
16
21
17
22
setup (
18
- name = ' pytest-asyncio' ,
23
+ name = " pytest-asyncio" ,
19
24
version = find_version (),
20
25
packages = find_packages (),
21
- url = ' https://github.com/pytest-dev/pytest-asyncio' ,
22
- license = ' Apache 2.0' ,
23
- author = ' Tin Tvrtković' ,
24
-
25
- description = ' Pytest support for asyncio.' ,
26
- long_description = Path (__file__ ).parent .joinpath (' README.rst' ).read_text (),
26
+ url = " https://github.com/pytest-dev/pytest-asyncio" ,
27
+ license = " Apache 2.0" ,
28
+ author = " Tin Tvrtković" ,
29
+
30
+ description = " Pytest support for asyncio." ,
31
+ long_description = Path (__file__ ).parent .joinpath (" README.rst" ).read_text (),
27
32
classifiers = [
28
33
"Development Status :: 4 - Beta" ,
29
34
"Intended Audience :: Developers" ,
@@ -34,15 +39,11 @@ def find_version():
34
39
"Topic :: Software Development :: Testing" ,
35
40
"Framework :: Pytest" ,
36
41
],
37
- python_requires = '>= 3.5' ,
38
- install_requires = [
39
- 'pytest >= 3.0.6' ,
40
- ],
42
+ python_requires = ">= 3.5" ,
43
+ install_requires = ["pytest >= 3.0.6" ],
41
44
extras_require = {
42
- ':python_version == "3.5"' : ' async_generator >= 1.3' ,
43
- ' testing' : [' coverage' , ' async_generator >= 1.3' ],
45
+ ':python_version == "3.5"' : " async_generator >= 1.3" ,
46
+ " testing" : [" coverage" , " async_generator >= 1.3" ],
44
47
},
45
- entry_points = {
46
- 'pytest11' : ['asyncio = pytest_asyncio.plugin' ],
47
- }
48
+ entry_points = {"pytest11" : ["asyncio = pytest_asyncio.plugin" ]},
48
49
)
0 commit comments