From 5acbef0364a27cb6ee98884e9f7a7247eebde8e7 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 10 Dec 2012 00:18:07 +0100 Subject: [PATCH] Improve setup.py and add the test command. --- setup.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index a5248a6..4046e2e 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,8 @@ # -*- coding:utf-8 -*- -from setuptools import setup, find_packages import sys +from setuptools import setup, find_packages +from sigal import __version__ requires = ['PIL', 'jinja2', 'Markdown', 'clint'] if sys.version_info < (2, 7): @@ -11,20 +12,25 @@ entry_points = { 'console_scripts': ['sigal = sigal:main'] } +with open('README.rst') as f: + README = f.read() + setup( name='sigal', - version='0.1-dev', + version=__version__, url='https://github.com/saimn/sigal', license='MIT', author='Simon Conseil', author_email='contact@saimon.org', description='Simple static gallery generator', - long_description=open('README.rst').read(), + long_description=README, packages=find_packages(), zip_safe=False, include_package_data=True, platforms='any', install_requires=requires, + test_requires=['nose'], + test_suite='nose.collector', entry_points=entry_points, classifiers=[ 'Development Status :: 4 - Beta',