add description to pypi

This commit is contained in:
Freddy Tan 2016-11-20 00:48:59 +08:00
parent a17e3517c0
commit 4989717379
2 changed files with 6 additions and 6 deletions

3
DESCRIPTION.rst Normal file
View file

@ -0,0 +1,3 @@
Please see README at github_
.. _github: https://github.com/beelit94/python-terraform

View file

@ -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():