|
| 1 | +import sys |
| 2 | +from codecs import open |
| 3 | +from os import path |
| 4 | + |
1 | 5 | from setuptools import setup, find_packages |
2 | 6 |
|
| 7 | +EXCLUDE_FROM_PACKAGES = ['tests'] |
| 8 | + |
| 9 | +needs_mock = sys.version_info < (3, 3) |
| 10 | +mock = ['mock'] if needs_mock else [] |
| 11 | + |
| 12 | +here = path.abspath(path.dirname(__file__)) |
| 13 | + |
3 | 14 | version = "2.2.1" |
4 | 15 |
|
5 | | -try: |
6 | | - with open("README") as f: |
7 | | - readme_content = f.read() |
8 | | -except (IOError, Exception): |
9 | | - readme_content = "" |
| 16 | +with open(path.join(here, 'README.rst'), encoding='utf-8') as f: |
| 17 | + long_description = f.read() |
10 | 18 |
|
11 | 19 | setup(name='telesign', |
12 | 20 | version=version, |
13 | | - description="Telesign SDK", |
14 | | - license="MIT License", |
| 21 | + description="TeleSign SDK", |
| 22 | + license="MIT", |
15 | 23 | classifiers=[ |
16 | 24 | "Development Status :: 5 - Production/Stable", |
17 | 25 | "Intended Audience :: Developers", |
18 | 26 | "License :: OSI Approved :: MIT License", |
19 | 27 | "Natural Language :: English", |
20 | 28 | "Programming Language :: Python", |
| 29 | + "Programming Language :: Python :: 2", |
21 | 30 | "Programming Language :: Python :: 2.6", |
22 | 31 | "Programming Language :: Python :: 2.7", |
23 | 32 | "Programming Language :: Python :: 3", |
|
26 | 35 | "Programming Language :: Python :: 3.5", |
27 | 36 | "Programming Language :: Python :: 3.6", |
28 | 37 | ], |
29 | | - long_description=readme_content, |
| 38 | + long_description=long_description, |
30 | 39 | keywords='telesign, sms, voice, mobile, authentication, identity, messaging', |
31 | 40 | author='TeleSign Corp.', |
32 | 41 | author_email='support@telesign.com', |
33 | 42 | url="https://github.com/telesign/python_telesign", |
34 | 43 | install_requires=['requests'], |
35 | | - tests_require=['nose', 'mock', 'pytz', 'coverage', 'codecov'], |
36 | | - packages=find_packages(exclude=['test', 'test.*', 'examples', 'examples.*']), |
| 44 | + test_suite='nose.collector', |
| 45 | + tests_require=['nose', 'pytz'] + mock, |
| 46 | + packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), |
37 | 47 | ) |
0 commit comments