|  | 
|  | 1 | +import sys | 
|  | 2 | +import io | 
| 1 | 3 | try: | 
| 2 | 4 |     from setuptools import setup | 
| 3 | 5 | except ImportError: | 
|  | 
| 13 | 15 |     version = f.read().strip() | 
| 14 | 16 | 
 | 
| 15 | 17 | 
 | 
|  | 18 | +if sys.version_info < (3, 0): | 
|  | 19 | +    long_description_open = io.open | 
|  | 20 | +else: | 
|  | 21 | +    long_description_open = open | 
|  | 22 | + | 
|  | 23 | +with long_description_open('README.md', encoding='utf-8') as f: | 
|  | 24 | +    long_description = f.read() | 
|  | 25 | + | 
|  | 26 | + | 
| 16 | 27 | setup( | 
| 17 | 28 |     name='easypost', | 
| 18 | 29 |     version=version, | 
|  | 
| 24 | 35 |     package_data={'easypost': ['../VERSION']}, | 
| 25 | 36 |     install_requires=install_requires, | 
| 26 | 37 |     test_suite='test', | 
|  | 38 | +    long_description=long_description, | 
|  | 39 | +    long_description_content_type='text/markdown', | 
|  | 40 | +    project_urls={ | 
|  | 41 | +        'CI': 'https://travis-ci.org/EasyPost/easypost-python', | 
|  | 42 | +    }, | 
|  | 43 | +    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4', | 
| 27 | 44 |     classifiers=[ | 
| 28 | 45 |         "Development Status :: 5 - Production/Stable", | 
| 29 | 46 |         "Environment :: Web Environment", | 
| 30 | 47 |         "Programming Language :: Python", | 
| 31 |  | -        "Programming Language :: Python :: 2.6", | 
| 32 | 48 |         "Programming Language :: Python :: 2.7", | 
| 33 | 49 |         "Programming Language :: Python :: 3.3", | 
| 34 | 50 |         "Programming Language :: Python :: 3.4", | 
|  | 
0 commit comments