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 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
__version__ = '0.6.12'
import os
import sys
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
version = sys.version_info[:3]
if version < (2,5):
test_suite = 'sourcecodegen.tests.py24'
else:
test_suite = 'sourcecodegen.tests.py25plus'
setup(
name='sourcecodegen',
version=__version__,
description='A Python source-code generator based on the ``compiler.ast`` ' +
'abstract syntax tree.',
long_description="\n\n".join((README, CHANGES)),
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: WSGI",
],
keywords='python source-code generation ast',
author="Malthe Borch",
author_email="mborch@gmail.com",
url="http://chameleon.repoze.org",
license='BSD-like (http://repoze.org/license.html)',
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data=True,
zip_safe=False,
test_suite=test_suite,
)
|