[build-system] requires = ["hatchling"] build-backend = "hatchling.build" [project] name = "django-anymail" dynamic = ["readme", "version"] license = "BSD-3-Clause" license-files = ["LICENSE"] authors = [ {name = "Mike Edmunds", email = "medmunds@gmail.com"}, {name = "Anymail Contributors"}, ] description = """\ Django email backends and webhooks for Amazon SES, Brevo, MailerSend, Mailgun, Mailjet, Mailtrap, Mandrill, Postal, Postmark, Resend, Scaleway TEM, SendGrid, SparkPost, and Unisender Go (EmailBackend, transactional email tracking and inbound email signals)\ """ # readme: see tool.hatch.metadata.hooks.custom below keywords = [ "Django", "email", "email backend", "EmailBackend", "ESP", "email service provider", "transactional mail", "email tracking", "inbound email", "webhook", "Amazon SES", "AWS SES", "Simple Email Service", "Brevo", "SendinBlue", "MailerSend", "Mailgun", "Mailjet", "Sinch", "Mailtrap", "Mandrill", "MailChimp", "Postal", "Postmark", "ActiveCampaign", "Resend", "Scaleway", "Scaleway TEM", "SendGrid", "Twilio", "SparkPost", "Bird", "Unisender Go", ] classifiers = [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: 3", "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", "License :: OSI Approved :: BSD License", "Topic :: Communications :: Email", "Topic :: Software Development :: Libraries :: Python Modules", "Intended Audience :: Developers", "Framework :: Django", "Framework :: Django :: 5.0", "Framework :: Django :: 5.1", "Framework :: Django :: 5.2", "Framework :: Django :: 6.0", "Environment :: Web Environment", ] requires-python = ">=3.10" dependencies = [ "django>=5.0", "idna", "requests>=2.4.3", "urllib3>=1.25.0", # requests dependency: fixes RFC 7578 header encoding "typing_extensions>=4.12;python_version<'3.11'", # for older Python compatibility ] [project.optional-dependencies] # ESP-specific additional dependencies. # (For simplicity, requests is included in the base dependencies.) # (Do not use underscores in extra names: they get normalized to hyphens.) amazon-ses = ["boto3>=1.43.6", "amazon-s3-encryption-client-python"] brevo = [] mailersend = [] mailgun = [] mailjet = [] mailtrap = [] mandrill = [] postal = ["cryptography"] postmark = [] resend = ["svix"] scaleway = [] sendgrid = ["cryptography"] sendinblue = [] sparkpost = [] unisender-go = [] # Optional dependencies for IDNA encoding. uts46 = ["uts46"] [dependency-groups] dev = [ "hatch", "pre-commit", "tox<4", ] docs = [ "Pygments~=2.20.0", "readme-renderer~=45.0", "sphinx~=9.1", "sphinx-rtd-theme~=3.1.0", "sphinxcontrib-googleanalytics~=0.4", ] tests = [ "responses", ] [project.urls] Homepage = "https://github.com/anymail/django-anymail" Documentation = "https://anymail.dev/en/stable/" Source = "https://github.com/anymail/django-anymail" Changelog = "https://anymail.dev/en/stable/changelog/" Tracker = "https://github.com/anymail/django-anymail/issues" [tool.hatch.build] packages = ["anymail"] # Hatch automatically includes pyproject.toml, LICENSE, and hatch_build.py. # Help it find the dynamic readme source (otherwise wheel will only build with # `hatch build`, not with `python -m build`): force-include = {"README.rst" = "README.rst"} [tool.hatch.metadata.hooks.custom] # Provides dynamic readme path = "hatch_build.py" readme = "README.rst" [tool.hatch.version] path = "anymail/_version.py" [tool.black] force-exclude = '^/tests/test_settings/settings_.*\.py' target-version = ["py310"] [tool.doc8] # for now, Anymail allows longer lines in docs source: max-line-length = 120 [tool.flake8] # See .flake8 file in project root [tool.isort] combine_as_imports = true known_first_party = "anymail" profile = "black" py_version = "310"