1
1
#!/usr/bin/env python
2
- # -*- encoding: utf-8 -*-
3
- from __future__ import absolute_import
4
- from __future__ import print_function
5
2
6
- import io
7
3
import re
8
4
from distutils .command .build import build
9
5
from glob import glob
22
18
23
19
24
20
def read (* names , ** kwargs ):
25
- with io . open (
21
+ with open (
26
22
join (dirname (__file__ ), * names ),
27
23
encoding = kwargs .get ('encoding' , 'utf8' )
28
24
) as fh :
@@ -88,7 +84,7 @@ def run(self):
88
84
version = '2.12.1' ,
89
85
license = 'MIT' ,
90
86
description = 'Pytest plugin for measuring coverage.' ,
91
- long_description = '%s \n %s' % (read ('README.rst' ), re .sub (':[a-z]+:`~?(.*?)`' , r'``\1``' , read ('CHANGELOG.rst' ))),
87
+ long_description = '{} \n {}' . format (read ('README.rst' ), re .sub (':[a-z]+:`~?(.*?)`' , r'``\1``' , read ('CHANGELOG.rst' ))),
92
88
author = 'Marc Schlaich' ,
93
89
94
90
url = 'https://github.com/pytest-dev/pytest-cov' ,
@@ -107,9 +103,8 @@ def run(self):
107
103
'Operating System :: POSIX' ,
108
104
'Operating System :: Unix' ,
109
105
'Programming Language :: Python' ,
110
- 'Programming Language :: Python :: 2' ,
111
- 'Programming Language :: Python :: 2.7' ,
112
106
'Programming Language :: Python :: 3' ,
107
+ 'Programming Language :: Python :: 3 :: Only' ,
113
108
'Programming Language :: Python :: 3.6' ,
114
109
'Programming Language :: Python :: 3.7' ,
115
110
'Programming Language :: Python :: 3.8' ,
@@ -126,7 +121,7 @@ def run(self):
126
121
'pytest>=4.6' ,
127
122
'coverage[toml]>=5.2.1'
128
123
],
129
- python_requires = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.* ' ,
124
+ python_requires = '>=3.6 ' ,
130
125
extras_require = {
131
126
'testing' : [
132
127
'fields' ,
0 commit comments