<reponame>moriaki3193/sqlint<filename>setup.py
"""The setup script."""

import re
import pathlib
from setuptools import setup, find_packages
from os import path

# The directory containing this file
root_dir = pathlib.Path(__file__).parent


def _requirements():
    return [name.rstrip() for name in open(path.join(root_dir, 'requirements.txt')).readlines()]


try:
    with open(path.join(root_dir, 'README.rst')) as f:
        long_description = f.read()
except IOError:
    long_description = ''

# read __init__
with open(path.join(root_dir, 'sqlint', '__init__.py')) as f:
    init_text = f.read()
    version = re.search(r'__version__\s*=\s*[\'\"](.+?)[\'\"]', init_text).group(1)
assert version

setup(
    name='sqlint',
    version=version,
    license="MIT",
    author='shigeru',
    author_email='<EMAIL>',
    url='https://github.com/shigeru0215/sqlint',
    description='Simple Sql Linter',
    long_description=long_description,
    packages=find_packages(exclude=("tests",)),
    test_suite='tests',
    install_requires=_requirements(),
    classifiers=[
        # 'Development Status :: 5 - Production/Stable',
        # 'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Database',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    entry_points={
        "console_scripts": [
            'sqlint=sqlint.__main__:main',
        ]
    }
)

"""The setup script."""

import re
import pathlib
from setuptools import setup, find_packages
from os import path

# The directory containing this file
root_dir = pathlib.Path(__file__).parent


def _requirements():
    return [name.rstrip() for name in open(path.join(root_dir, 'requirements.txt')).readlines()]


try:
    with open(path.join(root_dir, 'README.rst')) as f:
        long_description = f.read()
except IOError:
    long_description = ''

# read __init__
with open(path.join(root_dir, 'sqlint', '__init__.py')) as f:
    init_text = f.read()
    version = re.search(r'__version__\s*=\s*[\'\"](.+?)[\'\"]', init_text).group(1)
assert version

setup(
    name='sqlint',
    version=version,
    license="MIT",
    author='shigeru',
    author_email='<EMAIL>',
    url='https://github.com/shigeru0215/sqlint',
    description='Simple Sql Linter',
    long_description=long_description,
    packages=find_packages(exclude=("tests",)),
    test_suite='tests',
    install_requires=_requirements(),
    classifiers=[
        # 'Development Status :: 5 - Production/Stable',
        # 'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Database',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    entry_points={
        "console_scripts": [
            'sqlint=sqlint.__main__:main',
        ]
    }
)
The setup script. # The directory containing this file # read __init__ # 'Development Status :: 5 - Production/Stable', # 'License :: OSI Approved :: MIT License',