|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=61.0.0"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "django-timeline-logger" |
| 7 | +version = "3.0.0" |
| 8 | +description = "Generic event logger for Django models." |
| 9 | +authors = [ |
| 10 | + { name = "Maykin Media", email = "[email protected]"} |
| 11 | +] |
| 12 | +readme = "README.rst" |
| 13 | +license = {file = "LICENSE"} |
| 14 | +keywords = ["django", "generic logging"] |
| 15 | +classifiers = [ |
| 16 | + "Development Status :: 5 - Production/Stable", |
| 17 | + "Framework :: Django", |
| 18 | + "Framework :: Django :: 3.2", |
| 19 | + "Framework :: Django :: 4.2", |
| 20 | + "Intended Audience :: Developers", |
| 21 | + "Operating System :: Unix", |
| 22 | + "Operating System :: MacOS", |
| 23 | + "Operating System :: Microsoft :: Windows", |
| 24 | + "Programming Language :: Python :: 3.10", |
| 25 | + "Programming Language :: Python :: 3.11", |
| 26 | + "Programming Language :: Python :: 3.12", |
| 27 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 28 | +] |
| 29 | +requires-python = ">=3.10" |
| 30 | +dependencies = [ |
| 31 | + "django>=3.2", |
| 32 | + "django-appconf", |
| 33 | +] |
| 34 | + |
| 35 | +[project.urls] |
| 36 | +Homepage = "https://github.com/maykinmedia/django-timeline-logger" |
| 37 | +Documentation = "http://django-timeline-logger.readthedocs.io/en/latest/" |
| 38 | +"Bug Tracker" = "https://github.com/maykinmedia/django-timeline-logger/issues" |
| 39 | +"Source Code" = "https://github.com/maykinmedia/django-timeline-logger" |
| 40 | +Changelog = "https://github.com/maykinmedia/django-timeline-logger/blob/master/docs/changelog.rst" |
| 41 | + |
| 42 | +[project.optional-dependencies] |
| 43 | +tests = [ |
| 44 | + "factory-boy", |
| 45 | + "psycopg2", |
| 46 | + "pytest", |
| 47 | + "pytest-cov", |
| 48 | + "pytest-django", |
| 49 | + "pytest-pep8", |
| 50 | + "pytest-pylint", |
| 51 | + "pytest-pythonpath", |
| 52 | + "pytest-runner", |
| 53 | + "tox", |
| 54 | + "black", |
| 55 | + "isort", |
| 56 | + "flake8", |
| 57 | +] |
| 58 | +coverage = [ |
| 59 | + "pytest-cov", |
| 60 | +] |
| 61 | +docs = [ |
| 62 | + "sphinx", |
| 63 | + "sphinx-rtd-theme", |
| 64 | +] |
| 65 | +release = [ |
| 66 | + "bump-my-version", |
| 67 | + "twine", |
| 68 | +] |
| 69 | + |
| 70 | +[tool.setuptools.packages.find] |
| 71 | +include = ["timeline_logger*"] |
| 72 | +namespaces = false |
| 73 | + |
| 74 | +[tool.isort] |
| 75 | +profile = "black" |
| 76 | +combine_as_imports = true |
| 77 | +known_django = "django" |
| 78 | +known_first_party="timeline_logger" |
| 79 | +sections=["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] |
| 80 | + |
| 81 | +[tool.pytest.ini_options] |
| 82 | +testpaths = ["tests"] |
| 83 | +DJANGO_SETTINGS_MODULE = "tests.settings_pg" |
| 84 | + |
| 85 | +[tool.bumpversion] |
| 86 | +current_version = "3.0.0" |
| 87 | +files = [ |
| 88 | + {filename = "pyproject.toml"}, |
| 89 | + {filename = "README.rst"}, |
| 90 | + {filename = "docs/changelog.rst"}, |
| 91 | +] |
| 92 | + |
| 93 | +[tool.coverage.run] |
| 94 | +branch = true |
| 95 | +source = [ |
| 96 | + "timeline_logger" |
| 97 | +] |
| 98 | +omit = [ |
| 99 | + "demo/*", |
| 100 | + "*/migrations/*", |
| 101 | + "*/tests/*", |
| 102 | +] |
| 103 | + |
| 104 | +[tool.coverage.report] |
| 105 | +exclude_also = [ |
| 106 | + "if (typing\\.)?TYPE_CHECKING:", |
| 107 | + "@(typing\\.)?overload", |
| 108 | + "class .*\\(.*Protocol.*\\):", |
| 109 | + "@(abc\\.)?abstractmethod", |
| 110 | + "raise NotImplementedError", |
| 111 | + "\\.\\.\\.", |
| 112 | + "pass", |
| 113 | +] |
| 114 | +omit = [ |
| 115 | + "demo/*", |
| 116 | + "*/migrations/*", |
| 117 | + "*/tests/*", |
| 118 | +] |
| 119 | + |
| 120 | +[tool.coverage.html] |
| 121 | +directory = "cover" |
0 commit comments