root/livinglogic.python.xist/setup.py @ 2576:e085c201c398

Revision 2576:e085c201c398, 2.5 KB (checked in by Walter Doerwald <walter@…>, 13 years ago)

Fix author name.

  • Property exe set to *
Line 
1#! /usr/bin/env python
2# -*- coding: iso-8859-1 -*-
3
4# Setup script for XIST
5
6__version__ = tuple(map(int,"$Revision$"[11:-2].split(".")))
7# $Source$
8
9
10try:
11    import setuptools as tools
12except ImportError:
13    from distutils import core as tools
14
15import textwrap
16
17
18DESCRIPTION = """
19XIST is an extensible HTML and XML generator. XIST is also a DOM parser
20(built on top of SAX2) with a very simple and pythonesque tree API.
21Every XML element type corresponds to a Python class and these Python
22classes provide a conversion method to transform the XML tree
23(e.g. into HTML). XIST can be considered 'object oriented XSLT'.
24"""
25
26CLASSIFIERS="""
27Development Status :: 5 - Production/Stable
28Environment :: Web Environment
29Intended Audience :: Developers
30License :: OSI Approved :: Python License (CNRI Python License)
31Operating System :: OS Independent
32Programming Language :: Python
33Topic :: Internet :: WWW/HTTP :: Dynamic Content
34Topic :: Internet :: WWW/HTTP :: Site Management
35Topic :: Software Development :: Libraries :: Python Modules
36Topic :: Text Processing :: Markup :: HTML
37Topic :: Text Processing :: Markup :: XML
38"""
39
40KEYWORDS = """
41XML
42HTML
43XHTML
44XSLT
45HSC
46XSL-FO
47SVG
48WML
49iHTML
50Relax NG
51"""
52
53DESCRIPTION = "\n".join(textwrap.wrap(DESCRIPTION.strip(), width=64, replace_whitespace=True))
54
55
56args = dict(
57    name="ll-xist",
58    version="2.14.2",
59    description="An extensible HTML/XML generator",
60    long_description=DESCRIPTION,
61    author="Walter Doerwald",
62    author_email="walter@livinglogic.de",
63    url="http://www.livinglogic.de/Python/xist/",
64    download_url="http://www.livinglogic.de/Python/xist/Download.html",
65    license="Python",
66    classifiers=CLASSIFIERS.strip().splitlines(),
67    keywords=",".join(KEYWORDS.strip().splitlines()),
68    package_dir={"": "src"},
69    packages=["ll", "ll.xist", "ll.xist.ns", "ll.xist.scripts"],
70    ext_modules=[
71        tools.Extension("ll.xist.csstokenizer", ["src/ll/xist/csstokenizer.cxx"]),
72        tools.Extension("ll.xist.helpers", ["src/ll/xist/helpers.c"])
73    ],
74    entry_points=dict(
75        console_scripts=[
76            "dtd2xsc = ll.xist.scripts.dtd2xsc:main",
77            "tld2xsc = ll.xist.scripts.tld2xsc:main",
78            "doc2txt = ll.xist.scripts.doc2txt:main",
79            "xml2xsc = ll.xist.scripts.xml2xsc:main",
80        ]
81    ),
82    scripts=[
83        "scripts/dtd2xsc.py",
84        "scripts/tld2xsc.py",
85        "scripts/doc2txt.py",
86        "scripts/xml2xsc.py",
87    ],
88    install_requires=[
89        "ll-core >= 1.3",
90        "PyXML >= 0.8.4",
91    ],
92    namespace_packages=["ll"],
93    zip_safe=False,
94    dependency_links=[
95        "http://sourceforge.net/project/showfiles.php?group_id=6473", # PyXML
96    ],
97)
98
99
100if __name__ == "__main__":
101    tools.setup(**args)
Note: See TracBrowser for help on using the browser.