Skip to content

Commit 81cfc0c

Browse files
authored
Merge pull request #26 from messagebird/add-long-description
Add long_description to setup.py based on README
2 parents 23ee691 + b192bde commit 81cfc0c

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

Diff for: messagebird/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from messagebird.verify import Verify
1515

1616
ENDPOINT = 'https://rest.messagebird.com'
17-
CLIENT_VERSION = '1.3.0'
17+
CLIENT_VERSION = '1.3.1'
1818
PYTHON_VERSION = '%d.%d.%d' % (sys.version_info[0], sys.version_info[1], sys.version_info[2])
1919
USER_AGENT = 'MessageBird/ApiClient/%s Python/%s' % (CLIENT_VERSION, PYTHON_VERSION)
2020

Diff for: setup.py

+23-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1+
from os import path
12
from setuptools import setup
23

4+
def get_description():
5+
working_directory = path.abspath(path.dirname(__file__))
6+
readme_path = path.join(working_directory, 'README.md')
7+
with open(readme_path, encoding='utf-8') as f:
8+
return (f.read(), 'text/markdown')
9+
10+
description, description_content_type = get_description()
11+
312
setup(
4-
name = 'messagebird',
5-
packages = ['messagebird'],
6-
version = '1.3.0',
7-
description = "MessageBird's REST API",
8-
author = 'MessageBird',
9-
author_email = '[email protected]',
10-
url = 'https://github.com/messagebird/python-rest-api',
11-
download_url = 'https://github.com/messagebird/python-rest-api/tarball/1.3.0',
12-
keywords = ['messagebird', 'sms'],
13-
install_requires = ['requests>=2.4.1'],
14-
license = 'BSD-2-Clause',
15-
classifiers = [
13+
name = 'messagebird',
14+
packages = ['messagebird'],
15+
version = '1.3.1',
16+
description = "MessageBird's REST API",
17+
author = 'MessageBird',
18+
author_email = '[email protected]',
19+
long_description = description,
20+
long_description_content_type = description_content_type,
21+
url = 'https://github.com/messagebird/python-rest-api',
22+
download_url = 'https://github.com/messagebird/python-rest-api/tarball/1.3.1',
23+
keywords = ['messagebird', 'sms'],
24+
install_requires = ['requests>=2.4.1'],
25+
license = 'BSD-2-Clause',
26+
classifiers = [
1627
'Programming Language :: Python',
1728
'Programming Language :: Python :: 2',
1829
'Programming Language :: Python :: 3',

0 commit comments

Comments
 (0)