-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
73 lines (63 loc) · 2.24 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- coding: utf-8 -*-
import os
import sys
folder = os.path.dirname(os.path.abspath(__file__))
exec(open(os.path.join(folder, 'selenose', '__init__.py')).read())
onsite = os.path.exists(os.path.join(folder, 'PKG-INFO'))
from selenose import libs
flag = '--include'
include = ( flag in sys.argv )
if include:
sys.argv.remove(flag)
if not onsite and not include and 'bdist_egg' in sys.argv:
print >> sys.stderr, 'bdist_egg is no available, can not embed jar in .egg for license reasons...'
sys.exit(1)
if not include and 'sdist' in sys.argv:
libs.clean(__selenium_version__, full=True)
else:
libs.clean(__selenium_version__)
libs.download(__selenium_version__)
try: import setuptools
except ImportError:
import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup, find_packages
setup(
name = 'selenose',
version = __version__,
description = 'Selenium plugin for nose and django-jenkins',
long_description = 'Selenium plugin for nose/nosetests and django-jenkins.',
url = 'https://github.com/shiningpanda/selenose/',
download_url = 'http://pypi.python.org/pypi/selenose/',
license = 'GNU Affero General Public License',
author = 'ShiningPanda',
author_email = '[email protected]',
packages = find_packages(),
include_package_data = True,
zip_safe = False,
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Plugins',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Natural Language :: English',
'Programming Language :: Python',
'Topic :: Software Development :: Testing',
],
install_requires = [
'nose >= 1.1.2',
'selenium >= %s' % __selenium_version__,
],
entry_points = {
'nose.plugins.0.10': [
'selenium-server = selenose.plugins:SeleniumServerPlugin',
'selenium-driver = selenose.plugins:SeleniumDriverPlugin',
],
'console_scripts': [
'selenium-server = selenose.server:_run',
],
},
test_suite = 'nose.collector',
)