55
66major , minor = sys .version_info [:2 ]
77
8- install_requires = io .open (os .path .join (os .path .dirname (__file__ ), 'requirements.txt' )).readlines ()
9- tests_requires = io .open (os .path .join (os .path .dirname (__file__ ), 'test_requirements.txt' )).readlines ()
8+ install_requires = io .open (
9+ os .path .join (os .path .dirname (__file__ ), "requirements.txt" )
10+ ).readlines ()
11+ tests_requires = io .open (
12+ os .path .join (os .path .dirname (__file__ ), "test_requirements.txt" )
13+ ).readlines ()
1014
11- pook_requires = (' pook>=0.2.1' , )
12- exclude_packages = (' tests' , ' tests.*' )
15+ pook_requires = (" pook>=0.2.1" , )
16+ exclude_packages = (" tests" , " tests.*" )
1317
1418
1519def read_version (package ):
16- init_path = os .path .join (package , ' __init__.py' )
17- with io .open (init_path , 'r' ) as fd :
20+ init_path = os .path .join (package , " __init__.py" )
21+ with io .open (init_path , "r" ) as fd :
1822 for line in fd :
19- if line .startswith (' __version__ = ' ):
23+ if line .startswith (" __version__ = " ):
2024 return line .split ()[- 1 ].strip ().strip ('"' )
2125
2226
23- package_name = ' mocket'
27+ package_name = " mocket"
2428
2529# Get package current version
2630version = read_version (package_name )
@@ -29,39 +33,39 @@ def read_version(package):
2933setup (
3034 name = package_name ,
3135 version = read_version (package_name ),
32- author = ' Giorgio Salluzzo' ,
33- author_email = ' giorgio.salluzzo@gmail.com' ,
34- url = ' https://github.com/mindflayer/python-mocket' ,
35- description = ' Socket Mock Framework - for all kinds of socket animals, web-clients included - \
36- with gevent/asyncio/SSL support' ,
37- long_description = io .open (' README.rst' , encoding = ' utf-8' ).read (),
36+ author = " Giorgio Salluzzo" ,
37+ author_email = " giorgio.salluzzo@gmail.com" ,
38+ url = " https://github.com/mindflayer/python-mocket" ,
39+ description = " Socket Mock Framework - for all kinds of socket animals, web-clients included - \
40+ with gevent/asyncio/SSL support" ,
41+ long_description = io .open (" README.rst" , encoding = " utf-8" ).read (),
3842 packages = find_packages (exclude = exclude_packages ),
3943 install_requires = install_requires ,
4044 extras_require = {
41- ' speedups' : [
45+ " speedups" : [
4246 'xxhash;platform_python_implementation=="CPython"' ,
43- 'xxhash-cffi;platform_python_implementation=="PyPy"'
47+ 'xxhash-cffi;platform_python_implementation=="PyPy"' ,
4448 ],
45- ' tests' : tests_requires ,
46- ' dev' : [],
47- ' pook' : pook_requires , # plugins version supporting mocket.plugins.pook.MocketEngine
49+ " tests" : tests_requires ,
50+ " dev" : [],
51+ " pook" : pook_requires , # plugins version supporting mocket.plugins.pook.MocketEngine
4852 },
49- test_suite = ' runtests.runtests' ,
50- license = ' BSD' ,
53+ test_suite = " runtests.runtests" ,
54+ license = " BSD" ,
5155 classifiers = [
52- ' Development Status :: 5 - Production/Stable' ,
53- ' Intended Audience :: Developers' ,
54- ' Operating System :: OS Independent' ,
55- ' Programming Language :: Python :: 2.7' ,
56- ' Programming Language :: Python :: 3.3' ,
57- ' Programming Language :: Python :: 3.4' ,
58- ' Programming Language :: Python :: 3.5' ,
59- ' Programming Language :: Python :: 3.6' ,
60- ' Programming Language :: Python :: 3.7' ,
61- ' Programming Language :: Python :: Implementation :: CPython' ,
62- ' Programming Language :: Python :: Implementation :: PyPy' ,
63- ' Topic :: Software Development' ,
64- ' Topic :: Software Development :: Testing' ,
65- ' License :: OSI Approved :: BSD License' ,
56+ " Development Status :: 5 - Production/Stable" ,
57+ " Intended Audience :: Developers" ,
58+ " Operating System :: OS Independent" ,
59+ " Programming Language :: Python :: 2.7" ,
60+ " Programming Language :: Python :: 3.4" ,
61+ " Programming Language :: Python :: 3.5" ,
62+ " Programming Language :: Python :: 3.6" ,
63+ " Programming Language :: Python :: 3.7" ,
64+ " Programming Language :: Python :: 3.8" ,
65+ " Programming Language :: Python :: Implementation :: CPython" ,
66+ " Programming Language :: Python :: Implementation :: PyPy" ,
67+ " Topic :: Software Development" ,
68+ " Topic :: Software Development :: Testing" ,
69+ " License :: OSI Approved :: BSD License" ,
6670 ],
6771)
0 commit comments