-
Notifications
You must be signed in to change notification settings - Fork 285
/
pyproject.toml
160 lines (143 loc) · 5.01 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[tool.poetry]
name = "django-jazzmin"
version = "0.0.0"
description = "Drop-in theme for django admin, that utilises AdminLTE 3 & Bootstrap 4 to make yo' admin look jazzy"
license = "MIT"
authors = ["Shipit <[email protected]>"]
maintainers = ["Shipit <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/farridav/django-jazzmin"
repository = "https://github.com/farridav/django-jazzmin"
documentation = "https://django-jazzmin.readthedocs.io"
keywords = ["django", "dashboard", "theme", "admin", "jazzmin"]
classifiers = [
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [{ include = "jazzmin" }]
include = ["jazzmin"]
exclude = ["tests", "docs"]
[tool.poetry.dependencies]
python = ">=3.8"
django = ">=4.2"
[tool.poetry.group.dev.dependencies]
django-debug-toolbar = "^3.2.4" # unparallelled debugging in django
Werkzeug = "^2.0.2" # support for werkzeug debugger in runserver_plus
django-extensions = "^3.1.5" # Django Sugar for development
pytest = "^6.2.5" # Test runner
pytest-django = "^4.5.2" # Django integration for pytest
pytest-cov = "^4.1.0" # Measure code coverage during tests
tox = "^3.24.5" # Test runner for python packages
Faker = "^11.3.0" # less fake fake data
coveralls = "^3.3.1" # Publish code coverage to coveralls
beautifulsoup4 = "^4.10.0" # Structure HTML documents into navigable things for test assertions
mkdocs = "^1.2.3" # Tool for serving rendered markdown docs
polib = "^1.1.1" # Tool for dealing with translation files
factory-boy = "^3.2.1" # Factory generation
mypy = "^0.931" # Type checking
click = "^8.0.3" # Framework for building cli's
ipdb = "^0.13.9" # ipython breakpoints
ruff = "*" # linter and code formatter
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/farridav/django-jazzmin/issues"
"All Releases" = "https://github.com/farridav/django-jazzmin/releases"
"Latest Release" = "https://github.com/farridav/django-jazzmin/releases/latest"
"Source" = "https://github.com/farridav/django-jazzmin"
[tool.pytest.ini_options]
addopts = "--pdbcls=IPython.terminal.debugger:TerminalPdb -p no:warnings --cov=jazzmin"
junit_family = "xunit2"
norecursedirs = ".git .tox _resource .mypy_cache build dist docs"
DJANGO_SETTINGS_MODULE = "tests.test_app.library.settings"
FAIL_INVALID_TEMPLATE_VARS = 1
[tool.ruff]
target-version = "py38"
line-length = 120
extend-exclude = ["migrations"]
[tool.ruff.lint]
select = [
"E", # PEP8 errors
"W", # PEP8 warnings
"F", # PyFlakes
"I", # isort
"C", # mccabe
"T201", # flake8-print
]
[tool.ruff.lint.isort]
known-first-party = ["jazzmin"]
known-local-folder = ["tests"]
[tool.ruff.lint.mccabe]
max-complexity = 11
[tool.coverage.run]
omit = ["*/__init__.py", ".tox", ".mypy_cache", ".reports", ".git"]
[tool.coverage.report]
omit = ["*/__init__.py", ".tox", ".mypy_cache", ".reports", ".git"]
show_missing = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
django4-{python3.8,python3.9,python3.10,python3.11,python3.12},
django5-{python3.10,python3.11,python3.12},
# run one of the tests again but with coverage
coveralls-django4-python3.12,
skipsdist = True
[gh-actions]
python =
3.8: python3.8
3.9: python3.9
3.10: python3.10
3.11: python3.11
3.12: python3.12
[testenv]
setenv =
PYTHONPATH = {toxinidir}
commands =
{envpython} -m ruff format --check jazzmin
{envpython} -m ruff check jazzmin
{envpython} -m pytest
deps =
django-jazzmin # Installing self to allow automatic getting of `version` which needs `django-jazzmin` to be install to get information about the package.
pytest
pytest-django
pytest-cov
coveralls
mypy
ruff
beautifulsoup4
factory-boy
django4: Django<5
django5: Django<6
[testenv:coveralls-django4-python3.12]
passenv = COVERALLS_REPO_TOKEN
commands =
mypy jazzmin --ignore-missing-imports
ruff format --check jazzmin tests
ruff check jazzmin tests
pytest
coveralls
"""
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[[tool.mypy.overrides]]
module = [
"pkg_resources.*",
]
ignore_missing_imports = true