<commit_before>#!/usr/bin/env python

from pybuilder.core import use_plugin, init, Author

use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.integrationtest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin('copy_resources')
use_plugin('filter_resources')

name = "cfn-sphere"

authors = [Author('<NAME>', '<EMAIL>')]
description = "cfn-sphere - A CLI tool intended to simplify AWS CloudFormation handling."
license = 'APACHE LICENSE, VERSION 2.0'
summary = 'cfn-sphere AWS CloudFormation management cli'
url = 'https://github.com/marco-hoyer/cfn-sphere'
version = '0.1.23'

default_task = ['clean', 'analyze', 'package']


@init
def set_properties(project):
    project.build_depends_on("unittest2")
    project.build_depends_on("mock")
    project.depends_on('six')
    project.depends_on("click")
    project.depends_on("boto")
    project.depends_on("pyyaml")
    project.depends_on("networkx")
    project.depends_on('ordereddict')
    project.depends_on('prettytable')
    project.set_property('integrationtest_inherit_environment', True)
    project.set_property('coverage_break_build', False)
    project.set_property('install_dependencies_upgrade', True)

    project.set_property('copy_resources_target', '$dir_dist')
    project.get_property('copy_resources_glob').append('setup.cfg')

    project.get_property('filter_resources_glob').extend(['**/cfn_sphere/__init__.py', '**/scripts/cf'])

    project.set_property('distutils_classifiers', [
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python',
        'Topic :: System :: Systems Administration'
    ])


@init(environments='teamcity')
def set_properties_for_teamcity_builds(project):
    import os

    project.set_property('teamcity_output', True)
    project.version = '%s-%s' % (project.version, os.environ.get('BUILD_NUMBER', 0))
    project.default_task = ['clean', 'install_build_dependencies', 'publish']
    project.set_property('install_dependencies_index_url', os.environ.get('PYPIPROXY_URL'))
    project.get_property('distutils_commands').append('bdist_rpm')

<commit_msg>#41 configure distutils to know the cf command<commit_after>#!/usr/bin/env python

from pybuilder.core import use_plugin, init, Author

use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.integrationtest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin('copy_resources')
use_plugin('filter_resources')

name = "cfn-sphere"

authors = [Author('<NAME>', '<EMAIL>')]
description = "cfn-sphere - A CLI tool intended to simplify AWS CloudFormation handling."
license = 'APACHE LICENSE, VERSION 2.0'
summary = 'cfn-sphere AWS CloudFormation management cli'
url = 'https://github.com/marco-hoyer/cfn-sphere'
version = '0.1.23'

default_task = ['clean', 'analyze', 'package']


@init
def set_properties(project):
    project.build_depends_on("unittest2")
    project.build_depends_on("mock")
    project.depends_on('six')
    project.depends_on("click")
    project.depends_on("boto")
    project.depends_on("pyyaml")
    project.depends_on("networkx")
    project.depends_on('ordereddict')
    project.depends_on('prettytable')
    project.set_property('integrationtest_inherit_environment', True)
    project.set_property('coverage_break_build', False)
    project.set_property('install_dependencies_upgrade', True)

    project.set_property('copy_resources_target', '$dir_dist')
    project.get_property('copy_resources_glob').append('setup.cfg')

    project.get_property('filter_resources_glob').extend(['**/cfn_sphere/__init__.py', '**/scripts/cf'])

    project.set_property('distutils_console_scripts', ['cf=cfn_sphere.cli:main'])

    project.set_property('distutils_classifiers', [
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python',
        'Topic :: System :: Systems Administration'
    ])


@init(environments='teamcity')
def set_properties_for_teamcity_builds(project):
    import os

    project.set_property('teamcity_output', True)
    project.version = '%s-%s' % (project.version, os.environ.get('BUILD_NUMBER', 0))
    project.default_task = ['clean', 'install_build_dependencies', 'publish']
    project.set_property('install_dependencies_index_url', os.environ.get('PYPIPROXY_URL'))
    project.get_property('distutils_commands').append('bdist_rpm')


{'fraction_non_alphanumeric': 0.1416326530612245, 'fraction_numerical': 0.004489795918367347, 'mean_word_length': 5.474240422721268, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2152624', 'n_tokens_mistral': 1560, 'n_tokens_neox': 1503, 'n_words': 251}