Commit 8bab46e7 authored by Kirill Smelkov's avatar Kirill Smelkov

setup: Autogenerate long description from readme and changelog

With the target being to show it on pypi project page.
parent 1f98f91e
...@@ -199,13 +199,17 @@ if os.path.exists('.git'): # FIXME won't work if we are checked out as e.g. sub ...@@ -199,13 +199,17 @@ if os.path.exists('.git'): # FIXME won't work if we are checked out as e.g. sub
register_as_entrypoint(git_lsfiles, 'git', 'setuptools.file_finders', 'setuptools') register_as_entrypoint(git_lsfiles, 'git', 'setuptools.file_finders', 'setuptools')
# read file content
def readfile(path):
with open(path, 'r') as f:
return f.read()
setup( setup(
name = 'wendelin.core', name = 'wendelin.core',
version = '0.4', version = '0.4',
description = 'Out-of-core NumPy arrays', description = 'Out-of-core NumPy arrays',
long_description = '%s\n----\n\n%s' % (
readfile('README.rst'), readfile('CHANGELOG')),
url = 'https://lab.nexedi.com/nexedi/wendelin.core', url = 'https://lab.nexedi.com/nexedi/wendelin.core',
license = 'GPLv3+ with wide exception for Open-Source', license = 'GPLv3+ with wide exception for Open-Source',
author = 'Kirill Smelkov', author = 'Kirill Smelkov',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment