File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
from os import path
2
2
from setuptools import setup
3
3
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
+
4
10
description , description_content_type = get_description ()
5
11
6
12
setup (
11
17
author = 'MessageBird' ,
12
18
author_email = '[email protected] ' ,
13
19
long_description = description ,
14
- long_description_content_type = description_content_type
20
+ long_description_content_type = description_content_type ,
15
21
url = 'https://github.com/messagebird/python-rest-api' ,
16
22
download_url = 'https://github.com/messagebird/python-rest-api/tarball/1.3.1' ,
17
23
keywords = ['messagebird' , 'sms' ],
23
29
'Programming Language :: Python :: 3' ,
24
30
],
25
31
)
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' )
You can’t perform that action at this time.
0 commit comments