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