setup.py
author robin <robin@reportlab.com>
Wed, 14 Jun 2017 16:36:46 +0100
changeset 0 664ae0993bd1
child 1 053a4b7e37f6
permissions -rw-r--r--
first checkin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
     1
#from distutils.core import setup
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
     2
from setuptools import setup
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
     3
import os, sys
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
     4
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
     5
if __name__=='__main__':
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
     6
    pkgDir=os.path.dirname(sys.argv[0])
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
     7
    if not pkgDir:
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
     8
        pkgDir=os.getcwd()
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
     9
    if not os.path.isabs(pkgDir):
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    10
        pkgDir=os.path.abspath(pkgDir)
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    11
    sys.path.insert(0,pkgDir)
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    12
    os.chdir(pkgDir)
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    13
    import rl_ci_tools
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    14
    version = rl_ci_tools.VERSION
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    15
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    16
    setup(name='rl_ci_tools',
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    17
        version=version,
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    18
        description='Continuous Integration Support for ReportLab and friends',
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    19
        author='Robin Becker',
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    20
        author_email='andy@reportlab.com',
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    21
        url='https://bitbucket.org/MrRLBitBucket/rl_ci_tools',
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    22
        py_modules=['rl_ci_tools'],
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    23
        requires=['requests'],
664ae0993bd1 first checkin
robin <robin@reportlab.com>
parents:
diff changeset
    24
        )