Skip to content
Snippets Groups Projects
Commit 9938a19b authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix small issues in setup.py

* Use absolute path when opening README.md
* Fix a pep8 issue
parent c3e5d47e
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- 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 # 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 # it under the terms of the GNU General Public License as published by
...@@ -17,14 +17,17 @@ ...@@ -17,14 +17,17 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import image_creator import image_creator
from os.path import dirname, abspath, join
from setuptools import setup, find_packages from setuptools import setup, find_packages
README = join(dirname(abspath(__file__)), 'README.md')
setup( setup(
name='snf_image_creator', name='snf_image_creator',
version=image_creator.__version__, version=image_creator.__version__,
description='Command line tool for creating images', 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', url='https://github.com/grnet/snf-image',
download_url='https://pypi.python.org/pypi/snf_image_creator', download_url='https://pypi.python.org/pypi/snf_image_creator',
author='Synnefo development team', author='Synnefo development team',
...@@ -52,6 +55,6 @@ setup( ...@@ -52,6 +55,6 @@ setup(
'Operating System :: POSIX :: Linux', 'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7'], '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 : # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment