From 46ff8a318b09c2d915bda22d9c5d93541e719680 Mon Sep 17 00:00:00 2001 From: Tanky Woo Date: Sun, 22 Jun 2014 15:46:23 +0800 Subject: [PATCH] Update long_description Use README.rst if exists --- setup.cfg | 4 ++-- setup.py | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index b88034e..dc22ba5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ -[metadata] -description-file = README.md +[aliases] +release = sdist bdist_egg register upload diff --git a/setup.py b/setup.py index 9ac08b1..99101f5 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ #!/usr/bin/env python from __future__ import with_statement +import os from setuptools import setup, find_packages import simiki @@ -13,6 +14,13 @@ with open("requirements.txt") as f: requires = [l for l in f.read().splitlines() if l] +readme = "README.md" +if os.path.exists("README.rst"): + readme = "README.rst" +with open(readme) as f: + long_description = f.read() + + setup( name="simiki", version=simiki.__version__, @@ -20,6 +28,7 @@ author="Tanky Woo", author_email="me@tankywoo.com", description="Simiki is a simple wiki framework, written in Python.", + long_description=long_description, keywords="simiki, wiki, generator", license="MIT License", packages=find_packages(),