forked from farridav/django-jazzmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
149 lines (136 loc) · 4.82 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
[tool.poetry]
name = "django-jazzmin"
version = "2.4.8"
description = "Drop-in theme for django admin, that utilises AdminLTE 3 & Bootstrap 4 to make yo' admin look jazzy"
license = "MIT"
authors = ["Shipit <packages@shipit.ltd>"]
maintainers = ["Shipit <packages@shipit.ltd>"]
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 :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"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.6"
django = ">=2.2"
[tool.black]
line-length = 120
target-version = ['py38']
[tool.poetry.dev-dependencies]
django-debug-toolbar = "*" # unparallelled debugging in django
werkzeug = "*" # support for werkzeug debugger in runserver_plus
ipython = "*" # enhanced python shell
ipdb = "*" # ipython breakpoints
django-extensions = "*" # Django Sugar for development
flake9 = "*" # Static code checking (with pyproject.toml support)
black = "*" # Code formatting and linting (with pyproject.toml support)
pytest = "*" # Test runner
pytest-django = "*" # Django integration for pytest
pytest-cov = "*" # Measure code coverage durign tests
tox = "*" # Test runner for python packages
faker = "*" # less fake fake data
coveralls = "*" # Publish code coverage to coveralls
beautifulsoup4 = "*" # Structure HTML documents into navigable things for test assertions
mkdocs = "*" # Tool for serving rendered markdown docs
polib = "*" # Tool for dealing with translation files
factory-boy = "*" # Factory generation
mypy = "*" # Type checking
click = "^7.1.2" # Framework for building cli's
[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 --junitxml=.reports/coverage.xml --cov-report=html:.reports/htmlcov --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.flake8]
max-complexity = 10
ignore = ["C901" ,"W504", "W503", "E231", "E203"]
exclude = [".git", ".tox", "_resource", "migrations", "build", "dist", "docs"]
max-line-length = 120
show-source = true
statistics = false
[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 =
django22-{py36,py37},
django30-{py36,py37,py38,py39},
django31-{py36,py37,py38,py39},
django32-{py36,py37,py38,py39},
# run one of the tests again but with coverage
coveralls-django32-py38,
skipsdist = True
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
[testenv]
setenv =
PYTHONPATH = {toxinidir}
commands =
{envpython} -m flake8 jazzmin
{envpython} -m py.test
deps =
flake9
pytest
pytest-django
pytest-cov
coveralls
mypy
black
beautifulsoup4
dj-database-url
factory-boy
django22: Django<3
django30: Django<3.1
django31: Django<3.2
django32: Django<3.3
[testenv:coveralls-django32-py39]
passenv = COVERALLS_REPO_TOKEN
commands =
- mypy jazzmin --ignore-missing-imports
black --check jazzmin tests --target-version py39 --line-length 120
pytest
- coveralls
"""
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"