mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-27 20:54:33 +01:00
Add long_description from a plugin's README.md
This commit is contained in:
parent
f54588f9dd
commit
e990ffa30c
@ -64,6 +64,13 @@ if setuptools:
|
|||||||
if url:
|
if url:
|
||||||
kwargs.setdefault('url', url)
|
kwargs.setdefault('url', url)
|
||||||
|
|
||||||
|
if 'long_description' not in kwargs:
|
||||||
|
readme_path = os.path.join(
|
||||||
|
os.path.dirname(plugin.__file__), 'README.md')
|
||||||
|
if os.path.isfile(readme_path):
|
||||||
|
with open(readme_path, 'r') as fd:
|
||||||
|
kwargs['long_description'] = fd.read()
|
||||||
|
|
||||||
module_name = kwargs['name'].replace('-', '_')
|
module_name = kwargs['name'].replace('-', '_')
|
||||||
kwargs.setdefault('packages', [module_name])
|
kwargs.setdefault('packages', [module_name])
|
||||||
kwargs.setdefault('package_dir', {module_name: '.'})
|
kwargs.setdefault('package_dir', {module_name: '.'})
|
||||||
|
Loading…
Reference in New Issue
Block a user