# see https://github.com/karlicoss/pymplate for up-to-date reference


url = 'https://github.com/karlicoss/cachew'
author = '<NAME>'
author_email = '<EMAIL>'
description = 'Easy sqlite-backed persistent cache for dataclasses'

install_requires = [
    'appdirs'   ,  # default cache dir
    'sqlalchemy',  # cache DB interaction
]


from setuptools import setup, find_namespace_packages # type: ignore


def main():
    pkgs = find_namespace_packages('src', exclude=['*.tests'])
    pkg = min(pkgs)
    setup(
        name=pkg,
        use_scm_version={
            'version_scheme': 'python-simplified-semver',
            'local_scheme': 'dirty-tag',
        },
        setup_requires=['setuptools_scm'],

        url=url,
        author=author,
        author_email=author_email,
        description=description,

        packages=[pkg],
        package_dir={'': 'src'},
        package_data={pkg: ['py.typed']},

        # need at least NamedTuples
        python_requires='>=3.6',

        install_requires=install_requires,
        extras_require={
            # can't specify this in setup.cfg!
            ':python_version<"3.7"': ['dataclasses'],
            'testing': [
                'pytest', 'pytz', 'patchy',
                'pylint',
                'mypy', 'lxml',
                'bandit',

                'more-itertools',
            ],
        },

        zip_safe=False,
    )


if __name__ == '__main__':
    main()

# see https://github.com/karlicoss/pymplate for up-to-date reference


url = 'https://github.com/karlicoss/cachew'
author = '<NAME>'
author_email = '<EMAIL>'
description = 'Easy sqlite-backed persistent cache for dataclasses'

install_requires = [
    'appdirs'   ,  # default cache dir
    'sqlalchemy',  # cache DB interaction
]


from setuptools import setup, find_namespace_packages # type: ignore


def main():
    pkgs = find_namespace_packages('src', exclude=['*.tests'])
    pkg = min(pkgs)
    setup(
        name=pkg,
        use_scm_version={
            'version_scheme': 'python-simplified-semver',
            'local_scheme': 'dirty-tag',
        },
        setup_requires=['setuptools_scm'],

        url=url,
        author=author,
        author_email=author_email,
        description=description,

        packages=[pkg],
        package_dir={'': 'src'},
        package_data={pkg: ['py.typed']},

        # need at least NamedTuples
        python_requires='>=3.6',

        install_requires=install_requires,
        extras_require={
            # can't specify this in setup.cfg!
            ':python_version<"3.7"': ['dataclasses'],
            'testing': [
                'pytest', 'pytz', 'patchy',
                'pylint',
                'mypy', 'lxml',
                'bandit',

                'more-itertools',
            ],
        },

        zip_safe=False,
    )


if __name__ == '__main__':
    main()

# see https://github.com/karlicoss/pymplate for up-to-date reference # default cache dir # cache DB interaction # type: ignore # need at least NamedTuples # can't specify this in setup.cfg!