source: pyyaml/trunk/setup.py @ 281

Revision 281, 2.0 KB checked in by xi, 6 years ago (diff)

Added a setuptools installer 'ez_setup.py'.

Line 
1
2NAME = 'PyYAML'
3VERSION = '3.06'
4DESCRIPTION = "YAML parser and emitter for Python"
5LONG_DESCRIPTION = """\
6YAML is a data serialization format designed for human readability and
7interaction with scripting languages.  PyYAML is a YAML parser and
8emitter for Python.
9
10PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
11support, capable extension API, and sensible error messages.  PyYAML
12supports standard YAML tags and provides Python-specific tags that allow
13to represent an arbitrary Python object.
14
15PyYAML is applicable for a broad range of tasks from complex
16configuration files to object serialization and persistance."""
17AUTHOR = "Kirill Simonov"
18AUTHOR_EMAIL = 'xi@resolvent.net'
19LICENSE = "MIT"
20PLATFORMS = "Any"
21URL = "http://pyyaml.org/wiki/PyYAML"
22DOWNLOAD_URL = "http://pyyaml.org/download/pyyaml/%s-%s.tar.gz" % (NAME, VERSION)
23CLASSIFIERS = [
24    "Development Status :: 5 - Production/Stable",
25    "Intended Audience :: Developers",
26    "License :: OSI Approved :: MIT License",
27    "Operating System :: OS Independent",
28    "Programming Language :: Python",
29    "Topic :: Software Development :: Libraries :: Python Modules",
30    "Topic :: Text Processing :: Markup",
31]
32
33from ez_setup import use_setuptools
34use_setuptools(version='0.6c5')
35
36from setuptools import setup, Extension, Feature
37
38if __name__ == '__main__':
39
40    setup(
41        name=NAME,
42        version=VERSION,
43        description=DESCRIPTION,
44        long_description=LONG_DESCRIPTION,
45        author=AUTHOR,
46        author_email=AUTHOR_EMAIL,
47        license=LICENSE,
48        platforms=PLATFORMS,
49        url=URL,
50        download_url=DOWNLOAD_URL,
51        classifiers=CLASSIFIERS,
52
53        package_dir={'': 'lib'},
54        packages=['yaml'],
55
56        features = {
57            'libyaml': Feature(
58                description="LibYAML bindings",
59                ext_modules=[
60                    Extension('_yaml', ['ext/_yaml.pyx'], libraries=['yaml']),
61                ],
62            ),
63        },
64    )
65
Note: See TracBrowser for help on using the repository browser.