|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=61.0.0"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "django-swingtime" |
| 7 | +dynamic = ["version"] |
| 8 | +description = "A Django calendaring application" |
| 9 | +license = { file = "LICENSE" } |
| 10 | +keywords = ["django", "calendar", "events"] |
| 11 | +readme = { file = "README.rst", content-type = "text/x-rst" } |
| 12 | +authors = [ |
| 13 | + { name = "David A Krauth", email = "[email protected]" }, |
| 14 | +] |
| 15 | +requires-python = ">=3.10" |
| 16 | +classifiers = [ |
| 17 | + "Development Status :: 5 - Production/Stable", |
| 18 | + "Environment :: Web Environment", |
| 19 | + "Framework :: Django", |
| 20 | + "Framework :: Django :: 4.2", |
| 21 | + "Framework :: Django :: 5.0", |
| 22 | + "Framework :: Django :: 5.1", |
| 23 | + "Framework :: Django :: 5.2", |
| 24 | + "License :: OSI Approved :: MIT License", |
| 25 | + "Programming Language :: Python", |
| 26 | + "Programming Language :: Python :: 3.10", |
| 27 | + "Programming Language :: Python :: 3.11", |
| 28 | + "Programming Language :: Python :: 3.12", |
| 29 | + "Programming Language :: Python :: 3.13", |
| 30 | + "Topic :: Office/Business :: Scheduling", |
| 31 | +] |
| 32 | + |
| 33 | +dependencies = [ |
| 34 | + "Django>=4.2,<6.0", |
| 35 | + "python-dateutil>=2.8.2" |
| 36 | +] |
| 37 | + |
| 38 | +[project.urls] |
| 39 | +Homepage = "https://github.com/dakrauth/django-swingtime" |
| 40 | + |
| 41 | +[project.optional-dependencies] |
| 42 | +test = [ |
| 43 | + "tox", |
| 44 | + "coverage", |
| 45 | + "pytest-django", |
| 46 | + "pytest", |
| 47 | + "pytest-cov", |
| 48 | + "flake8" |
| 49 | +] |
| 50 | +docs = [ "sphinx", "sphinx-rtd-theme" ] |
| 51 | +dev = [ "ruff", "build", "twine" ] |
| 52 | + |
| 53 | +[tool.setuptools.dynamic] |
| 54 | +version = { attr = "swingtime.__init__.__version__"} |
| 55 | + |
| 56 | +[tool.setuptools] |
| 57 | +packages = ["swingtime"] |
| 58 | + |
| 59 | +[tool.ruff] |
| 60 | +cache-dir = "temp/ruff" |
| 61 | +line-length = 100 |
| 62 | +indent-width = 4 |
| 63 | + |
| 64 | +[tool.pytest.ini_options] |
| 65 | +minversion = "6.0" |
| 66 | +testpaths = [ "tests", ] |
| 67 | + |
| 68 | +DJANGO_SETTINGS_MODULE = "demo.settings" |
| 69 | +django_find_project = false |
| 70 | +addopts = "-rf" |
| 71 | + |
| 72 | +[tool.coverage.run] |
| 73 | +branch = true |
| 74 | +source = [ "swingtime" ] |
| 75 | +omit = [ "**/migrations/**" ] |
| 76 | + |
| 77 | +[tool.coverage.html] |
| 78 | +directory = "build/coverage" |
| 79 | +title = "Swingtime Coverage report" |
| 80 | + |
| 81 | +[tool.coverage.report] |
| 82 | +ignore_errors = true |
| 83 | + |
| 84 | +# Regexes for lines to exclude from consideration |
| 85 | +exclude_lines = [ |
| 86 | + # Have to re-enable the standard pragma |
| 87 | + "pragma: no cover", |
| 88 | + |
| 89 | + # Don't complain about missing debug-only code: |
| 90 | + "def __repr__", |
| 91 | + "if self\\.debug", |
| 92 | + |
| 93 | + # Don't complain if tests don't hit defensive assertion code: |
| 94 | + "raise AssertionError", |
| 95 | + "raise NotImplementedError", |
| 96 | + |
| 97 | + # Don't complain if non-runnable code isn't run: |
| 98 | + "if __name__ == .__main__.:" |
| 99 | +] |
0 commit comments