import os

import setuptools

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

# The CSS file
package_resources = ["securedrop_client/resources/css/sdclient.css"]

# All other graphics used in the client
for name in os.listdir("./securedrop_client/resources/images/"):
    package_resources.append(os.path.join("./securedrop_client/resources/images", name))

setuptools.setup(
    name="securedrop-client",
    version="0.0.0",
    author="Freedom of the Press Foundation",
    author_email="securedrop@freedom.press",
    description="SecureDrop Workstation client application",
    long_description=long_description,
    long_description_content_type="text/markdown",
    license="AGPLv3+",
    install_requires=["SQLAlchemy", "alembic", "securedrop-sdk", "python-dateutil", "arrow"],
    python_requires=">=3.5",
    url="https://github.com/freedomofpress/securedrop-client",
    packages=setuptools.find_packages(include=["securedrop_client", "securedrop_client.*"]),
    include_package_data=True,
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Programming Language :: Python :: 3",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
        "Intended Audience :: Developers",
        "Operating System :: OS Independent",
    ],
    entry_points={"console_scripts": ["sd-client = securedrop_client.app:run"]},
)
