from pathlib import Path
from setuptools import setup

version = "6.2.0rc1"

long_description = (
    f"{Path('README.md').read_text()}\n{Path('CHANGES.md').read_text()}\n"
)

setup(
    name="Products.CMFPlone",
    version=version,
    description="The Plone Content Management System (core)",
    long_description=long_description,
    long_description_content_type="text/markdown",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Web Environment",
        "Framework :: Plone",
        "Framework :: Plone :: 6.2",
        "Framework :: Plone :: Core",
        "Framework :: Zope :: 6",
        "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
        "Programming Language :: Python :: 3.13",
        "Programming Language :: Python :: 3.14",
    ],
    python_requires=">=3.10",
    keywords="Plone CMF Python Zope CMS Webapplication",
    author="Plone Foundation",
    author_email="releasemanager@plone.org",
    url="https://plone.org",
    license="GPL version 2",
    project_urls={
        "Homepage": "https://plone.org",
        "Documentation": "https://6.docs.plone.org",
        "Source": "https://github.com/plone/Products.CMFPlone",
        "Issues": "https://github.com/plone/plone.org/Products.CMFPlone",
        "Forum": "https://community.plone.org/",
        "Chat": "https://discord.gg/zFY3EBbjaj",
        "Mastodon": "https://plone.social/@plone",
        "X (formerly Twitter)": "https://x.com/plone",
        "Videos": "https://youtube.com/@plonecms",
        "Sponsor": "https://github.com/sponsors/plone",
    },
    include_package_data=True,
    zip_safe=False,
    install_requires=[
        "borg.localrole",
        "five.customerize",
        "five.intid",
        "lxml",
        "packaging",
        "plone.app.content",
        "plone.app.contentlisting",
        "plone.app.contentmenu >= 2.0.1",
        "plone.app.contentrules",
        "plone.app.contenttypes",
        "plone.app.customerize",
        "plone.app.dexterity",
        "plone.app.i18n",
        "plone.app.layout >= 6.0.0a3",
        "plone.app.linkintegrity >=1.0.3",
        "plone.app.locales",
        "plone.app.portlets",
        "plone.app.redirector",
        "plone.app.relationfield",
        "plone.app.registry",
        "plone.app.theming",
        "plone.app.users",
        "plone.app.uuid",
        "plone.app.viewletmanager",
        "plone.app.vocabularies",
        "plone.app.workflow",
        "plone.app.z3cform >= 4.1.0",
        "plone.autoform",
        "plone.autoinclude",
        "plone.base >= 4.0.0a1",
        "plone.browserlayer >= 2.1.5",
        "plone.contentrules",
        "plone.dexterity",
        "plone.folder",
        "plone.formwidget.namedfile",
        "plone.i18n >= 4.0.5",
        "plone.indexer",
        "plone.intelligenttext",
        "plone.keyring",
        "plone.locking",
        "plone.memoize",
        "plone.namedfile",
        "plone.outputfilters",
        "plone.portlet.collection",
        "plone.portlet.static",
        "plone.portlets",
        "plone.protect >= 3.0.0",
        "plone.resource",
        "plone.rfc822",
        "plone.schema",
        "plone.session",
        "plone.staticresources",
        "plone.subrequest",
        "plone.theme",
        "plone.uuid",
        "plonetheme.barceloneta",
        "Products.CMFEditions",
        "Products.CMFCore",
        "Products.DCWorkflow",
        "Products.ExtendedPathIndex",
        "Products.isurlinportal",
        "Products.MimetypesRegistry",
        "Products.PlonePAS",
        "Products.PluggableAuthService",
        "Products.PortalTransforms",
        "Products.SiteErrorLog",
        "Products.statusmessages",
        "Products.ZCatalog",
        "webresource>=1.2",
        "z3c.caching",
        "z3c.form",
        "z3c.relationfield",
        "zc.relation",
        "Zope[wsgi] >= 5.0",
        "zope.app.locales >= 3.6.0",
        "zope.cachedescriptors",
        "zope.deferredimport",
        "zope.deprecation",
        "zope.i18n",
        "zope.i18nmessageid",
        "zope.intid",
        "zope.ramcache",
    ],
    extras_require={
        "test": [
            "lxml",
            "plone.app.robotframework>=1.0",
            "plone.app.testing",
            "plone.app.textfield",
            "plone.testing",
            "Products.CMFPlacefulWorkflow",
            "robotframework-debuglibrary",
            "robotsuite",
            "zope.globalrequest",
        ]
    },
)
