github.com/n00py/Slackor@v0.0.0-20200610224921-d007fcea1740/impacket/setup.py (about)

     1  #!/usr/bin/env python
     2  # $Id$
     3  
     4  import glob
     5  import os
     6  import platform
     7  
     8  from setuptools import setup
     9  
    10  PACKAGE_NAME = "impacket"
    11  
    12  if platform.system() != 'Darwin':
    13      data_files = [(os.path.join('share', 'doc', PACKAGE_NAME), ['README.md', 'LICENSE']+glob.glob('doc/*'))]
    14  else:
    15      data_files = []
    16  
    17  def read(fname):
    18      return open(os.path.join(os.path.dirname(__file__), fname)).read()
    19  
    20  setup(name = PACKAGE_NAME,
    21        version = "0.9.20-dev",
    22        description = "Network protocols Constructors and Dissectors",
    23        url = "https://www.secureauth.com/labs/open-source-tools/impacket",
    24        author = "SecureAuth Corporation",
    25        author_email = "oss@secureauth.com",
    26        maintainer = "Alberto Solino",
    27        maintainer_email = "bethus@gmail.com",
    28        license = "Apache modified",
    29        long_description = read('README.md'),
    30        long_description_content_type="text/markdown",
    31        platforms = ["Unix","Windows"],
    32        packages=['impacket', 'impacket.dcerpc', 'impacket.examples', 'impacket.dcerpc.v5', 'impacket.dcerpc.v5.dcom',
    33                  'impacket.krb5', 'impacket.ldap', 'impacket.examples.ntlmrelayx',
    34                  'impacket.examples.ntlmrelayx.clients', 'impacket.examples.ntlmrelayx.servers',
    35                  'impacket.examples.ntlmrelayx.servers.socksplugins', 'impacket.examples.ntlmrelayx.utils',
    36                  'impacket.examples.ntlmrelayx.attacks'],
    37        scripts = glob.glob(os.path.join('examples', '*.py')),
    38        data_files = data_files,
    39        install_requires=['pyasn1>=0.2.3', 'pycryptodomex', 'pyOpenSSL>=0.13.1', 'six', 'ldap3==2.5.1', 'ldapdomaindump>=0.9.0', 'flask>=1.0'],
    40        extras_require={
    41                        'pyreadline:sys_platform=="win32"': [],
    42                        'python_version<"2.7"': [ 'argparse' ],
    43                      },
    44        classifiers = [
    45            "Programming Language :: Python :: 3.6",
    46            "Programming Language :: Python :: 2.7",
    47            "Programming Language :: Python :: 2.6",
    48        ]
    49        )