77from setuptools import setup
88from setuptools .command .test import test as TestCommand
99
10- HERE = os .path .abspath (os .path .dirname (__file__ ))
11- PACKAGE_NAME = 'mailjet'
12-
13- with open (os .path .join (HERE , 'README.md' )) as fp :
14- README = fp .read ()
15- with open (os .path .join (HERE , PACKAGE_NAME , '__init__.py' )) as fp :
16- VERSION = re .search ("__version__ = '([^']+)'" , fp .read ()).group (1 )
17-
18-
19- class PyTest (TestCommand ):
20- user_options = [('pytest-args=' , 'a' , "Arguments to pass to py.test" )]
10+ with open (os .path .join (os .path .dirname (__file__ ), 'README.md' )) as readme :
11+ README = readme .read ()
2112
22- def initialize_options (self ):
23- TestCommand .initialize_options (self )
24- self .pytest_args = []
25-
26- def finalize_options (self ):
27- TestCommand .finalize_options (self )
28- self .test_args = []
29- self .test_suite = True
30-
31- def run_tests (self ):
32- #import here, cause outside the eggs aren't loaded
33- import pytest
34- errno = pytest .main (self .pytest_args )
35- sys .exit (errno )
13+ HERE = os .path .abspath (os .path .dirname (__file__ ))
14+ PACKAGE_NAME = 'mailjet-rest'
15+ VERSION = 'v1.0.0'
3616
3717setup (
3818 name = PACKAGE_NAME ,
3919 version = VERSION ,
4020 author = 'starenka' ,
412142- maintainer = 'starenka ' ,
43- maintainer_email = 'starenka0gmail .com' ,
44- url = 'https://FIXME ' ,
45- description = ('Simple Mailjet V3 API wrapper' ),
22+ maintainer = 'Guillaume Badi ' ,
23+ maintainer_email = 'gbadi@mailjet .com' ,
24+ url = 'https://github.com/mailjet/mailjet-apiv3-python ' ,
25+ description = ('Mailjet V3 API wrapper' ),
4626 long_description = README ,
4727 classifiers = ['Development Status :: 3 - Alpha' ,
4828 'Environment :: Console' ,
@@ -52,15 +32,13 @@ def run_tests(self):
5232 'Operating System :: OS Independent' ,
5333 'Programming Language :: Python :: 2.6' ,
5434 'Programming Language :: Python :: 2.7' ,
35+ 'Programming Language :: Python :: 3.2' ,
5536 'Topic :: Utilities' ],
5637 license = 'GPLv3' ,
57- keywords = 'mailjet api wrapper' ,
38+ keywords = 'mailjet api wrapper email client ' ,
5839
59- packages = [PACKAGE_NAME ],
60- package_data = {'' : ['README.md' , 'tests' , '*.ini' ], PACKAGE_NAME : []},
6140 include_package_data = True ,
6241 install_requires = ['requests>=2.4.3' ],
63- tests_require = ['pytest' ],
64- cmdclass = {'test' : PyTest },
42+ tests_require = ['unittest' ],
6543 entry_points = {},
6644)
0 commit comments