|
2 | 2 |
|
3 | 3 | from distutils.core import setup |
4 | 4 | from os.path import abspath, dirname, join |
| 5 | +import re |
5 | 6 |
|
6 | | -# Get __version__ dynamically |
7 | | -execfile(join(dirname(abspath(__file__)), 'src', 'robotremoteserver.py')) |
8 | | - |
9 | | -DESCRIPTION = """ |
10 | | -Robot Framework remote servers allow hosting test libraries on different |
11 | | -machines and/or interpreters than Robot Framework itself is running on. |
12 | | -This version is implemented with Python and supports also Jython (JVM) and |
13 | | -IronPython (.NET). Separate implementations exist for other languages. |
14 | | -For more information about the remote library interface in general see |
15 | | -http://code.google.com/p/robotframework/wiki/RemoteLibrary |
16 | | -""".strip() |
| 7 | +NAME = 'robotremoteserver' |
17 | 8 | CLASSIFIERS = """ |
18 | 9 | Development Status :: 5 - Production/Stable |
19 | 10 | License :: OSI Approved :: Apache Software License |
20 | 11 | Operating System :: OS Independent |
21 | 12 | Programming Language :: Python |
22 | 13 | Topic :: Software Development :: Testing |
23 | 14 | """.strip().splitlines() |
| 15 | +CURDIR = dirname(abspath(__file__)) |
| 16 | +with open(join(CURDIR, 'src', NAME+'.py')) as source: |
| 17 | + VERSION = re.search("\n__version__ = '(.*)'\n", source.read()).group(1) |
| 18 | +with open(join(CURDIR, 'README.rst')) as readme: |
| 19 | + README = readme.read() |
24 | 20 |
|
25 | 21 | setup( |
26 | | - name = 'robotremoteserver', |
27 | | - version = __version__, |
28 | | - author = 'Robot Framework Developers', |
29 | | - author_email = 'robotframework@gmail.com', |
30 | | - url = 'https://github.com/robotframework/PythonRemoteServer', |
31 | | - license = 'Apache License 2.0', |
32 | | - description = 'Robot Framework remote server', |
33 | | - long_description = DESCRIPTION, |
34 | | - keywords = 'robotframework testing testautomation', |
35 | | - platforms = 'any', |
36 | | - classifiers = CLASSIFIERS, |
37 | | - package_dir = {'': 'src'}, |
38 | | - py_modules = ['robotremoteserver'] |
| 22 | + name = NAME, |
| 23 | + version = VERSION, |
| 24 | + author = 'Robot Framework Developers', |
| 25 | + author_email = 'robotframework@gmail.com', |
| 26 | + url = 'https://github.com/robotframework/PythonRemoteServer', |
| 27 | + download_url = 'https://pypi.python.org/pypi/robotremoteserver', |
| 28 | + license = 'Apache License 2.0', |
| 29 | + description = 'Python Remote Server for Robot Framework', |
| 30 | + long_description = README, |
| 31 | + keywords = 'robotframework testing testautomation remote', |
| 32 | + platforms = 'any', |
| 33 | + classifiers = CLASSIFIERS, |
| 34 | + package_dir = {'': 'src'}, |
| 35 | + py_modules = [NAME], |
39 | 36 | ) |
0 commit comments