44import sys
55
66
7- class PyTest (TestCommand ):
8- user_options = [('pytest-args=' , 'a' , "Arguments to pass to pytest" )]
9-
10- def initialize_options (self ):
11- TestCommand .initialize_options (self )
12- self .pytest_args = []
13-
14- def run_tests (self ):
15- import shlex
16- #import here, cause outside the eggs aren't loaded
17- import pytest
18- errno = pytest .main (shlex .split (self .pytest_args ))
19- sys .exit (errno )
20-
21-
227def get_version ():
238 basedir = os .path .dirname (__file__ )
249 with open (os .path .join (basedir , 'textile/version.py' )) as f :
@@ -48,6 +33,7 @@ def get_version():
4833 'Programming Language :: Python :: 3.6' ,
4934 'Programming Language :: Python :: 3.7' ,
5035 'Programming Language :: Python :: 3.8' ,
36+ 'Programming Language :: Python :: 3.9' ,
5137 'Topic :: Software Development :: Libraries :: Python Modules' ,
5238 ],
5339 keywords = 'textile,text,html markup' ,
@@ -60,10 +46,8 @@ def get_version():
6046 'imagesize' : ['Pillow>=3.0.0' ],
6147 },
6248 entry_points = {'console_scripts' : ['pytextile=textile.__main__:main' ]},
63- setup_requires = ['pytest-runner' ],
6449 tests_require = ['pytest' , 'pytest-cov' ],
65- cmdclass = {'test' : PyTest },
6650 include_package_data = True ,
6751 zip_safe = False ,
68- python_requires = '~ =3.5' ,
52+ python_requires = '> =3.5' ,
6953)
0 commit comments