[build-system] requires = ["hatchling"] build-backend = "hatchling.build" [project] name = "sendfn" version = "0.0.1" description = "Self-hosted communications platform SDK for email, push notifications, and SMS" readme = "README.md" requires-python = ">=3.10" license = "MIT" keywords = ["email", "push", "sms", "notifications", "communications", "superfunctions"] authors = [ { name = "21n" } ] classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Communications :: Email", ] dependencies = [ "cryptography>=42.0.0", "pydantic>=2.5.0", "email-validator>=2.0.0", "superfunctions-core>=0.1.1,<0.2.0", ] [project.optional-dependencies] email = [ "boto3>=1.34.0", ] push = [ "firebase-admin>=6.5.0", "aioapns>=3.1.0", ] sms = [ # Future SMS provider dependencies ] database = [ "sqlalchemy>=2.0.0", "superfunctions-sqlalchemy>=0.1.1,<0.2.0", ] all = [ "boto3>=1.34.0", "firebase-admin>=6.5.0", "aioapns>=3.1.0", "sqlalchemy>=2.0.0", "superfunctions-sqlalchemy>=0.1.1,<0.2.0", ] dev = [ "pytest>=7.4.0", "pytest-asyncio>=0.21.0", "pytest-cov>=4.1.0", "mypy>=1.7.0", "ruff>=0.1.6", "black>=23.11.0", "types-boto3>=1.0.0", ] fastapi = [ "fastapi>=0.104.0", "superfunctions-fastapi>=0.1.1", ] flask = [ "flask>=3.0.0", "superfunctions-flask>=0.1.1", ] [project.urls] Documentation = "https://docs.superfunctions.dev/sendfn" Repository = "https://github.com/21nCo/super-functions" Issues = "https://github.com/21nCo/super-functions/issues" [tool.hatch.build.targets.wheel] packages = ["sendfn"] [tool.hatch.metadata] allow-direct-references = true [tool.pytest.ini_options] testpaths = ["tests"] asyncio_mode = "auto" python_files = ["test_*.py"] python_classes = ["Test*"] python_functions = ["test_*"] [tool.sendfn.release_gate] shared_install = "python -m pip install -e ./packages/python-core" package_install = "python -m pip install -e './sendfn/python[dev,email,push,fastapi]'" test_command = "python -m pytest sendfn/python/tests" [tool.mypy] python_version = "3.10" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true ignore_missing_imports = true exclude = ["^tests/", "^examples/"] [tool.ruff] target-version = "py310" line-length = 100 [tool.ruff.lint] select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort "B", # flake8-bugbear "C4", # flake8-comprehensions ] ignore = [ "E501", # line too long, handled by black ] [tool.black] line-length = 100 target-version = ["py310", "py311", "py312"]