root/livinglogic.python.xist/setup.py @ 2590:7b6bba35f3a0

Revision 2590:7b6bba35f3a0, 2.6 KB (checked in by Walter Doerwald <walter@…>, 13 years ago)

htmlspecials.pixel() now no longer uses colored pixels, instead color is
done via CSS. The URL for the one remaining transparent pixel can now be
specified via src (either as an XML attribute or via the converter context).

Rename attrs methods with() and without() to withnames() and withoutnames()
(for Python 2.5 compatibility).

Use elinks instead of w3m for asText() and move/rename this method to a
function ll.xist.ns.html.astext().

Try to make XIST independent from PyXML (however PyXML is still required
for parsing via expat and for dtd2xsc.py (because this requires xmlproc)).

Remove the long dperecated method withSep().

Use Py_ssize_t in the C source where appropriate.

  • 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.15",
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        tools.Extension("ll.xist.sgmlop", ["src/ll/xist/sgmlop.c"])
74    ],
75    entry_points=dict(
76        console_scripts=[
77            "dtd2xsc = ll.xist.scripts.dtd2xsc:main",
78            "tld2xsc = ll.xist.scripts.tld2xsc:main",
79            "doc2txt = ll.xist.scripts.doc2txt:main",
80            "xml2xsc = ll.xist.scripts.xml2xsc:main",
81        ]
82    ),
83    scripts=[
84        "scripts/dtd2xsc.py",
85        "scripts/tld2xsc.py",
86        "scripts/doc2txt.py",
87        "scripts/xml2xsc.py",
88    ],
89    install_requires=[
90        "ll-core >= 1.5",
91        "PyXML >= 0.8.4",
92    ],
93    namespace_packages=["ll"],
94    zip_safe=False,
95    dependency_links=[
96        "http://sourceforge.net/project/showfiles.php?group_id=6473", # PyXML
97    ],
98)
99
100
101if __name__ == "__main__":
102    tools.setup(**args)
Note: See TracBrowser for help on using the browser.