import setuptools

with open("README.md", "r") as fh:
    long_description = fh.read()

setuptools.setup(
    name="pyfsdb",
    version="2.0.3",
    author="Wes Hardaker",
    author_email="opensource@hardakers.net",
    description="A python implementation of the flat-file streaming database",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/gawseed/pyfsdb",
    packages=setuptools.find_packages(),
    entry_points={
        "console_scripts": [
            # migrating to pdb prefixes
            "pdbtopn = pyfsdb.tools.pdbtopn:main",
            "pdbaugment = pyfsdb.tools.pdbaugment:main",
            "bro2fsdb = pyfsdb.tools.bro2fsdb:main",
            "pdbcoluniq = pyfsdb.tools.pdbcoluniq:main",
            "pdbfullpivot = pyfsdb.tools.pdbfullpivot:main",
            "pdbreversepivot = pyfsdb.tools.pdbreversepivot:main",
            "pdbzerofill = pyfsdb.tools.pdbzerofill:main",
            "pdbkeyedsort = pyfsdb.tools.pdbkeyedsort:main",
            "pdbsplitter = pyfsdb.tools.pdbsplitter:main",
            "json2fsdb = pyfsdb.tools.json2fsdb:main",
            "fsdb2json = pyfsdb.tools.fsdb2json:main",
            "fsdb2many = pyfsdb.tools.fsdb2many:main",
            "pdb2tex = pyfsdb.tools.pdb2tex:main",
            "pdbformat = pyfsdb.tools.pdbformat:main",
            "pdbreescape = pyfsdb.tools.pdbreescape:main",
            "pdbensure = pyfsdb.tools.pdbensure:main",
            "pdbheatmap = pyfsdb.tools.pdbheatmap:main",
            "pdbdatetoepoch = pyfsdb.tools.pdbdatetoepoch:main",
            "pdbepochtodate = pyfsdb.tools.pdbepochtodate:main",
            "pdbnormalize = pyfsdb.tools.pdbnormalize:main",
            "pdbsum = pyfsdb.tools.pdbsum:main",
            "pdbj2 = pyfsdb.tools.pdbj2:main",
            "pdbcdf = pyfsdb.tools.pdbcdf:main",
            "pdbroc = pyfsdb.tools.pdbroc:main",
            "pdb2sql = pyfsdb.tools.pdb2sql:main",
            "pdb2to1 = pyfsdb.tools.pdb2to1:main",
            "pdbaddtypes = pyfsdb.tools.pdbaddtypes:main",
            # obsolete wrappers
            "dbtopn = pyfsdb.obsolete.dbtopn:main",
            "dbaugment = pyfsdb.obsolete.dbaugment:main",
            "dbcoluniq = pyfsdb.obsolete.dbcoluniq:main",
            "dbfullpivot = pyfsdb.obsolete.dbfullpivot:main",
            "dbreversepivot = pyfsdb.obsolete.dbreversepivot:main",
            "dbzerofill = pyfsdb.obsolete.dbzerofill:main",
            "dbkeyedsort = pyfsdb.obsolete.dbkeyedsort:main",
            "dbsplitter = pyfsdb.obsolete.dbsplitter:main",
            "db2tex = pyfsdb.obsolete.db2tex:main",
            "dbformat = pyfsdb.obsolete.dbformat:main",
            "dbreescape = pyfsdb.obsolete.dbreescape:main",
            "dbensure = pyfsdb.obsolete.dbensure:main",
            "dbheatmap = pyfsdb.obsolete.dbheatmap:main",
            "dbdatetoepoch = pyfsdb.obsolete.dbdatetoepoch:main",
            "dbsum = pyfsdb.obsolete.dbsum:main",
        ]
    },
    classifiers=[
        "Programming Language :: Python :: 3",
        "Operating System :: OS Independent",
    ],
    python_requires=">=3.6",
    test_suite="nose.collector",
    tests_require=["nose"],
)
