root/livinglogic.python.nightshade/setup.py @ 96:60afb9ce1dee

Revision 96:60afb9ce1dee, 2.0 KB (checked in by Walter Doerwald <walter@…>, 10 years ago)

Call now does a commit.

Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4# Setup script for ll-nighshade
5
6
7try:
8    import setuptools as tools
9except ImportError:
10    from distutils import core as tools
11
12import re
13
14
15DESCRIPTION = """
16ll-nightshade provides classes that can be used in a CherryPy pagetree to
17publish the result of calling TOXIC functions on the web.
18"""
19
20
21CLASSIFIERS="""
22Development Status :: 4 - Beta
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
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)
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]
58
59
60args = dict(
61    name="ll-nightshade",
62    version="0.14.1",
63    description="Serve the output of Oracle functions/procedures with CherryPy",
64    long_description=descr,
65    author=u"Walter Doerwald",
66    author_email="walter@livinglogic.de",
67    url="http://www.livinglogic.de/Python/nightshade/",
68    download_url="http://www.livinglogic.de/Python/Download.html#nightshade",
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("#")),
72    packages=["ll"],
73    package_dir={"": "src"},
74    install_requires=[
75        "ll-orasql >= 1.25",
76    ],
77    namespace_packages=["ll"],
78    zip_safe=False,
79)
80
81
82if __name__ == "__main__":
83    tools.setup(**args)
Note: See TracBrowser for help on using the browser.