From 4989717379c24892343dab10af3e549a54121058 Mon Sep 17 00:00:00 2001 From: Freddy Tan Date: Sun, 20 Nov 2016 00:48:59 +0800 Subject: [PATCH] add description to pypi --- DESCRIPTION.rst | 3 +++ setup.py | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 DESCRIPTION.rst diff --git a/DESCRIPTION.rst b/DESCRIPTION.rst new file mode 100644 index 0000000..2ed66b9 --- /dev/null +++ b/DESCRIPTION.rst @@ -0,0 +1,3 @@ +Please see README at github_ + +.. _github: https://github.com/beelit94/python-terraform \ No newline at end of file diff --git a/setup.py b/setup.py index a9a3acf..7498776 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ """ -My Tool does one thing, and one thing well. +This is a python module provide a wrapper of terraform command line tool """ from setuptools import setup import os @@ -9,11 +9,8 @@ module_name = 'python-terraform' short_description = 'This is a python module provide a wrapper ' \ 'of terraform command line tool' -try: - import pypandoc - long_description = pypandoc.convert('README.md', 'rst') -except(IOError, ImportError, OSError): - long_description = short_description +with open('DESCRIPTION.rst') as f: + long_description = f.read() def get_version():