Skip to content

Commit b192bde

Browse files
committed
Fix syntax error in setup.py
1 parent 4290d96 commit b192bde

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
from os import path
22
from setuptools import setup
33

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+
410
description, description_content_type = get_description()
511

612
setup(
@@ -11,7 +17,7 @@
1117
author = 'MessageBird',
1218
author_email = '[email protected]',
1319
long_description = description,
14-
long_description_content_type = description_content_type
20+
long_description_content_type = description_content_type,
1521
url = 'https://github.com/messagebird/python-rest-api',
1622
download_url = 'https://github.com/messagebird/python-rest-api/tarball/1.3.1',
1723
keywords = ['messagebird', 'sms'],
@@ -23,9 +29,3 @@
2329
'Programming Language :: Python :: 3',
2430
],
2531
)
26-
27-
def get_description():
28-
working_directory = path.abspath(path.dirname(__file__))
29-
readme_path = path.join(working_directory, 'README.md')
30-
with open(readme_path, encoding='utf-8') as f:
31-
return (f.read(), 'text/markdown')

0 commit comments

Comments
 (0)