This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
forked from robotframework/robotframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·77 lines (72 loc) · 3.05 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
74
75
76
77
#!/usr/bin/env python
from __future__ import with_statement
import sys
import os
from os.path import abspath, join, dirname
from distutils.core import setup
if 'develop' in sys.argv or 'bdist_wheel' in sys.argv:
import setuptools # support setuptools development mode and wheels
CURDIR = dirname(abspath(__file__))
execfile(join(CURDIR, 'src', 'robot', 'version.py'))
VERSION = get_version()
with open(join(CURDIR, 'README.rst')) as readme:
install = 'https://github.com/robotframework/robotframework/blob/master/INSTALL.rst'
LONG_DESCRIPTION = readme.read().replace(
'`<INSTALL.rst>`__', '`INSTALL.rst <%s>`__' % install)
CLASSIFIERS = """
Development Status :: 5 - Production/Stable
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Topic :: Software Development :: Testing
""".strip().splitlines()
KEYWORDS = 'robotframework testing testautomation acceptancetesting atdd bdd'
# Maximum width in Windows installer seems to be 70 characters -------|
WINDOWS_DESCRIPTION = """
Robot Framework is a generic test automation framework for acceptance
testing and acceptance test-driven development (ATDD). It has
easy-to-use tabular test data syntax and utilizes the keyword-driven
testing approach. Its testing capabilities can be extended by test
libraries implemented either with Python or Java, and users can create
new keywords from existing ones using the same syntax that is used for
creating test cases.
""".strip()
PACKAGES = ['robot', 'robot.api', 'robot.conf',
'robot.htmldata', 'robot.libdocpkg', 'robot.libraries',
'robot.model', 'robot.output', 'robot.parsing',
'robot.reporting', 'robot.result', 'robot.running',
'robot.running.arguments', 'robot.running.timeouts',
'robot.utils', 'robot.variables', 'robot.writer']
PACKAGE_DATA = [join('htmldata', directory, pattern)
for directory in 'rebot', 'libdoc', 'testdoc', 'lib', 'common'
for pattern in '*.html', '*.css', '*.js']
if sys.platform.startswith('java'):
SCRIPTS = ['jybot', 'jyrebot']
elif sys.platform == 'cli':
SCRIPTS = ['ipybot', 'ipyrebot']
else:
SCRIPTS = ['pybot', 'rebot']
SCRIPTS = [join('src', 'bin', s) for s in SCRIPTS]
if os.sep == '\\':
SCRIPTS = [s+'.bat' for s in SCRIPTS]
if 'bdist_wininst' in sys.argv:
SCRIPTS.append('robot_postinstall.py')
LONG_DESCRIPTION = WINDOWS_DESCRIPTION
setup(
name = 'robotframework',
version = VERSION,
author = 'Robot Framework Developers',
author_email = '[email protected]',
url = 'http://robotframework.org',
download_url = 'https://pypi.python.org/pypi/robotframework',
license = 'Apache License 2.0',
description = 'A generic test automation framework',
long_description = LONG_DESCRIPTION,
keywords = KEYWORDS,
platforms = 'any',
classifiers = CLASSIFIERS,
package_dir = {'': 'src'},
package_data = {'robot': PACKAGE_DATA},
packages = PACKAGES,
scripts = SCRIPTS,
)