from setuptools import find_packages
from setuptools import setup


version = "3.0.3"

setup(
    name="plone.formwidget.namedfile",
    version=version,
    description="Image widget for z3c.form and Plone",
    long_description=open("README.rst").read() + "\n" + open("CHANGES.rst").read(),
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Framework :: Plone",
        "Framework :: Plone :: 6.0",
        "License :: OSI Approved :: GNU General Public License (GPL)",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    keywords="plone image widget z3c.form",
    author="Martin Aspeli",
    author_email="optilude@gmail.com",
    url="https://pypi.org/project/plone.formwidget.namedfile",
    license="GPL",
    packages=find_packages(),
    namespace_packages=["plone", "plone.formwidget"],
    include_package_data=True,
    zip_safe=False,
    python_requires=">=3.8",
    install_requires=[
        "BTrees",
        "setuptools",
        "plone.base",
        "plone.namedfile",
        "Products.MimetypesRegistry",
        "persistent",
        "plone.registry",
        "z3c.form",
        "zope.annotation",
        "zope.size",
    ],
    extras_require={
        "test": [
            "Pillow",
            "plone.app.testing",
            "plone.scale",
            "plone.testing",
            "zope.pagetemplate",
        ],
    },
)
