2
0

pyproject.toml 2.8 KB

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