File: setup.py

package info (click to toggle)
python-untokenize 0.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 132 kB
  • sloc: python: 325; makefile: 35
file content (33 lines) | stat: -rwxr-xr-x 1,248 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python

"""Setup for untokenize."""

import ast
from distutils import core


def version():
    """Return version string."""
    with open('untokenize.py') as input_file:
        for line in input_file:
            if line.startswith('__version__'):
                return ast.parse(line).body[0].value.value


with open('README.rst') as readme:
    core.setup(name='untokenize',
               version=version(),
               description='Transforms tokens into original source code '
                           '(while preserving whitespace).',
               long_description=readme.read(),
               license='Expat License',
               author='Steven Myint',
               url='https://github.com/myint/untokenize',
               classifiers=['Intended Audience :: Developers',
                            'Environment :: Console',
                            'Programming Language :: Python :: 2.6',
                            'Programming Language :: Python :: 2.7',
                            'Programming Language :: Python :: 3',
                            'License :: OSI Approved :: MIT License'],
               keywords='tokenize,untokenize,transform,generate',
               py_modules=['untokenize'])