pyproject.toml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # -- PACKAGE --------------------------
  2. [build-system]
  3. requires = ["setuptools>=65.5"]
  4. build-backend = "setuptools.build_meta"
  5. [project]
  6. authors = [
  7. {name = "CodeRed LLC", email = "info@coderedcorp.com"}
  8. ]
  9. classifiers = [
  10. "Environment :: Web Environment",
  11. "Framework :: Django",
  12. "Intended Audience :: Developers",
  13. "Operating System :: OS Independent",
  14. "Programming Language :: Python",
  15. "Programming Language :: Python :: 3",
  16. "Programming Language :: Python :: 3.9",
  17. "Programming Language :: Python :: 3.10",
  18. "Programming Language :: Python :: 3.11",
  19. "Programming Language :: Python :: 3.12",
  20. "Programming Language :: Python :: 3.13",
  21. "Programming Language :: Python :: 3 :: Only",
  22. "Framework :: Django",
  23. "Framework :: Django :: 4.2",
  24. "Framework :: Django :: 5.0",
  25. "Framework :: Django :: 5.1",
  26. "Framework :: Wagtail",
  27. "Framework :: Wagtail :: 6",
  28. "Topic :: Internet :: WWW/HTTP",
  29. "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
  30. "Topic :: Internet :: WWW/HTTP :: Site Management",
  31. ]
  32. dependencies = [
  33. "beautifulsoup4>=4.8,<4.13", # should be the same as wagtail
  34. "django-eventtools==1.0.*",
  35. "django-bootstrap5==24.3",
  36. "Django>=4.2,<6.0", # should be the same as wagtail
  37. "geocoder==1.38.*",
  38. "icalendar==6.0.*",
  39. "wagtail>=6.3,<7.0",
  40. "wagtail-cache>=2.4,<3",
  41. "wagtail-flexible-forms==2.*",
  42. "wagtail-seo==3.*",
  43. ]
  44. description = "Wagtail + CodeRed Extensions enabling rapid development of marketing-focused websites."
  45. dynamic = ["version"]
  46. license = {file = "LICENSE.txt"}
  47. name = "coderedcms"
  48. readme = "README.md"
  49. requires-python = ">=3.9"
  50. [project.scripts]
  51. coderedcms = "coderedcms.bin.coderedcms:main"
  52. [project.urls]
  53. Source = "https://github.com/coderedcorp/coderedcms"
  54. Documentation = "https://docs.coderedcorp.com/wagtail-crx/"
  55. Changelog = "https://docs.coderedcorp.com/wagtail-crx/releases/"
  56. [tool.setuptools]
  57. packages = ["coderedcms"]
  58. [tool.setuptools.dynamic]
  59. version = {attr = "coderedcms.__version__"}
  60. # -- TOOLS ----------------------------
  61. [tool.codespell]
  62. skip = 'migrations,vendor,_build,*.css.map,*.jpg,*.png,*.pyc'
  63. ignore-words-list = 'assertIn'
  64. [tool.django-stubs]
  65. django_settings_module = "coderedcms.tests.settings"
  66. [tool.mypy]
  67. ignore_missing_imports = true
  68. plugins = ["mypy_django_plugin.main"]
  69. exclude = [
  70. '^\..*',
  71. 'migrations',
  72. 'node_modules',
  73. 'venv',
  74. 'testproject',
  75. ]
  76. [tool.pytest.ini_options]
  77. DJANGO_SETTINGS_MODULE = "coderedcms.tests.settings"
  78. addopts = "--cov --cov-report html --cov-report xml --junitxml junit/test-results.xml"
  79. python_files = "tests.py test_*.py"
  80. junit_family = "xunit2"
  81. junit_suite_name = "coderedcms"
  82. [tool.ruff]
  83. extend-exclude = ["migrations", "testproject"]
  84. line-length = 80
  85. [tool.ruff.lint]
  86. extend-select = ["I"]
  87. [tool.ruff.lint.isort]
  88. case-sensitive = false
  89. force-single-line = true
  90. lines-after-imports = 2