pyproject.toml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. [build-system]
  2. requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
  3. build-backend = "setuptools.build_meta"
  4. [tool.setuptools]
  5. packages = ["redmail"]
  6. [project]
  7. name = "redmail"
  8. description = "Email sending library"
  9. readme = "README.md"
  10. license = {file="LICENSE"}
  11. authors = [
  12. {name = "Mikael Koli", email = "koli.mikael@gmail.com"},
  13. ]
  14. requires-python = ">=3.6"
  15. classifiers = [
  16. "Topic :: Communications :: Email",
  17. "Operating System :: OS Independent",
  18. "License :: OSI Approved :: MIT License",
  19. "Programming Language :: Python :: 3",
  20. "Programming Language :: Python :: 3.6",
  21. "Programming Language :: Python :: 3.7",
  22. "Programming Language :: Python :: 3.8",
  23. "Programming Language :: Python :: 3.9",
  24. "Programming Language :: Python :: 3.10",
  25. "Intended Audience :: Developers",
  26. "Intended Audience :: Customer Service",
  27. "Intended Audience :: Financial and Insurance Industry",
  28. ]
  29. dynamic = ["version"]
  30. dependencies = [
  31. 'jinja2',
  32. ]
  33. [tool.setuptools_scm]
  34. write_to = "redmail/_version.py"
  35. local_scheme = "no-local-version"
  36. [project.urls]
  37. Homepage = 'https://github.com/Miksus/red-mail'
  38. Documentation = 'https://red-mail.readthedocs.io'
  39. Funding = 'https://github.com/sponsors/Miksus'
  40. Source = 'https://github.com/Miksus/red-mail'
  41. Changelog = 'https://red-mail.readthedocs.io/en/stable/versions.html'
  42. [project.optional-dependencies]
  43. test = [
  44. 'pytest',
  45. # Package requirements
  46. 'jinja2',
  47. # Optional
  48. 'pandas',
  49. 'matplotlib',
  50. 'Pillow',
  51. 'openpyxl',
  52. ]
  53. docs = [
  54. 'sphinx >= 1.7.5',
  55. 'pydata-sphinx-theme',
  56. 'sphinx_material',
  57. 'sphinx-copybutton',
  58. 'sphinx_book_theme',
  59. ]
  60. [tool.coverage.run]
  61. source = ["redmail"]
  62. branch = false
  63. omit = [
  64. "test/*",
  65. "_version.py"
  66. ]
  67. data_file = "cov_data/.coverage"
  68. [tool.coverage.report]
  69. omit = [
  70. "redmail/test/*",
  71. "redmail/_version.py",
  72. "redmail/__main__.py"
  73. ]
  74. # Regexes for lines to exclude from consideration
  75. exclude_lines = [
  76. "pragma: no cover",
  77. # Don't complain about abstract methods, they aren't run:
  78. '''@(abc\.)?abstractmethod''',
  79. # Ignore type checking imports
  80. "if TYPE_CHECKING",
  81. ]
  82. ignore_errors = true
  83. [tool.coverage.html]
  84. directory = "htmlcov"