import os
from setuptools import setup, find_packages
import uuid

from jirafs_list_table import __version__ as version_string


requirements_path = os.path.join(
    os.path.dirname(__file__),
    'requirements.txt',
)
try:
    from pip.req import parse_requirements
    requirements = [
        str(req.req) for req in parse_requirements(
            requirements_path,
            session=uuid.uuid1()
        )
    ]
except (ImportError, AttributeError, ValueError, TypeError):
    requirements = []
    with open(requirements_path, 'r') as in_:
        requirements = [
            req for req in in_.readlines()
            if not req.startswith('-')
            and not req.startswith('#')
        ]


setup(
    name='jirafs_list_table',
    version=version_string,
    url='https://github.com/coddingtonbear/jirafs-list-table',
    description="Make simple tables in JIRA more easily by using a simple list-based syntax.",
    author='Adam Coddington',
    author_email='me@adamcoddington.net',
    classifiers=[
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
    ],
    install_requires=requirements,
    include_package_data=True,
    packages=find_packages(),
    entry_points={
        'jirafs_list_table': [
            'list_table = jirafs_list_table.plugin:Plugin',
        ]
    },
)

import os
from setuptools import setup, find_packages
import uuid

from jirafs_list_table import __version__ as version_string


requirements_path = os.path.join(
    os.path.dirname(__file__),
    'requirements.txt',
)
try:
    from pip.req import parse_requirements
    requirements = [
        str(req.req) for req in parse_requirements(
            requirements_path,
            session=uuid.uuid1()
        )
    ]
except (ImportError, AttributeError, ValueError, TypeError):
    requirements = []
    with open(requirements_path, 'r') as in_:
        requirements = [
            req for req in in_.readlines()
            if not req.startswith('-')
            and not req.startswith('#')
        ]


setup(
    name='jirafs_list_table',
    version=version_string,
    url='https://github.com/coddingtonbear/jirafs-list-table',
    description="Make simple tables in JIRA more easily by using a simple list-based syntax.",
    author='Adam Coddington',
    author_email='me@adamcoddington.net',
    classifiers=[
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
    ],
    install_requires=requirements,
    include_package_data=True,
    packages=find_packages(),
    entry_points={
        'jirafs_plugins': [
            'list_table = jirafs_list_table.plugin:Plugin',
        ]
    },
)

Use the proper entry point name.
Use the proper entry point name.
