Skip to content

Commit 9865f18

Browse files
committed
Initial project creation
0 parents  commit 9865f18

File tree

8 files changed

+78
-0
lines changed

8 files changed

+78
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

.project

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>robotframework-database-library</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.python.pydev.PyDevBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.python.pydev.pythonNature</nature>
16+
</natures>
17+
</projectDescription>

.pydevproject

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?eclipse-pydev version="1.0"?>
3+
4+
<pydev_project>
5+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">robot</pydev_property>
6+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
7+
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
8+
<path>/robotframework-database-library/src</path>
9+
</pydev_pathproperty>
10+
</pydev_project>

setup.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env python
2+
3+
"""Setup script for Robot's DatabaseLibrary distributions"""
4+
5+
from distutils.core import setup
6+
7+
import sys, os
8+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
9+
10+
from DatabaseLibrary import __version__
11+
12+
def main():
13+
setup(name = 'robotframework-databaselibrary',
14+
version = __version__,
15+
description = 'Database utility library for Robot Framework',
16+
author = 'Franz Allan Valencia See',
17+
author_email = '[email protected]',
18+
url = 'http://code.google.com/p/franz.see/',
19+
package_dir = { '' : 'src'},
20+
packages = ['DatabaseLibrary']
21+
)
22+
23+
24+
if __name__ == "__main__":
25+
main()

src/DatabaseLibrary/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
__version__ = '0.1'
2+
3+
from query import Query
4+
5+
class DatabaseLibrary(Query):
6+
"""
7+
Contains Database utitlities meant for Robot Framework's usage.
8+
"""

src/DatabaseLibrary/__init__.pyc

481 Bytes
Binary file not shown.

src/DatabaseLibrary/query.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'''
2+
Created on Nov 23, 2010
3+
4+
@author: franz
5+
'''
6+
7+
class Query(object):
8+
9+
def __init__(self):
10+
'''
11+
Constructor
12+
'''
13+
14+
def get_my_value(self, assertionMessage = 'You can provide an assertion message here.'):
15+
"""Retrieves a value"""
16+
raise AssertionError("Always an error. Message: '%s'." % (assertionMessage))
17+

src/DatabaseLibrary/query.pyc

823 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)