|
12 | 12 |
|
13 | 13 | CURDIR = dirname(abspath(__file__)) |
14 | 14 |
|
15 | | -execfile(join(CURDIR, 'src', 'robot', 'version.py')) |
16 | | -VERSION = get_version() |
17 | | -with open(join(CURDIR, 'README.rst')) as readme: |
18 | | - LONG_DESCRIPTION = readme.read() |
| 15 | +with open(join(CURDIR, 'src', 'robot', 'version.py')) as f: |
| 16 | + exec(f.read()) |
| 17 | + VERSION = get_version() |
| 18 | +with open(join(CURDIR, 'README.rst')) as f: |
| 19 | + LONG_DESCRIPTION = f.read() |
19 | 20 | base_url = 'https://github.com/robotframework/robotframework/blob/master' |
20 | | - for text in 'INSTALL', 'CONTRIBUTING': |
| 21 | + for text in ('INSTALL', 'CONTRIBUTING'): |
21 | 22 | search = '`<{0}.rst>`__'.format(text) |
22 | 23 | replace = '`{0}.rst <{1}/{0}.rst>`__'.format(text, base_url) |
23 | 24 | if search not in LONG_DESCRIPTION: |
|
48 | 49 | 'robot.running.arguments', 'robot.running.timeouts', |
49 | 50 | 'robot.utils', 'robot.variables', 'robot.writer'] |
50 | 51 | PACKAGE_DATA = [join('htmldata', directory, pattern) |
51 | | - for directory in 'rebot', 'libdoc', 'testdoc', 'lib', 'common' |
52 | | - for pattern in '*.html', '*.css', '*.js'] |
| 52 | + for directory in ('rebot', 'libdoc', 'testdoc', 'lib', 'common') |
| 53 | + for pattern in ('*.html', '*.css', '*.js')] |
53 | 54 | if sys.platform.startswith('java'): |
54 | 55 | SCRIPTS = ['jybot', 'jyrebot'] |
55 | 56 | elif sys.platform == 'cli': |
|
0 commit comments