#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
import re
import codecs

from setuptools import setup


version = ''
with open('pigar/_version.py', 'r') as f:
    version = re.search(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
                        f.read(), re.M).group(1)

if not version:
    raise RuntimeError('Cannot find version information')


with codecs.open('README.rst', encoding='utf-8') as f:
    long_description = f.read()

install_requires = ['colorama']
if sys.version_info < (3, 2):
    install_requires.append('futures')


setup(
    name='pigar',
    version=version,
    description='Python requirements tool -- pigar',
    long_description=long_description,
    url='https://github.com/Damnever/pigar',
    author='Damnever',
    author_email='dxc.wolf@gmail.com',
    license='The BSD 3-Clause License',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Utilities',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
    keywords='requirements tool',
    packages=['pigar', 'pigar.tests'],
    install_requires=install_requires,
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'pigar=pigar.__main__:main',
        ]
    },
)

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
import re
import codecs

from setuptools import setup


version = ''
with open('pigar/_version.py', 'r') as f:
    version = re.search(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
                        f.read(), re.M).group(1)

if not version:
    raise RuntimeError('Cannot find version information')


with codecs.open('README.rst', encoding='utf-8') as f:
    long_description = f.read()

with codecs.open('CHANGELOGS.rst', encoding='utf-8') as f:
    change_logs = f.read()

install_requires = ['colorama']
if sys.version_info < (3, 2):
    install_requires.append('futures')


setup(
    name='pigar',
    version=version,
    description='Python requirements tool -- pigar',
    long_description=long_description + '\n\n' + change_logs,
    url='https://github.com/Damnever/pigar',
    author='Damnever',
    author_email='dxc.wolf@gmail.com',
    license='The BSD 3-Clause License',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Utilities',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
    keywords='requirements tool',
    packages=['pigar', 'pigar.tests'],
    install_requires=install_requires,
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'pigar=pigar.__main__:main',
        ]
    },
)

append change logs