|
11 | 11 |
|
12 | 12 | execfile(join(dirname(__file__), 'src', 'testlink', 'version.py'))
|
13 | 13 |
|
14 |
| -setup(name='TestLink', |
| 14 | +CLASSIFIERS = [ |
| 15 | + 'Development Status :: 4 - Beta', |
| 16 | + 'License :: OSI Approved :: Apache License V2.0', |
| 17 | + 'Operating System :: OS Independent', |
| 18 | + 'Programming Language :: Python', |
| 19 | + 'Topic :: Formats and Protocols :: Protocols :: XML-RPC', |
| 20 | + 'Topic :: Software Development :: Testing', |
| 21 | + 'Topic :: Software Development :: Libraries :: Python Modules' |
| 22 | +] |
| 23 | + |
| 24 | +DESCRIPTION = """ |
| 25 | +TestLink-API-Python-client is a Python XML-RPC client for TestLink_. |
| 26 | +
|
| 27 | +Initially based on James Stock testlink-api-python-client R7 and Olivier |
| 28 | +Renault JinFeng_ idea - an interaction of TestLink_, `Robot Framework`_ and Jenkins_. |
| 29 | +
|
| 30 | +TestLink-API-Python-client delivers two main classes |
| 31 | +
|
| 32 | +- TestlinkAPIGeneric - Implements the TestLink API methods as generic PY methods |
| 33 | + with error handling |
| 34 | +- TestlinkAPIClient - Inherits from TestlinkAPIGeneric and defines service |
| 35 | + methods like "countProjects". |
| 36 | +
|
| 37 | +and the helper class |
| 38 | +
|
| 39 | +- TestLinkHelper - search connection parameter from environment variables and |
| 40 | + command line arguments |
| 41 | + |
| 42 | +How to talk with TestLink in a python shell: :: |
| 43 | +
|
| 44 | + set TESTLINK_API_PYTHON_SERVER_URL=http://[YOURSERVER]/testlink/lib/api/xmlrpc/v1/xmlrpc.php |
| 45 | + set TESTLINK_API_PYTHON_DEVKEY=[Users devKey generated by TestLink] |
| 46 | + python |
| 47 | + >>> import testlink |
| 48 | + >>> tls = testlink.TestLinkHelper().connect(testlink.TestlinkAPIClient) |
| 49 | + >>> tls.countProjects() |
| 50 | + 3 |
| 51 | + >>> tls.getTestCase(None, testcaseexternalid='NPROAPI3-1') |
| 52 | + [{'full_tc_external_id': 'NPROAPI3-1', 'node_order': '0', 'is_open': '1', 'id': '2757', ...}] |
| 53 | + |
| 54 | +More information about this library can be found on the Wiki_ |
| 55 | +
|
| 56 | +.. _TestLink: http://testlink.org |
| 57 | +.. _JinFeng: http://www.sqaopen.net/blog/en/?p=63 |
| 58 | +.. _Robot Framework: http://code.google.com/p/robotframework |
| 59 | +.. _Jenkins: http://jenkins-ci.org |
| 60 | +.. _Wiki: https://github.com/lczub/TestLink-API-Python-client/wiki |
| 61 | +
|
| 62 | +"""[1:-1] |
| 63 | + |
| 64 | +setup(name='TestLink-API-Python-client', |
15 | 65 | version=VERSION,
|
16 |
| - description='Python XMLRPC client for the TestLink API', |
| 66 | + description='Python XML-RPC client for TestLink', |
| 67 | + long_description = DESCRIPTION, |
17 | 68 | author='James Stock, Olivier Renault, Luiko Czub, TestLink-API-Python-client developers',
|
18 | 69 |
|
19 | 70 | url='https://github.com/lczub/TestLink-API-Python-client',
|
20 | 71 | license = 'Apache 2.0',
|
21 | 72 | package_dir = {'': 'src'},
|
22 |
| - packages=['testlink'], |
| 73 | + packages = ['testlink'], |
| 74 | + classifiers = CLASSIFIERS, |
| 75 | + platforms = 'any', |
| 76 | + keywords = ['testing', 'testlink', 'xml-rpc', 'testautomation'] |
| 77 | + |
23 | 78 | )
|
24 | 79 |
|
0 commit comments