root/trunk/setup.py

Revision 182, 1.2 kB (checked in by mk, 2 years ago)

Added 'nose' tests_require setup.py directive.

Line 
1 #! /usr/bin/env python
2 import sys
3 import os
4
5 from setuptools import setup
6 from pkg_resources import require
7 from cheesecake import __version__ as VERSION
8
9 # Instruct nose to use doctests.
10 os.environ['NOSE_WITH_DOCTEST'] = 'True'
11 os.environ['NOSE_DOCTEST_TESTS'] = 'True'
12 os.environ['NOSE_INCLUDE'] = 'unit'
13 os.environ['NOSE_INCLUDE_EXE'] = 'True'
14
15 setup(
16         name = 'Cheesecake',
17         version = VERSION,
18
19         # metadata for upload to PyPI
20         author = "Grig Gheorghiu and Michal Kwiatkowski",
21         author_email = "grig@gheorghiu.net and ruby@joker.linuxstuff.pl",
22         description = 'Computes "goodness" index for Python packages based on various empirical "kwalitee" factors',
23         license = "PSF",
24         keywords = "cheesecake quality index kwalitee cheeseshop pypi",
25         url = "http://pycheesecake.org/",
26
27         packages = ['cheesecake',
28                     ],
29         scripts = ['cheesecake_index',
30                     ],
31         entry_points = {
32             'console_scripts': [
33                 'cheesecake_index = cheesecake.cheesecake_index:main',
34             ]
35         },
36         test_suite = 'nose.collector',
37         tests_require = ['nose']
38 )
Note: See TracBrowser for help on using the browser.