setup.py: add changelog in the long description

This commit is contained in:
Mathieu Virbel 2015-01-27 17:33:17 +01:00
parent 4d76f5f0e6
commit b6d8eb9d13

View file

@ -3,6 +3,7 @@ Buildozer
''' '''
from setuptools import setup from setuptools import setup
from os.path import dirname, join
import codecs import codecs
import os import os
import re import re
@ -24,10 +25,17 @@ def find_version(*file_paths):
return version_match.group(1) return version_match.group(1)
raise RuntimeError("Unable to find version string.") raise RuntimeError("Unable to find version string.")
curdir = dirname(__file__)
with open(join(curdir, "README.rst")) as fd:
readme = fd.read()
with open(join(curdir, "CHANGELOG.md")) as fd:
changelog = fd.read()
setup( setup(
name='buildozer', name='buildozer',
version=find_version('buildozer', '__init__.py'), version=find_version('buildozer', '__init__.py'),
description='Generic Python packager for Android / iOS and Desktop', description='Generic Python packager for Android / iOS and Desktop',
long_description=readme + "\n\n" + changelog,
author='Mathieu Virbel', author='Mathieu Virbel',
author_email='mat@kivy.org', author_email='mat@kivy.org',
url='http://github.com/kivy/buildozer', url='http://github.com/kivy/buildozer',