root/livinglogic.python.orasql/setup.py @ 179:a1e884c9327b

Revision 179:a1e884c9327b, 2.0 KB (checked in by Walter Doerwald <walter@…>, 13 years ago)

Add methods itertables() and iterfks().

Fix a bug in oramerge.py: In certain branches action was uninitialized
which lead to bugs, as oramerge.py was using the action value from the
previous iteration.

Updated ipipe functionality (the the current IPython head version).

Enhanced oramerge.py output.

Line 
1#!/usr/bin/env python
2# -*- coding: iso-8859-1 -*-
3
4# Setup script for ll-orasql
5
6
7__version__ = "$Revision$"[11:-2]
8# $Source$
9
10
11try:
12    import setuptools as tools
13except ImportError:
14    from distutils import core as tools
15
16import textwrap
17
18
19DESCRIPTION = """
20ll-orasql contains utilities for working with ``cx_Oracle``: It allows
21calling Oracle procedures via keyword arguments, it wraps the result of
22fetch calls in a custom dictionary and it contains some utilitiy functions
23and scripts for accessing and copying database metadata.
24"""
25
26CLASSIFIERS="""
27Development Status :: 4 - Beta
28Intended Audience :: Developers
29License :: OSI Approved :: Python License (CNRI Python License)
30Operating System :: OS Independent
31Programming Language :: Python
32Topic :: Database
33"""
34
35KEYWORDS = """
36database
37Oracle
38cx_Oracle
39record
40procedure
41schema
42"""
43
44DESCRIPTION = "\n".join(textwrap.wrap(DESCRIPTION.strip(), width=64, replace_whitespace=True))
45
46
47args=dict(
48    name="ll-orasql",
49    version="1.13",
50    description="Utilities for working with cx_Oracle",
51    long_description=DESCRIPTION,
52    author=u"Walter Doerwald",
53    author_email="walter@livinglogic.de",
54    url="http://www.livinglogic.de/Python/orasql/",
55    download_url="http://www.livinglogic.de/Python/orasql/Download.html",
56    license="Python",
57    classifiers=CLASSIFIERS.strip().splitlines(),
58    keywords=",".join(KEYWORDS.strip().splitlines()),
59    packages=["ll", "ll.orasql", "ll.orasql.scripts"],
60    package_dir={"": "src"},
61    entry_points=dict(
62        console_scripts=[
63            "oracreate = ll.orasql.scripts.oracreate:main",
64            "oradrop = ll.orasql.scripts.oradrop:main",
65            "oradiff = ll.orasql.scripts.oradiff:main",
66            "oramerge = ll.orasql.scripts.oramerge:main",
67        ]
68    ),
69    scripts=[
70        "scripts/oracreate.py",
71        "scripts/oradrop.py",
72        "scripts/oradiff.py",
73        "scripts/oramerge.py",
74    ],
75    install_requires=[
76        "ll-core >= 1.4",
77        "cx_Oracle >= 4.1.2",
78    ],
79    namespace_packages=["ll"],
80    zip_safe=False,
81    dependency_links=[
82        "http://starship.python.net/crew/atuining/cx_Oracle/index.html", # cx_Oracle
83    ]
84)
85
86
87if __name__ == "__main__":
88    tools.setup(**args)
Note: See TracBrowser for help on using the browser.