|
2 | 2 | from setuptools import setup |
3 | 3 | from io import open |
4 | 4 |
|
5 | | -def get_description(): |
6 | | - working_directory = path.abspath(path.dirname(__file__)) |
7 | | - readme_path = path.join(working_directory, 'README.md') |
8 | | - with open(readme_path, encoding='utf-8') as f: |
9 | | - return (f.read(), 'text/markdown') |
10 | | - |
11 | | -description, description_content_type = get_description() |
| 5 | +with open('README.md', encoding='utf-8') as f: |
| 6 | + description = f.read() |
12 | 7 |
|
13 | 8 | setup( |
14 | 9 | name = 'messagebird', |
15 | 10 | packages = ['messagebird'], |
16 | | - version = '1.6.0', |
| 11 | + version = '2.0.0', |
17 | 12 | description = "MessageBird's REST API", |
18 | 13 | author = 'MessageBird', |
19 | 14 | author_email = 'support@messagebird.com', |
20 | 15 | long_description = description, |
21 | | - long_description_content_type = description_content_type, |
| 16 | + long_description_content_type = 'text/markdown', |
22 | 17 | url = 'https://github.com/messagebird/python-rest-api', |
23 | | - download_url = 'https://github.com/messagebird/python-rest-api/tarball/1.6.0', |
| 18 | + download_url = 'https://github.com/messagebird/python-rest-api/tarball/2.0.0', |
24 | 19 | keywords = ['messagebird', 'sms'], |
25 | 20 | install_requires = ['requests>=2.4.1', 'python-dateutil>=2.6.0'], |
| 21 | + extras_require = { |
| 22 | + 'dev': [ |
| 23 | + 'pytest', |
| 24 | + 'pytest-cov', |
| 25 | + 'mock>=2.0', |
| 26 | + 'codecov', |
| 27 | + 'pycodestyle', |
| 28 | + ] |
| 29 | + }, |
26 | 30 | license = 'BSD-2-Clause', |
27 | 31 | classifiers = [ |
28 | | - 'Programming Language :: Python', |
29 | | - 'Programming Language :: Python :: 2', |
30 | 32 | 'Programming Language :: Python :: 3', |
| 33 | + 'Programming Language :: Python :: 3.6', |
| 34 | + 'Programming Language :: Python :: 3.7', |
| 35 | + 'Programming Language :: Python :: 3.8', |
| 36 | + 'Programming Language :: Python :: 3.9', |
| 37 | + 'Operating System :: OS Independent', |
31 | 38 | ], |
32 | 39 | ) |
0 commit comments