File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from os import path
22from 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+
410description , description_content_type = get_description ()
511
612setup (
1117 author = 'MessageBird' ,
1218 author_email = 'support@messagebird.com' ,
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' ],
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' )
You can’t perform that action at this time.
0 commit comments