root/livinglogic.python.nightshade/setup.py @ 94:55ce6ff2bd47

Revision 94:55ce6ff2bd47, 2.0 KB (checked in by Walter Doerwald <walter@…>, 11 years ago)

Merge.

RevLine 
[0]1#!/usr/bin/env python
[84]2# -*- coding: utf-8 -*-
[0]3
[8]4# Setup script for ll-nighshade
[0]5
6
[21]7try:
8    import setuptools as tools
9except ImportError:
10    from distutils import core as tools
11
[91]12import re
13
[0]14
15DESCRIPTION = """
[43]16ll-nightshade provides classes that can be used in a CherryPy pagetree to
[63]17publish the result of calling TOXIC functions on the web.
[0]18"""
19
20
21CLASSIFIERS="""
22Development Status :: 3 - Alpha
23Environment :: Web Environment
24Intended Audience :: Developers
25License :: OSI Approved :: Python License (CNRI Python License)
26Operating System :: OS Independent
27Programming Language :: Python
28Topic :: Internet :: WWW/HTTP :: Dynamic Content
29Topic :: Software Development :: Libraries :: Python Modules
30Topic :: Text Processing :: Markup :: HTML
31Topic :: Text Processing :: Markup :: XML
32"""
33
34
35KEYWORDS = """
36# misc
37CherryPy
38toxic
39Oracle
40PL/SQL
41function
42RSS
43"""
44
45
[66]46try:
47    news = list(open("NEWS.rst", "r"))
48except IOError:
49    description = DESCRIPTION.strip()
50else:
51    underlines = [i for (i, line) in enumerate(news) if line.startswith("---")]
52    news = news[underlines[0]-1:underlines[1]-1]
53    news = "".join(news)
[90]54    descr = "%s\n\n\n%s" % (DESCRIPTION.strip(), news)
55
56    # Get rid of text roles PyPI doesn't know about
57    descr = re.subn(":[a-z]+:`([a-zA-Z0-9_.]+)`", "``\\1``", descr)[0]
[66]58
59
[21]60args = dict(
[0]61    name="ll-nightshade",
[92]62    version="0.14",
[37]63    description="Serve the output of Oracle functions/procedures with CherryPy",
[90]64    long_description=descr,
[21]65    author=u"Walter Doerwald",
[0]66    author_email="walter@livinglogic.de",
[36]67    url="http://www.livinglogic.de/Python/nightshade/",
[81]68    download_url="http://www.livinglogic.de/Python/Download.html#nightshade",
[0]69    license="Python",
70    classifiers=[c for c in CLASSIFIERS.strip().splitlines() if c.strip() and not c.strip().startswith("#")],
71    keywords=", ".join(k for k in KEYWORDS.strip().splitlines() if k.strip() and not k.strip().startswith("#")),
[21]72    packages=["ll"],
73    package_dir={"": "src"},
74    install_requires=[
[87]75        "ll-orasql >= 1.25",
[21]76    ],
77    namespace_packages=["ll"],
78    zip_safe=False,
[0]79)
[21]80
81
82if __name__ == "__main__":
83    tools.setup(**args)
Note: See TracBrowser for help on using the browser.