# -*- coding: utf-8 -*-

import importlib
import importlib.util
import os
import setuptools

"""This file is used to package the SSBatchNumberGenerator plugin.

- It was generated by the InvenTree Plugin Creator tool - version 1.12.1
- Ref: https://github.com/inventree/plugin_creator
"""

"""Read the plugin version from the source code."""
module_path = os.path.join(os.path.dirname(__file__), "ss_batch_number_generator", "__init__.py")
spec = importlib.util.spec_from_file_location("ss_batch_number_generator", module_path)
ss_batch_number_generator = importlib.util.module_from_spec(spec)
spec.loader.exec_module(ss_batch_number_generator)

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

setuptools.setup(
    name="inventree-ss-batch-number-generator",
    version=ss_batch_number_generator.PLUGIN_VERSION,
    author="Rob Kettridge",
    author_email="rob.kettridge@smartsentry.co.uk",
    description="Plugin to generate unique batch numbers",
    long_description=long_description,
    long_description_content_type='text/markdown',
    url="https://www.smartsentry.co.uk",
    license="MIT",
    packages=setuptools.find_packages(),
    keywords="inventree plugin",
    include_package_data=True,
    install_requires=[
        # Enter your plugin library dependencies here
	    "inventree",
    ],
    setup_requires=[
        "wheel",
        "twine",
    ],
    python_requires=">=3.9",
    entry_points={
        "inventree_plugins": [
            "SSBatchNumberGenerator = ss_batch_number_generator.core:SSBatchNumberGenerator"
        ]
    },
    classifiers=[
        "Programming Language :: Python :: 3",
        "Operating System :: OS Independent",
        "Framework :: InvenTree",
    ],
)

