From 9938a19b6f32f823f95c805b587ca8c5bdfb3a56 Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos <skalkoto@grnet.gr> Date: Wed, 29 Jul 2015 16:35:35 +0300 Subject: [PATCH] Fix small issues in setup.py * Use absolute path when opening README.md * Fix a pep8 issue --- setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 9bba333..2d7e10a 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright (C) 2011-2014 GRNET S.A. +# Copyright (C) 2011-2015 GRNET S.A. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,14 +17,17 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. import image_creator +from os.path import dirname, abspath, join from setuptools import setup, find_packages +README = join(dirname(abspath(__file__)), 'README.md') + setup( name='snf_image_creator', version=image_creator.__version__, description='Command line tool for creating images', - long_description=open('README.md').read(), + long_description=open(README).read(), url='https://github.com/grnet/snf-image', download_url='https://pypi.python.org/pypi/snf_image_creator', author='Synnefo development team', @@ -52,6 +55,6 @@ setup( 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7'], - keywords = 'cloud IaaS OS images' + keywords='cloud IaaS OS images' ) # vim: set sta sts=4 shiftwidth=4 sw=4 et ai : -- GitLab