| [39] | 1 | |
|---|
| [150] | 2 | NAME = 'PyYAML' |
|---|
| [275] | 3 | VERSION = '3.06' |
|---|
| [150] | 4 | DESCRIPTION = "YAML parser and emitter for Python" |
|---|
| 5 | LONG_DESCRIPTION = """\ |
|---|
| 6 | YAML is a data serialization format designed for human readability and |
|---|
| [156] | 7 | interaction with scripting languages. PyYAML is a YAML parser and |
|---|
| 8 | emitter for Python. |
|---|
| [150] | 9 | |
|---|
| [156] | 10 | PyYAML features a complete YAML 1.1 parser, Unicode support, pickle |
|---|
| 11 | support, capable extension API, and sensible error messages. PyYAML |
|---|
| 12 | supports standard YAML tags and provides Python-specific tags that allow |
|---|
| 13 | to represent an arbitrary Python object. |
|---|
| [150] | 14 | |
|---|
| [156] | 15 | PyYAML is applicable for a broad range of tasks from complex |
|---|
| 16 | configuration files to object serialization and persistance.""" |
|---|
| [39] | 17 | AUTHOR = "Kirill Simonov" |
|---|
| 18 | AUTHOR_EMAIL = 'xi@resolvent.net' |
|---|
| [59] | 19 | LICENSE = "MIT" |
|---|
| [150] | 20 | PLATFORMS = "Any" |
|---|
| 21 | URL = "http://pyyaml.org/wiki/PyYAML" |
|---|
| 22 | DOWNLOAD_URL = "http://pyyaml.org/download/pyyaml/%s-%s.tar.gz" % (NAME, VERSION) |
|---|
| 23 | CLASSIFIERS = [ |
|---|
| [275] | 24 | "Development Status :: 5 - Production/Stable", |
|---|
| [150] | 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 | ] |
|---|
| [39] | 32 | |
|---|
| [281] | 33 | from ez_setup import use_setuptools |
|---|
| 34 | use_setuptools(version='0.6c5') |
|---|
| 35 | |
|---|
| [275] | 36 | from setuptools import setup, Extension, Feature |
|---|
| [39] | 37 | |
|---|
| [227] | 38 | if __name__ == '__main__': |
|---|
| [39] | 39 | |
|---|
| [227] | 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, |
|---|
| [39] | 52 | |
|---|
| [227] | 53 | package_dir={'': 'lib'}, |
|---|
| 54 | packages=['yaml'], |
|---|
| [275] | 55 | |
|---|
| 56 | features = { |
|---|
| 57 | 'libyaml': Feature( |
|---|
| 58 | description="LibYAML bindings", |
|---|
| 59 | ext_modules=[ |
|---|
| 60 | Extension('_yaml', ['ext/_yaml.pyx'], libraries=['yaml']), |
|---|
| 61 | ], |
|---|
| 62 | ), |
|---|
| 63 | }, |
|---|
| [227] | 64 | ) |
|---|
| 65 | |
|---|