Skip to content

Commit c5d90a8

Browse files
author
Luiko Czub
committed
add long description and categories to setup.py #15
1 parent 78ef28d commit c5d90a8

File tree

6 files changed

+81
-27
lines changed

6 files changed

+81
-27
lines changed

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,31 @@ License [Apache License 2.0]
99
Introduction
1010
------------
1111

12-
TestLink-API-Python-client is a Python XMLRPC client for the [TestLink API].
12+
TestLink-API-Python-client is a Python XML-RPC client for [TestLink].
1313

14-
Initially based on the James Stock testlink-api-python-client R7 and Olivier
14+
Initially based on James Stock testlink-api-python-client R7 and Olivier
1515
Renault [JinFeng] idea - an interaction of [TestLink], [Robot Framework] and [Jenkins].
1616

1717
TestLink-API-Python-client delivers two main classes
18-
* TestlinkAPIGeneric - Implements the Testlink API methods as generic PY
19-
methods with error handling.
20-
* Allows the configuration of arguments for these API method as positional
21-
or optional arguments.
22-
23-
* TestlinkAPIClient - Inherits Testlink API methods from the generic client
24-
TestlinkAPIGeneric and defines service methods like "countProjects".
25-
* Change the configuration for positional and optional arguments in a way,
26-
that often used arguments are positional (consistent with v0.4.0).
18+
19+
- TestlinkAPIGeneric - Implements the TestLink API methods as generic PY methods
20+
with error handling
21+
- TestlinkAPIClient - Inherits from TestlinkAPIGeneric and defines service
22+
methods like "countProjects".
2723

2824
Directory Layout
2925
----------------
3026

3127
src/
28+
3229
* Source for TestLink API Python Client
3330

3431
tests/
32+
3533
* Unit Tests for TestLink API Python Client
3634

3735
examples/
36+
3837
* Examples, how to use the TestLink API Python Client
3938

4039
Installation
@@ -58,7 +57,7 @@ pip install TestLink-0.4.5.zip
5857
Usage
5958
-----
6059

61-
### Connect TestLink in a python shell
60+
### How to talk with TestLink in a python shell
6261

6362
```
6463
[PYENV]\testlink\Scripts\activate
@@ -127,9 +126,9 @@ Questions, Enhancements, Issues are welcome under [Issues]
127126

128127
For (nearly all) implemented API methods you find in
129128
[example/TestLinkExample.py](example/TestLinkExample.py)
130-
an example, which although prints the reponse.
129+
an example, how to call it and how the response looks like.
131130

132-
The Teslink API Client can be asked, what arguments a API method expects
131+
The TestLink API Client can be asked, what arguments a API method expects
133132

134133
```
135134
import testlink

setup.py

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,69 @@
1111

1212
execfile(join(dirname(__file__), 'src', 'testlink', 'version.py'))
1313

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',
1565
version=VERSION,
16-
description='Python XMLRPC client for the TestLink API',
66+
description='Python XML-RPC client for TestLink',
67+
long_description = DESCRIPTION,
1768
author='James Stock, Olivier Renault, Luiko Czub, TestLink-API-Python-client developers',
1869
1970
url='https://github.com/lczub/TestLink-API-Python-client',
2071
license = 'Apache 2.0',
2172
package_dir = {'': 'src'},
22-
packages=['testlink'],
73+
packages = ['testlink'],
74+
classifiers = CLASSIFIERS,
75+
platforms = 'any',
76+
keywords = ['testing', 'testlink', 'xml-rpc', 'testautomation']
77+
2378
)
2479

src/testlink/testlinkapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424

2525
class TestlinkAPIClient(TestlinkAPIGeneric):
26-
""" client for xmlrpc communication between Python and TestLlink
26+
""" client for XML-RPC communication between Python and TestLink
2727
28-
Inherits Testlink API methods from the generic client TestlinkAPIGeneric.
28+
Inherits TestLink API methods from the generic client TestlinkAPIGeneric.
2929
3030
Defines Service Methods like "countProjects" and change the
3131
configuration for positional and optional arguments in a way, that often

src/testlink/testlinkapigeneric.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828

2929
class TestlinkAPIGeneric(object):
30-
""" client for xmlrpc communication between Python and TestLlink
31-
Implements the Testlink API methods as generic PY methods with
30+
""" client for XML-RPC communication between Python and TestLink
31+
Implements the TestLink API methods as generic PY methods with
3232
error handling.
3333
3434
Allows the configuration of arguments for these API method as positional
@@ -1069,7 +1069,7 @@ def whatArgs(self, methodNameAPI):
10691069

10701070
def __str__(self):
10711071
message = """
1072-
Testlink API - class %s - version %s
1072+
TestLink API - class %s - version %s
10731073
@authors: %s
10741074
10751075
Current connection settings

src/testlink/testlinkhelper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
class TestLinkHelper(object):
2626
""" Helper Class to find out the TestLink connection parameters.
27-
a) TestLink Server URL of XMLRPC
27+
a) TestLink Server URL of XML-RPC
2828
environment variable - TESTLINK_API_PYTHON_SERVER_URL
2929
default value - http://localhost/testlink/lib/api/xmlrpc.php
3030
command line arg - server_url
@@ -47,7 +47,7 @@ class TestLinkHelper(object):
4747
tl_helper.connect(TestLink)
4848
-> returns a TestLink instance
4949
50-
Attention: TL 197 changed the URL of XMLRPC
50+
Attention: TL 197 changed the URL of XML-RPC
5151
from http://localhost/testlink/lib/api/xmlrpc.php
5252
to http://localhost/testlink/lib/api/xmlrpc/v1/xmlrpc.php
5353
"""
@@ -58,7 +58,7 @@ class TestLinkHelper(object):
5858
ENVNAME_DEVKEY = 'TESTLINK_API_PYTHON_DEVKEY'
5959
DEFAULT_SERVER_URL = 'http://localhost/testlink/lib/api/xmlrpc.php'
6060
DEFAULT_DEVKEY = '42'
61-
DEFAULT_DESCRIPTION = 'Python XMLRPC client for the TestLink API v%s' \
61+
DEFAULT_DESCRIPTION = 'Python XML-RPC client for the TestLink API v%s' \
6262
% VERSION
6363

6464
def __init__(self, server_url=None, devkey=None):
@@ -91,7 +91,7 @@ def _createArgparser(self, usage):
9191
a_parser = ArgumentParser( description=usage)
9292
# optional command line parameters
9393
a_parser.add_argument('--server_url', default=self._server_url,
94-
help='TestLink Server URL of XMLRPC (default: %(default)s) ')
94+
help='TestLink Server URL of XML-RPC (default: %(default)s) ')
9595
# pseudo optional command line parameters,
9696
# must be set individual for each user
9797
a_parser.add_argument('--devKey', default=self._devkey,

src/testlink/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
#
1818
# ------------------------------------------------------------------------
1919

20-
VERSION = '0.4.5'
20+
VERSION = '0.4.6-DEV-15'

0 commit comments

Comments
 (0)