コード例 #1
0
ファイル: setup.py プロジェクト: nicolas33/errbot
    args = set(sys.argv)

    changes = read('CHANGES.rst')

    if changes.find(VERSION) == -1:
        raise Exception('You forgot to put a release note in CHANGES.rst ?!')

    if args & {'bdist', 'bdist_dumb', 'bdist_rpm', 'bdist_wininst', 'bdist_msi'}:
        raise Exception("err doesn't support binary distributions")

    # under python2 if we want to make a source distribution,
    # don't pre-convert the sources, leave them as py3.
    if PY2 and args & {'install', 'develop', 'bdist_wheel'}:
        from py2conv import convert_to_python2
        convert_to_python2()

    setup(
        name="errbot",
        version=VERSION,
        packages=find_packages(src_root, exclude=['tests', 'tools']),
        entry_points={
            'console_scripts': [
                'errbot = errbot.err:main',
                'err.py = errbot.err:main'
            ]
        },

        install_requires=deps,
        tests_require=['nose', 'webtest', 'requests'],
        package_data={
コード例 #2
0
ファイル: setup.py プロジェクト: ligadous/errbot
    changes = read('CHANGES.rst')

    if changes.find(VERSION) == -1:
        raise Exception('You forgot to put a release note in CHANGES.rst ?!')

    if args & {
            'bdist', 'bdist_dumb', 'bdist_rpm', 'bdist_wininst', 'bdist_msi'
    }:
        raise Exception("err doesn't support binary distributions")

    # under python2 if we want to make a source distribution,
    # don't pre-convert the sources, leave them as py3.
    if PY2 and args & {'install', 'develop', 'bdist_wheel'}:
        from py2conv import convert_to_python2
        convert_to_python2()

    setup(
        name="errbot",
        version=VERSION,
        packages=find_packages(src_root, exclude=['tests', 'tests.*',
                                                  'tools']),
        entry_points={
            'console_scripts':
            ['errbot = errbot.err:main', 'err.py = errbot.err:main']
        },
        install_requires=deps,
        tests_require=['nose', 'webtest', 'requests'],
        package_data={
            '': ['*.txt', '*.rst', '*.plug', '*.md'],
        },