~tribaal/txaws/xss-hardening

57 by Duncan McGreggor
Added a python setup file for installation.
1
from distutils.core import setup
2
from glob import glob
3
import os
4
5
from txaws import version
6
77.1.1 by Zooko O'Whielacronx
If setuptools is imported, then declare Epsilon as an install_requires of txAWS.
7
# If setuptools is present, use it to find_packages(), and also
105.1.1 by Clint Byrum
replace epsilon with dateutil for parsing iso8601 date
8
# declare our dependency on python-dateutil.
77.1.1 by Zooko O'Whielacronx
If setuptools is imported, then declare Epsilon as an install_requires of txAWS.
9
extra_setup_args = {}
10
try:
11
    import setuptools
12
    from setuptools import find_packages
111.4.1 by Duncan McGreggor
Added a version spec to the dateutil requirement so that the Python 3.0 version
13
    extra_setup_args['install_requires'] = ['python-dateutil<2.0', 'twisted']
77.1.1 by Zooko O'Whielacronx
If setuptools is imported, then declare Epsilon as an install_requires of txAWS.
14
except ImportError:
15
    def find_packages():
16
        """
17
        Compatibility wrapper.
18
19
        Taken from storm setup.py.
20
        """
21
        packages = []
22
        for directory, subdirectories, files in os.walk("txaws"):
23
            if '__init__.py' in files:
24
                packages.append(directory.replace(os.sep, '.'))
25
        return packages
57 by Duncan McGreggor
Added a python setup file for installation.
26
27
long_description = """
28
Twisted-based Asynchronous Libraries for Amazon Web Services and Eucalyptus
29
private clouds This project's goal is to have a complete Twisted API
30
representing the spectrum of Amazon's web services as well as support for
31
Eucalyptus clouds.
32
"""
33
34
35
setup(
36
    name="txAWS",
37
    version=version.txaws,
138 by Duncan McGreggor
* Added wsdl dir to MANIFEST.in
38
    description="Async library for EC2, OpenStack, and Eucalyptus",
57 by Duncan McGreggor
Added a python setup file for installation.
39
    author="txAWS Developers",
40
    author_email="txaws-discuss@lists.launchpad.net",
41
    url="https://launchpad.net/txaws",
42
    license="MIT",
43
    packages=find_packages(),
44
    scripts=glob("./bin/*"),
45
    long_description=long_description,
46
    classifiers=[
47
        "Development Status :: 4 - Beta",
48
        "Intended Audience :: Developers",
58 by Duncan McGreggor
Updated the classifiers in setup.py.
49
        "Intended Audience :: System Administrators",
50
        "Intended Audience :: Information Technology",
57 by Duncan McGreggor
Added a python setup file for installation.
51
        "Programming Language :: Python",
52
        "Topic :: Database",
58 by Duncan McGreggor
Updated the classifiers in setup.py.
53
        "Topic :: Internet :: WWW/HTTP",
54
        "License :: OSI Approved :: MIT License",
57 by Duncan McGreggor
Added a python setup file for installation.
55
       ],
77.1.1 by Zooko O'Whielacronx
If setuptools is imported, then declare Epsilon as an install_requires of txAWS.
56
    **extra_setup_args
57 by Duncan McGreggor
Added a python setup file for installation.
57
    )
58