#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#    <NAME> <<EMAIL>>
#
#              _____               ______
#     ____====  ]OO|_n_n__][.      |    |]
#    [________]_|__|________)<     |MENG|
#     oo    oo  'oo OOOO-| oo\_   ~o~~~o~'
# +--+--+--+--+--+--+--+--+--+--+--+--+--+

import os
import sys
import setuptools
from version import __VERSION__


def _setup():
    setuptools.setup(
        name='dict_diff',
        version=__VERSION__,
        description='diff dict',
        author='<NAME>',
        author_email='<EMAIL>',
        install_requires=[],
        py_modules=['dict_diff'],
        license='MIT',
        url='https://github.com/mxgnene01/dict_diff',
        include_package_data=True,
        long_description=open('README.md').read(),
        entry_points={}
    )


def main():
    if len(sys.argv) > 1:
        if sys.argv[1] == 'publish':
            os.system('make publish')
            sys.exit()
        elif sys.argv[1] == 'release':
            if len(sys.argv) < 3:
                type_ = 'patch'
            else:
                type_ = sys.argv[2]
            assert type_ in ('major', 'minor', 'patch')

            os.system('bumpversion --current-version {} {}'
                      .format(__VERSION__, type_))
            sys.exit()

    _setup()


if __name__ == '__main__':
    main()

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#    <NAME> <<EMAIL>>
#
#              _____               ______
#     ____====  ]OO|_n_n__][.      |    |]
#    [________]_|__|________)<     |MENG|
#     oo    oo  'oo OOOO-| oo\_   ~o~~~o~'
# +--+--+--+--+--+--+--+--+--+--+--+--+--+

import os
import sys
import setuptools
from version import __VERSION__


def _setup():
    setuptools.setup(
        name='dict_diff',
        version=__VERSION__,
        description='diff dict',
        author='<NAME>',
        author_email='<EMAIL>',
        install_requires=[],
        py_modules=['dict_diff'],
        license='MIT',
        url='https://github.com/mxgnene01/dict_diff',
        include_package_data=True,
        long_description=open('README.md').read(),
        entry_points={}
    )


def main():
    if len(sys.argv) > 1:
        if sys.argv[1] == 'publish':
            os.system('make publish')
            sys.exit()
        elif sys.argv[1] == 'release':
            if len(sys.argv) < 3:
                type_ = 'patch'
            else:
                type_ = sys.argv[2]
            assert type_ in ('major', 'minor', 'patch')

            os.system('bumpversion --current-version {} {}'
                      .format(__VERSION__, type_))
            sys.exit()

    _setup()


if __name__ == '__main__':
    main()

#!/usr/bin/env python # -*- coding: utf-8 -*- # #    <NAME> <<EMAIL>> # #              _____               ______ #     ____====  ]OO|_n_n__][.      |    |] #    [________]_|__|________)<     |MENG| #     oo    oo  'oo OOOO-| oo\_   ~o~~~o~' # +--+--+--+--+--+--+--+--+--+--+--+--+--+