-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
51 lines (41 loc) · 1.32 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from setuptools import setup, find_packages, Command
import os, subprocess, sys
class RunTests(Command):
description = "Run the test suite from the tests dir."
user_options = []
extra_env = {}
def run(self):
for env_name, env_value in self.extra_env.items():
os.environ[env_name] = str(env_value)
setup_dir = os.path.abspath(os.path.dirname(__file__))
try:
from nose.core import TestProgram
import nosedjango
import pstat_plugin
except ImportError:
print 'nose, nosedjango and pstat_plugin are required to run this test suite'
sys.exit(1)
os.chdir(setup_dir)
def initialize_options(self):
pass
def finalize_options(self):
pass
setup(
name='NoseDjangoPstat',
version='1.0.0',
author='Jason Ward',
author_email = '[email protected]',
description = 'A simple nose plugin for our test setup',
install_requires='nose>=0.11',
url = "https://github.com/jlward/nosedjango-pstat",
license = 'GNU LGPL',
packages = find_packages(),
zip_safe = False,
cmdclass = {'nosetests': RunTests},
include_package_data = True,
entry_points = {
'nose.plugins': [
'pstat_plugin = pstat_plugin:PstatPlugin',
]
}
)