From 1ba2ba3894822d0e8d8f329a39e5639e11974e76 Mon Sep 17 00:00:00 2001 From: Freddy Tan Date: Sat, 19 Nov 2016 23:56:00 +0800 Subject: [PATCH] try to build on travis --- .travis.yml | 2 +- setup.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2b6d084..c3bebc3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ before_script: install: - "curl https://bootstrap.pypa.io/ez_setup.py -o - | python" - "pip install -r test/requirements.txt" - - "sudo apt-get -y install pypandoc" + - "sudo apt-get -y install pandoc" - "pip install ." # command to run tests script: diff --git a/setup.py b/setup.py index dc32a6a..a9a3acf 100644 --- a/setup.py +++ b/setup.py @@ -6,12 +6,14 @@ import os dependencies = [] 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): - long_description = open('README.md').read() +except(IOError, ImportError, OSError): + long_description = short_description def get_version(): @@ -31,7 +33,7 @@ setup( license='MIT', author='Freddy Tan', author_email='beelit94@gmail.com', - description='This is a python module provide a wrapper of terraform command line tool', + description=short_description, long_description=long_description, packages=['python_terraform'], package_data={},