|
2 | 2 |
|
3 | 3 | import sys |
4 | 4 | import os |
5 | | -from os.path import join, dirname |
| 5 | +from os.path import abspath, join, dirname |
6 | 6 | from distutils.core import setup |
7 | 7 |
|
8 | 8 | if 'develop' in sys.argv or 'bdist_wheel' in sys.argv: |
9 | 9 | import setuptools # support setuptools development mode and wheels |
10 | 10 |
|
11 | | -execfile(join(dirname(__file__), 'src', 'robot', 'version.py')) |
| 11 | +CURDIR = dirname(abspath(__file__)) |
12 | 12 |
|
| 13 | +execfile(join(CURDIR, 'src', 'robot', 'version.py')) |
| 14 | +VERSION = get_version(sep='') |
| 15 | +with open(join(CURDIR, 'README.rst')) as readme: |
| 16 | + install = 'https://github.com/robotframework/robotframework/blob/master/INSTALL.rst' |
| 17 | + LONG_DESCRIPTION = readme.read().replace( |
| 18 | + '`<INSTALL.rst>`__', '`INSTALL.rst <%s>`__' % install) |
| 19 | +CLASSIFIERS = """ |
| 20 | +Development Status :: 5 - Production/Stable |
| 21 | +License :: OSI Approved :: Apache Software License |
| 22 | +Operating System :: OS Independent |
| 23 | +Programming Language :: Python |
| 24 | +Topic :: Software Development :: Testing |
| 25 | +""".strip().splitlines() |
| 26 | +KEYWORDS = 'robotframework testing testautomation acceptancetesting atdd bdd' |
13 | 27 | # Maximum width in Windows installer seems to be 70 characters -------| |
14 | | -DESCRIPTION = """ |
| 28 | +WINDOWS_DESCRIPTION = """ |
15 | 29 | Robot Framework is a generic test automation framework for acceptance |
16 | 30 | testing and acceptance test-driven development (ATDD). It has |
17 | 31 | easy-to-use tabular test data syntax and utilizes the keyword-driven |
|
20 | 34 | new keywords from existing ones using the same syntax that is used for |
21 | 35 | creating test cases. |
22 | 36 | """.strip() |
23 | | -CLASSIFIERS = """ |
24 | | -Development Status :: 5 - Production/Stable |
25 | | -License :: OSI Approved :: Apache Software License |
26 | | -Operating System :: OS Independent |
27 | | -Programming Language :: Python |
28 | | -Topic :: Software Development :: Testing |
29 | | -""".strip().splitlines() |
30 | 37 | PACKAGES = ['robot', 'robot.api', 'robot.conf', |
31 | 38 | 'robot.htmldata', 'robot.libdocpkg', 'robot.libraries', |
32 | 39 | 'robot.model', 'robot.output', 'robot.parsing', |
|
47 | 54 | SCRIPTS = [s+'.bat' for s in SCRIPTS] |
48 | 55 | if 'bdist_wininst' in sys.argv: |
49 | 56 | SCRIPTS.append('robot_postinstall.py') |
| 57 | + LONG_DESCRIPTION = WINDOWS_DESCRIPTION |
50 | 58 |
|
51 | 59 | setup( |
52 | 60 | name = 'robotframework', |
53 | | - version = get_version(sep=''), |
| 61 | + version = VERSION, |
54 | 62 | author = 'Robot Framework Developers', |
55 | 63 | author_email = 'robotframework@gmail.com', |
56 | 64 | url = 'http://robotframework.org', |
57 | 65 | download_url = 'https://pypi.python.org/pypi/robotframework', |
58 | 66 | license = 'Apache License 2.0', |
59 | 67 | description = 'A generic test automation framework', |
60 | | - long_description = DESCRIPTION, |
61 | | - keywords = 'robotframework testing testautomation atdd bdd', |
| 68 | + long_description = LONG_DESCRIPTION, |
| 69 | + keywords = KEYWORDS, |
62 | 70 | platforms = 'any', |
63 | 71 | classifiers = CLASSIFIERS, |
64 | 72 | package_dir = {'': 'src'}, |
|
0 commit comments