33
44from distutils .core import Command
55
6+
67class Tests (Command ):
7- ''' run tests'''
8+ """ run tests"""
89
9- description = ' runs unittest to execute all tests'
10+ description = " runs unittest to execute all tests"
1011
1112 user_options = []
13+
1214 def initialize_options (self ):
1315 pass
1416
@@ -17,32 +19,33 @@ def finalize_options(self):
1719
1820 def run (self ):
1921 import unittest
22+
2023 runner = unittest .runner .TextTestRunner ()
2124 test_loader = unittest .TestLoader ()
22- test = test_loader .discover (' tests' )
25+ test = test_loader .discover (" tests" )
2326 runner .run (test )
2427
2528
2629setup (
27- name = ' mercadopago' ,
28- version = ' 2.0.0' ,
29- author = ' MP SDK <mp_sdk@mercadopago.com>' ,
30- author_email = ' mp_sdk@mercadopago.com' ,
31- keywords = ' api mercadopago checkout payment ipn sdk integration' ,
32- packages = [' mercadopago' ],
33- url = ' https://github.com/mercadopago/sdk-python' ,
34- description = ' Mercadopago SDK module for Payments integration' ,
35- long_description = open (' README.rst' ).read (),
36- install_requires = ' requests>=2.4.3' ,
37- cmdclass = { ' test' : Tests },
30+ name = " mercadopago" ,
31+ version = " 2.0.0" ,
32+ author = " MP SDK <mp_sdk@mercadopago.com>" ,
33+ author_email = " mp_sdk@mercadopago.com" ,
34+ keywords = " api mercadopago checkout payment ipn sdk integration" ,
35+ packages = [" mercadopago" ],
36+ url = " https://github.com/mercadopago/sdk-python" ,
37+ description = " Mercadopago SDK module for Payments integration" ,
38+ long_description = open (" README.rst" ).read (),
39+ install_requires = " requests>=2.4.3" ,
40+ cmdclass = { " test" : Tests },
3841 classifiers = [
39- ' Development Status :: 4 - Beta' ,
40- ' Intended Audience :: Developers' ,
41- ' Operating System :: OS Independent' ,
42- ' Programming Language :: Python' ,
43- ' Programming Language :: Python :: 2' ,
44- ' Programming Language :: Python :: 3.4' ,
45- ' Topic :: Software Development :: Libraries :: Python Modules' ,
46- ' License :: Freely Distributable' ,
47- ]
42+ " Development Status :: 4 - Beta" ,
43+ " Intended Audience :: Developers" ,
44+ " Operating System :: OS Independent" ,
45+ " Programming Language :: Python" ,
46+ " Programming Language :: Python :: 2" ,
47+ " Programming Language :: Python :: 3.4" ,
48+ " Topic :: Software Development :: Libraries :: Python Modules" ,
49+ " License :: Freely Distributable" ,
50+ ],
4851)
0 commit comments